Compiling the Grub and NTLoader startup menus

Source: Internet
Author: User
Compile the Grub and NTLoader boot menus-general Linux technology-Linux technology and application information. For more information, see the following. WINDOWS and LINUX on the computer

Some people like GRUB and some like NT Loader to start

No matter how you play, you need to know their running process

Link:
Windows-NT Loader-ntldr-boot.ini
Linux-Grub-grldr-menu.lst (menu. lst is loaded in grldr, menus in grldr can be replaced with grub4dos built-in menu editor)

Whether winxp or linux is installed, the boot loader is written to the mbr. The windows system is called NT Loader, And the linux Grub is originally the Boot Tool on Linux, which is the same as Lilo. Grub and NT Loader can guide each other.

After knowing how to load windows and linux

Friends who like loading with boot. ini

Since it is an NT Loader load, there will be no GRUB information in the MBR.

You can install WinGrub software on XP and configure to generate C: \ Grub \ menu. lst in boot. add the last line C: \ GRLDR = "zasuei Linux" in ini.

Modify C: \ Grub \ menu. lst

Change to/boot/grub/menu. lst in linux.

Resend and select this menu. (Note: The timeout of boot. ini is 5 or more. Otherwise, press f8)

Some people say that GRUB is added to the grub menu when the system is started. It must have been written into MBR during LINUX installation. It doesn't matter. Fix MBR.

Installing MaxDOS V6 in XP is really easy to use. Whether your C drive (XP system disk) Is NTFS or FAT32, NTFS can be used to repair MBR under DOS.

Press enter in the grub menu and press F8 to enter the safe mode menu. Then, select the last menu to return to the operating system and boot. after selecting MaxDOS V6 in ini, enter fdisk/mbr under A: \ To restore MBR. However, before restoring mbr, we recommend that you set/boot/grub/menu in linux. copy the content of lst to XP. Otherwise, the MBR will not be able to enter linux without GRUB. Although it can be repaired with a linux disk, it will be troublesome.

If you like GRUB loading, You Can Get grub to MBR.

Use the rescue mode for linux Disks

1. Place the first disk to the optical drive, restart the machine, and use the optical drive to guide the system in BOIS.
2. After the installation interface is installed, press the [F4] key, that is, the linux rescue mode.
3. A series of keyboards and a few simple preparations, then [continue... This process is simple.
4. Then such a character will appear
Sh #
5. Now we can operate GRUB... Haha... As long as this can happen, it will be a small Case in the future. I just don't say, no one can understand. Everyone on Earth knows it ....
Sh # grub
This character will appear
Grub>
We can enter
Grub> root (hdX, Y)
Grub> setup (hd0)
If it succeeds, there will be a successful ......
Note that there is a space between root and (hdX, Y). Here, X is 0 if it is a disk, if the root partition of the linux system you have installed is on the second hard disk, X is 1, and Y is the root partition where the linux system is installed. Setup (hd0) is to write GRUB to the hard disk MBR.

Mounting ISO to FAT32 partition without hard disk

The following are my grub. conf and boot. ini

[Boot loader]
Timeout = 5
Default = multi (0) disk (0) rdisk (0) partition (1) \ WINDOWS
[Operating systems]
Multi (0) disk (0) rdisk (0) partition (1) \ WINDOWS = "Microsoft Windows XP Professional"/noexecute = optin/fastdetect
C: \ mxldr = MaxDOS V6
C: \ GRLDR = "zasuei Linux"

********************

Boot =/dev/sda
Default = 2
Timeout = 5
Splashimage = (hd0, 8)/boot/grub/splash.xpm.gz
Hiddenmenu
Title Fedora (2.6.24.3-34. fc8)
Root (hd0, 8)
Kernel/boot/vmlinuz-2.6.24.3-34.fc8 ro root = LABEL =/1 rhgb quiet
Initrd/boot/initrd-2.6.24.3-34.fc8.img
Title Windows
Rootnoverify (hd0, 0)
Chainloader + 1

You are welcome to discuss it together. please correct me for the error.
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.