- Boot into any Linux using Linux Live CD. Here we are using Ubuntu Live CD.
- Open the Terminal. It is present in Accessories sub-menu of Application menu.
- Type sudo grub.
- Next we find the stage1 file of the boot loader. To do so type find /boot/grub/stage1. The output will be something like (hdX,Y), here X and Y are digits depending upon the hard disk and partition.
- Now type root (hdX,Y).
- Next type setup (hdX). Be careful regarding spaces.
- finally write quit.
Your boot loader is recovered successfully. Now reboot and remove the live CD.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.