How to restore Grub after Windows is reinstalled

Source: Internet
Author: User
After Windows is re-installed, how does Grub restore-Linux general technology-Linux technology and application information? For more information, see the following. A System File C_936.nls was accidentally deleted when a virus file was deleted in Windows the day before. After the CD file is copied to the faulty recovery platform, Windows returns to normal, but the Grub menu is missing. It is assumed that MBR is overwritten during Windows Recovery.

1. Insert a Linux emergency drive to the linux rescue mode.

2. Run the mount command to connect the correct file system.

3. execute commands
Chroot/mnt/sysimage

4. Install GRUB
Grub-install/dev/hda

Note: For SATA hard disks, change to/dev/sda.

Run grubgrub> root (hd0, X) on the boot disk)

Here 0 is ide0. If your LINUX is not on the first hard disk, correct it accordingly. X is your BOOT zone.

Grub> setup (hd0, y)

Y is the partition where you want to install GRUB, usually (hd0 )? MBR or (hd0, X)-X is the same as above.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.