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

  1. sudo grub

From the 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.


Turn to Linux http://sahabm.blogspot.com


This page was last modified on 17 March 2009, at 10:52. This page has been accessed 438 times.

  
Powered by MediaWiki

Copyright © 2008, Ubuntu India | All contents are under GNU Free Documentation Licence | For queries mail admins at ubuntu-in.info