Linux Rescuing System with Lost Root Password: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Linux =Procedure= * Boot in "rescue mode" with a rescue CD. * Choose "" * Mount the root filesystem <pre> chroot /mnt </pre> * Chan...")
 
No edit summary
Line 7: Line 7:
* Boot in "rescue mode" with a rescue CD.
* Boot in "rescue mode" with a rescue CD.


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


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


<pre>
<pre>
Line 17: Line 17:
* Change the root password as usual
* Change the root password as usual


* Exit.
<pre>
exit
</pre>

Revision as of 08:31, 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
exit