LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 05-31-2007, 11:19 PM   #1
ocicat
Member
 
Registered: May 2007
Posts: 208

Rep: Reputation: 48
mounting hard drive from live CD?


I made the boneheaded mistake of leaving ~/.profile with incorrect syntax before closing down Ubuntu 7.04. Consequently, I can't log back in, & I didn't enable root logins either. I installed from a live CD, so I can reboot with it, but I have yet to give the proper incantation of the mount command to mount the hard drive. Can someone help bail me out? The following I know is not correct:

Code:
ubuntu@ubuntu:/dev$ sudo mount /dev/hda /mnt
mount: special device /dev/hda does not exist
ubuntu@ubuntu:/dev$
The contents of /etc/fstab is:

Code:
ubuntu@ubuntu:/dev$ cat /etc/fstab
unionfs / unionfs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/sda6 swap swap defaults 0 0
ubuntu@ubuntu:/dev$
Thanks.
 
Old 06-01-2007, 12:49 AM   #2
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
mkdir /mnt/mountpoint
mount /dev/sda? /mnt/mountpoint (you need to find the correct number of your partition here: use fdisk -l)
cd /mnt/mountpoint/home/username (puts you in your home directory)
 
Old 06-01-2007, 03:03 AM   #3
ocicat
Member
 
Registered: May 2007
Posts: 208

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by jay73
mount /dev/sda? /mnt/mountpoint (you need to find the correct number of your partition here: use fdisk -l)
This did the trick! Thanks for replying!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Live ~ Hard drive access sleeplesscitizen Ubuntu 9 11-11-2012 10:35 AM
Mandriva Install to hard drive from Live CD dna9 Linux - Desktop 1 01-28-2007 06:26 PM
Finding hard drive in mandriva live DiabloDan Linux - Hardware 1 05-14-2006 10:36 PM
how to access hard drive using Knoppix live CD izquierdista Linux - Software 3 12-09-2005 05:46 PM
Difference between Live CD and installing on hard drive xyren Linux - General 3 11-17-2005 11:36 AM


All times are GMT -5. The time now is 02:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration