If you have lost grub after install Windows and cannot boot Linux then this tip will help you restore grub and the boot Linux.
What we need?
Ubuntu Live CD
Steps
a) boot from Ubuntu Live CD
b) Open terminal
Applications > Accessories > Terminal
c) You will see the gnome terminal,Now we need to enter grub. In the terminal type
sudo grub
d) Now you will see a different prompt called grub>
Everycommand below will be typed in the grub> menu.
We need to find the root device, that contains the GRUB's first and second boot files
grub> find /boot/grub/stage1
(hd0,0)
Note that your output might be different depending upon the partition where u install linux, example say (hd0,6) or (hd1,5). When (hd0,0) is mentioned below, replace it with the output that u see here.
e) grub> root (hd0,0)
f) grub> setup (hd0)
g) now restart your computer and you should see your old grub screen, and your linux should work as well.
Cheers
Reference:
1) LINUX COOKBOOK by Carla Schroder
Friday, December 7, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment