Link to home
Start Free TrialLog in
Avatar of manishsaxena2007
manishsaxena2007

asked on

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

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
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

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)
ASKER CERTIFIED SOLUTION
Avatar of Kelly Black
Kelly Black
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial