Grub Fixing Ubuntu

Grub Fix – Ubuntu

Installing Windows After Ubuntu

Normally when Windows is installed after Ubuntu the master boot record will be overwritten. This means that you would have to boot off a LiveCD and re-install grub. The steps are

Open the terminal From the grub
 * 1) sudo grub

Type

grub> find /boot/grub/stage1

(hd0,1)

(hd0,5)

It dispay partition which contains your grub files. I have two linux OS installed.

Then run the following command

>root (hd0,1) >setup (hd0)

(hd0) = the MBR for the hard disk which is where grub needs to install itself too for it to load on bootup.