LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-15-2004, 04:43 PM   #1
pclark54
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
Help mounting harddrive after booting from cd


I'm trying to correct a problem I have with my root passwd. I have booted my Red Hat 6.1 box (don't laugh, it still works great!) with a cool-linux recovery cd. I'm trying to mount the root filesystem of the box so I can go into it and make a change to my /etc/passwd file. Being a newbie, I can't seem to figure out how to mount the file system off the hard drive, once I've booted from the cd.
 
Old 01-15-2004, 04:49 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
It depends on your hardware setup - to see your partitions try:
fdisk -l /dev/hda

To mount:
mount /dev/hdaX /mnt/

You may want to forget the recovery disk though and just boot up in single user mode.
 
Old 01-19-2004, 08:47 AM   #3
pclark54
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Can I boot into single user mode using 6.1 ?
 
Old 01-19-2004, 08:55 AM   #4
pclark54
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Original Poster
Rep: Reputation: 0
O.K I hit 'c' at start up and tried to enter "single". My box told me there was no such image. I hit tab and the only thing it listed was "linux". Did I do this correctly?
 
Old 01-19-2004, 01:17 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You need to append " single" to the kernel image line. Do not replace it.
 
  


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
mounting another harddrive: Filesystem not supported Arild2 Linux - Hardware 3 10-30-2004 09:23 AM
need help editing fstab and mounting 2nd harddrive Apostasy Linux - Newbie 18 06-25-2004 09:47 AM
Installing Linux on an external harddrive and booting from any computer scr02bcg Linux - Hardware 8 03-29-2004 10:11 PM
Harddrive mounting Manarius Linux - Hardware 9 09-16-2003 09:22 PM
Mounting harddrive psyx Linux - Newbie 2 06-01-2001 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration