Containing whatever I enthuse over

  • Categories

  • Archives

Grub Stops Working

Posted by clissold345 on November 14, 2006

Suppose that you have linux and another operating system (e.g. Windows) installed on your PC. You normally start your PC using Grub (Grand Unified Bootloader). Then one day Grub stops working. The instructions below give one possible way of fixing the problem.

Grub consists of two stages: stage1 and stage2. I assume Grub stage1 was installed on the first partition of your hard drive and Grub stage2 is installed on your linux partition. I assume that the problem with Grub is that Grub stage1 is corrupt or has been overwritten.

Boot your PC from a linux rescue cd (the cd needs to have a copy of grub on it). I used System Rescue Cd.

At the command prompt enter:


to start the Grub command shell.

To find which partition is your linux partition enter:

find /boot/grub/stage1

To set the Grub root device to be your linux partition enter:

root (hd0,x)

where “(hd0,x)” is the partition name output by the previous command. On my computer the linux partition is (hd0,6).

To reinstall Grub stage1 enter:

setup (hd0)

To quit the Grub command shell enter:


To reboot your PC enter:

shutdown -r now

Remove the linux rescue cd from the cd drive. Your PC should now reboot using Grub (just as it did before the problem occurred).

Note: The above instructions work for System Rescue Cd version 0.2.19


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: