Please note that this is for the “legacy” version of GRUB still widely in use, not the next-generation GRUB 2. If unsure, check out this guide on how to find out which version of GRUB you are using.
If you’ve protected GRUB with a password, then forgotten it, you can use a Live CD to mount the partition where your GRUB configuration file is stored, then delete the password. To mount your partition, enter the following in a terminal from the Live desktop:
mount -t /dev/sda2 /mnt
remembering to change “sda2” to your Ubuntu partition’s correct designation, if need be. Your Ubuntu partition will now be mounted under /mnt, so you can now edit the GRUB config file (as superuser, so you can save the changes). To do so, enter the following in a terminal:
sudo gedit /mnt/boot/grub/menu.lst
Locate the password line amongst the text and remove it; it will look like:
Save the file and reboot.
Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!