From Fedora Project Wiki

Revision as of 15:26, 1 April 2009 by Amani (talk | contribs)

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.