Puneetjindal (talk | contribs) No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Boot from the install or live CD/DVD | Boot from the Fedora install or live CD/DVD | ||
Select "Rescue installed system" | Select "Rescue installed system" | ||
Line 13: | Line 13: | ||
<pre> | <pre> | ||
# chroot /mnt/sysimage (Change to your disk file system.) | # chroot /mnt/sysimage (Change to your disk file system.) | ||
# vi / | # vi /boot/grub/grub.conf (Editing boot loader configuration file) | ||
</pre> | </pre> | ||
Line 28: | Line 28: | ||
Congratulations! You now have now reset your boot loader password. The system will now unmount the file systems and reboot. | Congratulations! You now have now reset your boot loader password. The system will now unmount the file systems and reboot. | ||
---- | |||
You can also use a bootable USB image for the same purpose. In case you do not have access to Fedora media, then also it is possible to | |||
reset the GRUB password. Simply install grub to the MBR with Super Grub Disk or edit the /boot/grub/grub.conf file as above with any text editor | |||
(The 'sync' operation is not necessary). For doing this you should boot from any Linux live CD/DVD (Knoppix, Parted Magic, System Rescue CD etc) and mount the fedora root partition. | |||
[[Category:How to]] | [[Category:How to]] |
Revision as of 15:26, 1 April 2009
Boot from the Fedora install or live CD/DVD
Select "Rescue installed system"
Answer the prompts for language and keyboard.
Starting the network is optional and not needed.
Let the rescue mode mount your file systems in the read write mode.
Hit enter to get the root shell prompt.
# chroot /mnt/sysimage (Change to your disk file system.) # vi /boot/grub/grub.conf (Editing boot loader configuration file)
Locate the password line and remove it (press dd on vi in command mode to delete a line)
Save the file then do:
# sync ( changes are written to disk) # exit
Congratulations! You now have now reset your boot loader password. The system will now unmount the file systems and reboot.
You can also use a bootable USB image for the same purpose. In case you do not have access to Fedora media, then also it is possible to reset the GRUB password. Simply install grub to the MBR with Super Grub Disk or edit the /boot/grub/grub.conf file as above with any text editor (The 'sync' operation is not necessary). For doing this you should boot from any Linux live CD/DVD (Knoppix, Parted Magic, System Rescue CD etc) and mount the fedora root partition.