LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-19-2003, 03:30 PM   #1
Xswitch
Member
 
Registered: Jul 2003
Distribution: Ubuntu, Debian
Posts: 139

Rep: Reputation: 15
How do I mount root partition?


I forgot my root passwd. Running RedHat 9. I booted to CD and ran: linux rescue

I get a prompt like this:

sh-2.05b#

The instructions that I have say to "mount the root partition of my harddisk and then edit:
$mountpoint/etc/shadow ....

 
Old 07-19-2003, 03:47 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Thumbs up mount and umount

Type df or mount at the command line, this will tell you which partitions have been mounted.

If the root partition ( / ) is not present, type mount /dev/hdaX /
The X must be the partition number of the root partition. If you don't remember, try numbers between 1 and 9.
Don't forget to unmount, type: umount /dev/hdX

To change the root password, type passwd
 
Old 07-19-2003, 04:06 PM   #3
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
http://ftp.u-strasbg.fr/linux/distri...mode-boot.html


Usually you just type:

chroot /mnt/sysimage

to become root of your system image
 
Old 07-19-2003, 04:26 PM   #4
Xswitch
Member
 
Registered: Jul 2003
Distribution: Ubuntu, Debian
Posts: 139

Original Poster
Rep: Reputation: 15
Thanks Mathieu and angelrod for the quick response. I did the command chroot and was able to reset the root passwd fine. Thanks for the link also agelrod.
 
Old 07-19-2003, 04:30 PM   #5
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
You´re welcome.

Go ahead and switch to Linux!!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
8.0->8.1 upgrade results in failer to mount root partition dguy Slackware 5 05-04-2005 05:17 AM
Unable To Mount Windows Partition as user, only as root k_bob Slackware 12 11-24-2004 06:52 AM
Can't mount windows partition in suse w/o root Mlehliw Linux - Newbie 2 08-08-2004 05:32 AM
Slackware 10.0 bare.i won't mount root partition PeteRossi Slackware - Installation 6 07-14-2004 12:14 PM


All times are GMT -5. The time now is 10:02 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