Compiling grub menus for Windows and Linux systems

Source: Internet
Author: User
Windows and Linux dual-system grub menu writing-Linux general technology-Linux technology and application information, the following is a detailed reading. Original ZaSueiSystem

When you install two systems, select the default system to enter. Sometimes, reinstalling the system will cause another system to enter.

1. Guide linux under windows

You can use MENU. LST generated by WinGrub tool in Windows to guide linux and edit it so that you can install linux directly on the hard disk. My hard drive is WD 160G, previously with redhat9.0 disc installation, can not identify the hard disk, and then on the Internet under a Fedora-8-i386-DVD.iso

This is the MENU. lst I edited. It can be opened in notepad.

Timeout 10

Title Windows at (hd0, 0)
Root (hd0, 0)
Chainloader + 1

Title Fedora
Root (hd0, 6)
Kernel (hd0, 6)/vmlinuz
Initrd (hd0, 6)/initrd. img

Note: I wrote (hd0, 6) here because I mounted the iso on the F disk and obtained it using WinGrub point tools = "partioinlist ".

########

Timeout 10

Title Windows at (hd0, 0)
Root (hd0, 0)
Chainloader + 1

Title Fedora
Root (hd0, 6)
Kernel (hd0, 6)/vmlinuz
Initrd (hd0, 6)/initrd. img

########

Change

#######

Timeout 10

Title Windows at (hd0, 0)
Root (hd0, 0)
Chainloader + 1

Title Fedora
Root (hd0, 8)

Kernel/boot/vmlinuz-2.6.24.3-12.fc8 ro root = LABEL =/rhgb quiet
Initrd/boot/initrd-2.6.24.3-12.fc8.img note: the file name here should remember after the first installation of linux, different versions of the file name may be different. I only write my own content here. Please note that. Remember the file name under/boot.

You can boot linux in windows. Even if you cannot see the linux menu after you reinstall XP, You can edit it again to restore the linux menu.

2. Guide XP in linux

Edit grub. conf in/boot/grub/vi,

As shown above, the XP menu appears.

Grub will not be compiled. You can remember grub after the first installation to avoid future troubles.
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.