From Fedora Project Wiki

No edit summary
No edit summary
Line 1: Line 1:
==How to Reset Boot-loader Password==
Boot from the install or rescue CD/DVD


This document provides a method for resetting boot-loader (GRUB) password in Fedora.
Select "Rescue installed system"


==Method-1==
Answer the prompts for language and keyboard.


* Boot from Fedora CD or DVD (or any other Linux Live or Rescue CD).
Starting the network is optional and not needed.
*
*
* Open a Terminal (or Konsole or a Shell)


Let the rescue mode mount your file systems in the read write mode.
<pre>


#mkdir /media/abc
Hit enter to get the shell prompt.
 
#mount -t ext3 /dev/sda2 /media/abc


<pre>
# chroot /mnt/sysimage (Change to your disk file system.)
# vi /etc/grub.conf (Editing boot loader configuration file)
</pre>
</pre>


Locate the password line and remove it (press dd on vi in command mode to delete a line)


* Open the file /media/abc/grub/grub.conf in a text editor like 'gedit' or 'kate'
Save the file then do:
* Delete the line that goes like 'password -md5 blah...blah'
* Save file
 
 
==Method-2==
 
* If you have the [http://www.supergrubdisk.org/ Super Grub Disk], then boot your PC from that.
* Let it install GRUB to the MBR (Master Boot Record).
* Reboot
 
If your PC cannot boot after this operation, then follow Method-1 or Method-3
 
 
==Method-3==
 
 
 
 
 


<pre>
        # sync ( changes are written to disk)
# exit
</pre>


----
Congratulations! You now have now reset your boot loader password. The system will now unmount the file systems and reboot.

Revision as of 04:31, 30 March 2009

Boot from the install or rescue 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 shell prompt.

	# chroot /mnt/sysimage (Change to your disk file system.)
	# vi /etc/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.