🌑

Linhost.info

Fix GRUB Errors

GRUB errors are painful because once they occur the system wont boot successfully or drag along other operating system in the error, but fixing them should take long. Usually you may see grub errors because of a Windows install or deleted partition. Keep in mind that I use Ubuntu and my How-To uses an Ubuntu install CD.

Depending on you personal preference I let the Ubuntu install CD boot all the way into the graphical session. Once the live session is running open a terminal window.

We want to work from the grub prompt, enter in the terminal.

sudo grub

now the prompt changes to grub> , enter the following command to find the stage1 file.

find /boot/grub/stage1

*Note: sometimes your system may have more than one location, choose one.

In my case the result was (hd0,0), the files are on this partition.

setup (hd0,0)

What this command does is install grub in the mbr of the drive you specified.

Enter “quit” to exit from the grub shell.

quit

All that’s left to do is restart the system and wait for grub to appear.

— Aug 19, 2008