DIY Grub and NTLoader startup menus in Linux

Source: Internet
Author: User
In Linux, Grub and NTLoader Start Menu DIY-general Linux technology-Linux technology and application information. The following is a detailed description. On the computer, there are WINDOWS, LINUX, some people like GRUB, and some people like NT Loader to start. No matter how you play it, you must know the relationship between their running processes:

Windows-NT Loader-ntldr-boot.ini

Linux-Grub-grldr-menu.lst (menu. the lst has been loaded in grldr. You can replace the grldr menu with the "grub4dos built-in menu Editor".) whether you are installing winxp or linux, the lst will be written to the boot loader at 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 the loading methods of windows and linux, you can easily use boot. since the ini is loaded by NT Loader, there will be no GRUB information in MBR. You can download WinGrub software in 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. Just 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 is troublesome to load GRUB, then try to get grub to MBR to get the linux disk and use the linux rescue mode.

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, and then [continue. This process is simple.

4. Then such a character will appear
Sh #

5. We can operate GRUB. As long as this happens, it will be a small Case in the future. I just don't say it. Everyone can understand that 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

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.