新博客: http://qinchuan.me
全部博文(32)
分类: LINUX
2011-09-06 16:13:10
If the MBR (Master Boot
Record) of your computer's disk has been overwritten. Your computer won't boot up.
This notes
explains how to set up the MBR to point to the original grub. [with new grub2]
Here are the general steps:
Following are the steps in details.
Find your Ubuntu 10.04 Live CD and Boot from it
Self-explanatory. In theory, any live CD that uses Grub 2 should work.
Figure out boot partition
Using a partition editor, you can review the available partitions and remind yourself the name of the partition where the boot is located. On the Ubuntu Live CD, “gparted” is the command. It is available under the System > Administration menu.
You can add “gparted” in a Debian-based system with the following command:
Restore Master Boot Record (MBR)
Run the following commands, substituting with the correct partition names:
After this, remove Live CD, close tray and reboot. The original grub2 should load.
Add Windows to Grub2
Re-running the “update grub” should allow grub2 to discover Windows:
That should do it. Good luck.
Original article:
See also: