Linux: Fixing a broken grub
May 3rd, 2009
No comments
The grub corrupted or replaced by another boot loader? follow this steps to fix it.
- Boot the system using any linux live having grub installed in it.
- Under the root user, execute “grub” to access the grub prompt.
- Use “find /boot/grub/stage1″ command in the grub prompt to find where the file is. The result should be like (hd0,2), (hd0,0), etc
- Use “root (hd0,2)” command, the (h0,2) taken according to the result in 3rd step.
- Use “setup (hd0,2)” command to install grub in the partition, or just (hd0) to install it on the Master Boot Record (MBR) of the disk 0.
good luck!