Wednesday, November 26, 2008

Installing Grub From Linux Live CD

Actually one of the frequently asked questions to me is grub problem. It is the solution to Linux users who get grub error or whose Linux boot option disappears.

Cause

  • When you install Windows after installing Linux. Because grub installed at MBR is overwritten by the Windows MBR ( without considering the other OS)
  • Some time grub file get corrupted
  • You add the new hard disk then mounting point might change
Solution
  1. Boot From Linux Live CD (Ubuntu or some other distro)
  2. Go to Applications -> Accessories -> Terminal
  3. Type sudo grub you will prompted to grub prompt
  4. Type "find /boot/grub/stage1" at grub prompt it will return hd?,? where '?' = 0 - 9
  5. Now type root (hd?,?)
  6. Then type setup (hd?)
  7. Finally quit and then reboot

1 comment:

Unknown said...

What if the find command doesn't find where the GRUB is located?