Linux Rescuing System with Lost Root Password

From NovaOrdis Knowledge Base
Revision as of 08:31, 17 April 2017 by Ovidiu (talk | contribs)
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
exit