My machine has two hard disks, both of which are 80 GB. One is SATA and the other is IDE. XP is installed on the SATA hard disk, and the other one is empty. I want to attach a fc5 to the IDE hard disk, but do not write GRUB boot information on the MBR, so that when I need to reinstall XP, fc5 cannot be started because the MBR is overwritten. I found grub for DOS installed on the SATA hard disk for boot and fc5 installation.
Download grub for DOS from this address, version 0.41:
Http://sarovar.org/download.php/861/grub_for_dos-0.4.1.zip
Install on XP. After the installation is complete, a hidden folder boot and a hidden file grldr are generated under drive c: \, and the hidden file boot under drive c: \ is rewritten. INI. This file is also the boot information file of the XP system. The last line will be added with: C: \ grldr = "*******", the content of ****** can be changed at will.
1. Boot fc5 hard disk installation
Extract the vmlinuz and initrd. IMG files from the isolinux directory of the first ISO file of fc5 and put them in a FAT32 partition of XP (which must be a FAT32 partition ). Rewrite the menu. LST file in the boot folder and write the boot information.
Timeout 10
Title Fedora Core 5 install
Kernel (hd0, 6)/vmlinuz
Initrd (hd0, 6)/initrd. img
Okay, you can guide it. When I installed it here, fc5 regards the SATA hard disk as HD, so the above root directory is still written as (hd0, 6.
Put the four ISO files of fc5 in a FAT32 partition.
Choose not to Install Boot Loader during installation Program Otherwise, the MBR will be rewritten. Complete the installation.
2. boot
After the installation is complete, the fc5 cannot be started directly. You need to rewrite menu. lst to the startup mode. That is, to let grub find the fc5 kernel, with the kernel, everything will be OK!
Rewrite menu. lst. Mine is like this:
Timeout 0
Title Fedora Core 5
Kernel (hd1, 0)/boot/vmlinuz-2.6.17-1.2187_FC5smp Ro root = label =/rhgb quiet
Initrd (hd1, 0)/boot/initrd-2.6.17-1.2187_FC5smp.img
I used timeout 0 above because I only installed a Linux system, so I don't have to choose it. I just need to enter it directly.
If you cannot remember the version number of the vmlinuz-* And initrd-* files and the folder name, it does not matter. When you start Linux, grub will tell you an error and press any key to continue, press any key to enter the command line above. Select a row with an error and press the "e" key to edit the row. You can use the "tab" key to complete the modification, which is easy to use.
After Linux is started, go to the/boot directory and find the correct names of the vmlinuz-* And initrd-* files used, copy them, and run the menu in XP. change the LST file.
When you re-install XP next time, you only need to back up the boot folder, Boot. ini, and grldr files under C:. After the installation of XP is complete, copy it back and restore the multi-boot menu.
// Find the image file for Installation
1.
Code:
Title Ubuntu 8.04 livecd
Root (hd0, 3)
Kernel/vmlinuz boot = Casper iso-Scan/filename =/Ubuntu-8.04-desktop-i386.iso quiet splash Ro locale = zh_CN.UTF-8
Initrd/initrd.gz
Boot
2.
Code:
Title install Ubuntu
Find -- Set-root/ubuntu-8.04-desktop-i386.iso
Kernel/vmlinuz boot = Casper iso-Scan/filename =/ubuntu-8.04-desktop-i386.iso
Initrd/initrd.gz
Boot
//////////////////////////////////////// ///////
Use grub (including wingrub) command line mode to guide Linux installation;
When the grub screen is displayed, press the C key to enter the command line mode. If you are using wingrub, you can also press the C key.
Sample;
Grub in Linux and Windows has the command line function, which is extremely useful. It can not only guide the system, but also sometimes repair the system.
In addition, the installation of Linux is guided;
Example:
For example, we put vmlinz and initrd. img in the fc5 directory of/dev/hda2. How should we write the grub command line?
Grub> kernel (hd0, 1)/fc5/vmlinuz
Grub> initrd (hd0, 1)/fc5/initrd. img
Grub> boot
How can I write data directly in the/dev/hda3 partition instead of any directory?
Grub> kernel (hd0, 2)/vmlinuz
Grub> initrd (hd0, 2)/initrd. img
Grub> boot