From Fedora Project Wiki

No edit summary
No edit summary
Line 2: Line 2:


This document provides a method for resetting boot-loader (GRUB) password in Fedora.
This document provides a method for resetting boot-loader (GRUB) password in Fedora.
==Method-1==


  * Boot from Fedora CD or DVD (or any other Linux Live or Rescue CD).
  * Boot from Fedora CD or DVD (or any other Linux Live or Rescue CD).
Line 21: Line 23:
  * Delete the line that goes like 'password -md5 blah...blah'
  * Delete the line that goes like 'password -md5 blah...blah'
  * Save file
  * 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==
----

Revision as of 22:03, 29 March 2009

How to Reset Boot-loader Password

This document provides a method for resetting boot-loader (GRUB) password in Fedora.

Method-1

* Boot from Fedora CD or DVD (or any other Linux Live or Rescue CD).
*
*
* Open a Terminal (or Konsole or a Shell)



#mkdir /media/abc

#mount -t ext3 /dev/sda2 /media/abc


* Open the file /media/abc/grub/grub.conf in a text editor like 'gedit' or 'kate'
* Delete the line that goes like 'password -md5 blah...blah'
* Save file


Method-2

* If you have the 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