Linux Rescuing System with Lost Root Password

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Procedure

Boot in "rescue mode" with a rescue CD.

Choose "Troubleshooting" then "Rescue a CentOS Linux system", then choose 1) (“Continue”). The rescue environment mounts the Linux installation as /mnt/sysimage.

Use the root filesystem with chroot.

chroot /mnt

Change the root password as usual, then

exit