Fixed the damage to Grub in both Fedora and Windows systems.

Source: Internet
Author: User
The latest installation of Vista is incorrect. It is an MSDN version. After the update, I am prompted to activate it. No way, you can only reload the original OEMUltimate version. I have considered the consequences after the reinstallation, that is, the loss of Grub. But I don't want to reinstall Linux. You need to know that I only went from Fedora7yum to Fedora8 one day after yum. Try to fix Grub, and get a few simple commands. 1. Put it on a Linux disk. Any disk, LiveCD, or installation disk.

The latest installation of Vista is incorrect. It is an MSDN version. After the update, I am prompted to activate it. No way, you can only reload the original OEM Ultimate version. I have considered the consequences after the reinstallation, that is, the loss of Grub. But I don't want to reinstall Linux. You need to know that I am from Fedora7 yum to Fedora 8 after yum for one day. Try to fix Grub, and get a few simple commands.

1. Put it on a Linux disk. Any disk, LiveCD, or installation disk. Set to boot with a Linux CD.

2. in Linux Rescue mode, sh # appears #

3. enter sh # fdisk-l to go to the disk list. Write down where your Linux and Windows are installed.

4. enter sh # grub to enter the Grub configuration interface.

Grub> root (hdX, Y) Here X and Y represent numbers. Hd0 and 1 represent the first partition of the first hard disk. Enter the information you just saw in fdisk.

If it is correct, it will prompt to recognize the disk format as Linux

Grub> setup (hdX) The X here is the same as the previous value. If the value is successful, the succeed prompt is displayed.

Then

Grub> quit

Sh # reboot

Repair completed.

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.