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


  Search this Thread
Old 05-31-2007, 10:19 PM   #1
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:

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

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
Old 05-31-2007, 11:49 PM   #2
LQ 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, 02:03 AM   #3
Registered: May 2007
Posts: 208

Original Poster
Rep: Reputation: 48
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!


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 09:35 AM
Mandriva Install to hard drive from Live CD dna9 Linux - Desktop 1 01-28-2007 05:26 PM
Finding hard drive in mandriva live DiabloDan Linux - Hardware 1 05-14-2006 09:36 PM
how to access hard drive using Knoppix live CD izquierdista Linux - Software 3 12-09-2005 04:46 PM
Difference between Live CD and installing on hard drive xyren Linux - General 3 11-17-2005 10:36 AM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:28 AM.

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