LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 10: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 05-31-2007, 11:49 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
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
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:04 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
Open Source Consulting | Domain Registration