Open main menu

CDOT Wiki β

Changes

Reset GRUB Password

1,152 bytes added, 11:30, 17 November 2010
Added instructions on finding your boot partition using the grub shell if you don't remember which one it is.
To solve this problem, you need one piece of information and your Live Fedora CD.
The information that you need is the partition # on your hard disk you used as the boot partition. Suppose it is the first logical partition, which is partition 5, or /dev/sda5 if it is the first hard disk.= Boot with Live Disc =
Here are # Boot your system with the steps to reset or remove your GRUB passwordFedora Live Disc.# Open a terminal window (Applications>System Tools>Terminal).# Become the system administrator (root) by typing:<code>su</code>
*= Determining your Boot Partition = The information that you need is the partition number on your system with hard disk you used as the boot partition. For example, it may be the first logical partition, which is partition 5, or /dev/sda5 (if it is on the first hard disk). If you remember your boot partition, skip to the next section. If you cannot remember your boot partition:# Enter the command: <code>grub</code># Enter this grub command to search for the partition that contains your Live Fedora CDboot configuration file: <code>find /grub/grub.conf</code># The grub shell will respond with a partition number, something like: <code>(hd0,4)</code># To convert this to a Linux device name:#*Login The drive number (hd0) is numbered starting from zero. Convert this to your Fedora as liveuser a drive name starting at sda (so hd0=sda, hd1=sdb, hd2=sdc, and switch to rootso forth).#*mount The partition number (4) is numbered starting from zero. Linux device name partitions are numbered starting from one, so add one (4+1=3) and append that to the drive name found in the previous step: <code>/dev/sda5</code># Exit from the grub shell: <code>quit</code> = Reset your Password = # Mount the boot partition to <code>/mnt </code> with the following command: #<code> mount -t ext3 /dev/sda5 /mnt</code>*# Edit the file <code>/mnt/grub/grub.conf </code> to modify or remove the grub password.*# Shutdown the Live Fedora, remove the CD and rebootrestart. {{Admon/caution|Physical Access Overrules Security|Note that if you have physical access to a system, most security measures can be easily overcome.}}
[[Category:OPS235]][[Category:GRUB]]