After windows is reinstalled, modify the grub boot Fedora 7

Source: Internet
Author: User
A few days ago, due to some misoperations, Windows XP broke down and I didn't want to reinstall it immediately. After the startup, I found that my Fedora 7 was not found in the boot menu.

So I went online to findArticleLook, I tried to reinstall grub with the rescue CD of Fedora 7, but I failed to try it. The most common method is as follows:

# Grub
Grub> root (hd0, 5)
Grub> setup (hd0)
Grub> quit
#

An error was reported during setup, indicating that the installation could not be completed. The grub-install command could not be installed. Finally, I decided to try wingrub.

I got a wingrub in sourceforge.net and checked that the date was before 05 years .. the result is that there is no MBR option during installation on XP, and grub/menu cannot be entered after restart. interface under list ..

Finally installed with climbing version of grub (http://nufans.net/software/tools/grub_climbing_v7.exe), restart, see grub installed successfully !!

Next, use explore2fs to read/boot/GRUB/menu. lst under fedora.

Copy the content of Fedora started in menu. lst to the file corresponding to C:/boot/GRUB/menu. lst.

In menu. lst under my own fedora, the text that starts fedora is

Title fedora (2.6.22.1-27. fc7)
Root (hd0, 6)
Kernel/boot/vmlinuz-2.6.22.1-27.fc7 Ro root = label =/1 rhgb quiet
Initrd/boot/initrd-2.6.22.1-27.fc7.img

In the menu. LST file copied to wingrub, the number of the partition where fedora is located must be reduced by 1 and changed to the following one. The other values can be unchanged:

Title fedora (2.6.22.1-27. fc7)
Root (hd0, 5)
Kernel/boot/vmlinuz-2.6.22.1-27.fc7 Ro root = label =/1 rhgb quiet
Initrd/boot/initrd-2.6.22.1-27.fc7.img

If you have other systems that copy the same copy, you can subtract 1 from the Partition Number.

FreeBSD has not been restored. I have read the article saying that this is relatively simple. Wait for a rest and try again ..
This grub is too difficult to install. I still don't understand it, so I have to try it out first.

The link that helps me solve the problem is attached below:
Http://blog.csdn.net/zhangYan1981/archive/2006/12/13/1440396.aspx

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.