Remove grub password: Difference between revisions

From roonics
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:


1.  Boot vm from Red Hat or Centos cd
1.  Boot vm from Red Hat or Centos cd
2.  Select "Troubleshooting" from the menu
2.  Select "Troubleshooting" from the menu
3.  Select the "Resume" option from the menu
3.  Select the "Resume" option from the menu
4.  Select "Continue" from the menu, this will mount the os to /mnt/sysimage
4.  Select "Continue" from the menu, this will mount the os to /mnt/sysimage
5.  Navigate to /mnt/sysimage/grub
5.  Navigate to /mnt/sysimage/grub
6.  type:
6.  type:
<pre>vi menu.lst</pre>
<pre>vi menu.lst</pre>
7.  Completely remove the line that starts with "Password", you can do this by moving to the line and pressing "dd"
7.  Completely remove the line that starts with "Password", you can do this by moving to the line and pressing "dd"
8.  Save and exit using:
8.  Save and exit using:
<pre>:wq!</pre>
<pre>:wq!</pre>
9.  Reboot
9.  Reboot


You should now be able to press "e" at the grub menu to edit the boot lines without being prompted for a password.
You should now be able to press "e" at the grub menu to edit the boot lines without being prompted for a password.
[[Category:Linux]]
[[Category:Centos]]
[[Category:Redhat]]
[[Category:Grub]]

Revision as of 11:09, 3 October 2019

Remove grub password allowing you to edit grub lines.

1. Boot vm from Red Hat or Centos cd

2. Select "Troubleshooting" from the menu

3. Select the "Resume" option from the menu

4. Select "Continue" from the menu, this will mount the os to /mnt/sysimage

5. Navigate to /mnt/sysimage/grub

6. type:

vi menu.lst

7. Completely remove the line that starts with "Password", you can do this by moving to the line and pressing "dd"

8. Save and exit using:

:wq!

9. Reboot

You should now be able to press "e" at the grub menu to edit the boot lines without being prompted for a password.