Solved

unable to change root directory to /mnt/sysimage(chroot /mnt/sysimage) in Rescue mode

Posted on 2007-03-24
3
3,904 Views
Last Modified: 2008-01-09
I have forget the redhat6.2 passsword,now i go to rescue mode and type command
chroot /mnt/sysimage but it is showing me error....
"cannot change root directory to /mnt/sysimage:No such file or directory"
Plz help me to change the root password.

Manish
0
Comment
Question by:manishsaxena2007
3 Comments
 
LVL 38

Expert Comment

by:wesly_chen
Comment Utility
Could you boot into single user mode without root password?

If you are using LILO, specify one of these options at the LILO boot prompt (if you are using the graphical LILO, you must press [Ctrl]-[x] to exit the graphical screen and go to the boot: prompt):

boot: linux single

Then at shell prompt "#", type
passwd root   (to reset the password)
0
 
LVL 11

Accepted Solution

by:
kblack05 earned 250 total points
Comment Utility
You'll need to mount the filesystem first. In that version of Redhat I'm not sure there was a dialog promt to do this. Firstly use fdisk to see which is the master partition, on many this is /dev/hda2, but use fdisk -p to be sure (make sure not to write with FDISK you don't want to modify the partitions, only view them *man fdisk*)
If it is an ext3 filesystem you would do (modify to ext2, or use without '-t' if not)

mount /dev/hda2 -t ext3 /mnt/filesystem
(you may need to mkdir /mnt/filesystem on older kernels)

chroot /mnt/filesystem

passwd
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now