Linux Rescuing System with Lost Root Password: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
Line 5: Line 5:
=Procedure=
=Procedure=


* Boot in "rescue mode" with a rescue CD.
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 <tt>/mnt/sysimage</tt>.
Choose "Troubleshooting" then "Rescue a CentOS Linux system", then choose 1) (“Continue”). The rescue environment mounts the Linux installation as <tt>/mnt/sysimage</tt>.


* Use the root filesystem with [[chroot]].
Use the root filesystem with [[chroot]].


<pre>
<pre>
Line 15: Line 15:
</pre>
</pre>


* Change the root password as usual
Change the root password as usual, then


<pre>
<pre>
exit
exit
</pre>
</pre>

Latest revision as of 08:32, 17 April 2017

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