Fix FedoraLinux startup after Windows is reinstalled

Source: Internet
Author: User
Article Title: Fix FedoraLinux startup after Windows is reinstalled. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

The HP desktop in the office was recruited. The virus was so bad that all the EXE and TXT files were infected. The MAC antivirus software did not find it. It reinstalled XP and installed 2003 again, the dual-System Anti-Virus is relatively safe, And GHOSH is installed on XP to restore each other, so you don't have to worry about it. It's absolutely safe.

It is expected that the MRB of the original dual-system Linux will be overwritten. Linux cannot find the startup item, and the reinstallation is too bad. After reading a lot of documents on the Internet, the Linux Startup will be restored.

This is one of the methods and the fastest method:

1. Place the Fedora9 Linux installation disk to the optical drive and drive guide.

2. After the installation interface is displayed, select (Rescue ......) Item (with prompt)

3. The installation and import page appears, and a prompt will be displayed ......, Press enter all the time. When you are prompted to configure the network, select NO to skip.

4. The sh # prompt appears. Enter the cfdisk command to view the partition where Linux/boot is installed, such as sda6 (SCSI hard disk)

5. Enter grub and press enter to go to grub>

6. enter grub> root (hdX, Y) root under grub> with spaces. If it is incorrect, a prompt will be displayed (the values of x and y are assigned values based on the actual situation. There is only one hard disk, windows and linux are both installed on this disk, so X = 0. The/boot partition in linux is sda6. Here, Y is 5, (6 is unavailable, confusing ))

7. grub> setup (hd0)

8. Enter quit to exit grub.

9. Enter reboot and restart OK.

Note:

When installing Grub on a hard disk, do not use root (sda, 0) or root (hd0, 0) Because Grub does not distinguish the SCSI hard disk from the IDE hard disk and is expressed in HD, the restoration of GRUB in Fedora9 Linux may be different in other versions!

It seems simple, but there are a lot of references on the Internet that are incomplete and unclear, and there are several key points wrong

It took several hours to complete.

Related Article

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.