Fix Linux boot program

Source: Internet
Author: User
Fix the Linux boot program-general Linux technology-Linux technology and application information. For more information, see. I installed Linux (Fedora) with hard drive ISO in Windows and Grub for DOS for boot installation. Everything works normally after installation. One day I had a Windows system reinstalled, and I was unable to access Linux. In this case, you need to reboot Linux. The procedure is as follows:

1. Download Grub for DOS (boot system): http://sourceforge.net/project/showfiles.php? Group_id = 104188

Download unzip e2fs (extract Linux boot files from Windows): http://www.chrysocome.net/explore2fs

2. Install Grub for DOS. Decompress Grub to the C root directory.

3. Modify C: \ boot. ini and add such a line at the end. C: \ grldr = "GRUB For Dos". Save the line and exit.

4. Use explore2fs to extract the Fedora file and find the boot information from the file/grub/menu. lst:

Title Fedora (2.6.25-14. fc9.i686)
Root (hd0, 0)
Kernel/vmlinuz-2.6.25-14.fc9.i686 ro root = UUID = 88fae061-9e2e-4f6b-bb13-f95fae8ea928 rhgb quiet
Initrd/initrd-2.6.25-14.fc9.i686.img

5. Modify C: \ boot \ grub \ menu. lst,

Add the extracted information to the menu. lst file and modify the information as needed:

Title Fedora9
Root (hd1, 0)
Kernel/vmlinuz-2.6.25-14.fc9.i686 ro root = UUID = 88fae061-9e2e-4f6b-bb13-f95fae8ea928 rhgb quiet
Initrd/initrd-2.6.25-14.fc9.i686.img

Note: Because I have two hard disks, Winodos is mounted on the first disk, and Fedora is mounted on the second disk, the root (hd0, 0) is changed to root (hd1, 0)

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.