Changes

Jump to: navigation, search

Reset GRUB Password

1,171 bytes added, 21:40, 11 September 2011
no edit summary
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 your system with your Live Fedora CD.*Login to your Fedora as liveuser and switch to root.*mount the boot partition to /mnt with the following command: #> mount -t ext3 /dev/sda5 /mnt*Edit the file /mnt/grub/grub.conf to modify or remove the grub password*Shutdown the Live Fedora, remove the CD and reboot.Partition =
The information that you need is the partition number on your 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 boot 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:#* The drive number (hd0) is numbered starting from zero. Convert this to a drive name starting at sda (so hd0=sda, hd1=sdb, hd2=sdc, and so forth).#* 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 restart. {{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]][[Category:OPS335]]
1
edit

Navigation menu