Restore Grub Loader Ubuntu 9.04 (Jaunty) After Install Windows

To restore Ubuntu grub 9.04 after installing Windows we need ubuntu live cd desktop edition. For the ext4 filesystem partition you should use ubuntu 9.04 live cd desktop edition because if you use under 9.04 version does not suport for ext4 filesystem.
To fix it we follow these steps:

boot your machine by live cd ubuntu 9.04
open terminal and type :

$ sudo grub
$ grub>find /boot/grub/stage1

and you will show position filesystem, example :

(hd0,7) = maybe in your will be different.


$ root (hd0,7);
$ setup (hd0);


Checking if “/boot/grub/stage1″ exists… yes
Checking if “/boot/grub/stage2″ exists… yes
Checking if “/boot/grub/e2fs_stage1_5″ exists… yes
Running “embed /boot/grub/e2fs_stage1_5 (hd0)”… 16 sectors are embedded.
succeeded
Running “install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,)/boot/grub/stage2
/boot/grub/menu.lst”… succeeded
Done.


$ quit

and reboot your system by type :


$ sudo reboot

Finish...!!!

2 comments:

Please Comment...!!