Article Title: Use GrubforDOS to install Linux hard disks. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
GRUB. EXE is completely GRUB, but it is repackaged so that it can run in DOS. Therefore, GRUB. EXE has all the excellent features of GRUB that you are familiar with before. Currently, grub_for_dos's latest stable version 0.0.8 can be obtained from:
Ftp://ftp.cosoft.org.cn/incoming/grub_for_dos-0.0.8.tar.gz
Or go to the directory to view: ftp://ftp.cosoft.org.cn/incoming/
Version 0.0.8 is able to run GRUB safely again (can be nested multiple times) under drive ing. EXE. the method is to run GRUB every time. when EXE is used, the previous drive ing is automatically uninstalled to restore the old BIOS int13 interrupt vector. This feature is also available in the development series (for example, version 0.1.4.
After decompression, copy the grub.exe file to the hard disk partition of DOS or the DOS floppy disk. Usage:
Grub -- config-file = (hd0, 0)/boot/grub/menu. lst
Or do not include the following parameters:
Grub
The default configuration file is (hd0, 0)/boot/grub/menu. lst.
If Linux cannot be started after installation, the possible cause is Lilo failure. At this time, you can use a grub boot floppy disk to boot successfully. If you do not have a grub boot floppy disk, you can use a DOS boot floppy disk and add a grub.exe file to easily obtain grub's powerful multi-boot functions.
By the way, a floppy disk created using the "DOS boot disk + GRUB. EXE" method can be used to start DOS and other operating systems. It is a truly "omnipotent boot floppy disk ". This floppy disk can also boot DOS when the hard disk cannot boot DOS/Windows. The GRUB floppy disk created using other methods cannot be used as the DOS boot disk again. The "DOS boot disk" mentioned here can be a MS-DOS or FreeDOS (by the way, FreeDOS build 2029 already supports the FAT32 large partition format of Win98 ).
Another scenario: When you reinstall Windows, Windows will rewrite MBR to erase the startup code of LILO or GRUB. With GRUB. EXE, you can start other operating systems without a floppy disk (assuming your Windows OS is 9x or your hard disk is installed with DOS ).
Loadlin.exe can also be used to start Linux, but loadlin requires a kernel file (vmlinuz), which must be in the DOS/Windows partition, sometimes this kernel file is not suitable for your recently installed Linux system kernel. GRUB. EXE does not have such restrictions. It can give you great freedom. It starts from DOS and can find any files (including kernel files) from Linux partitions ), it is easy to know that this kernel matches with the system to be booted, so as to guide the Linux system.
Loadlin.exe is also a Linux boot tool that can be used without installation. Grub.exe is different in that it is a boot manager that can guide other operating systems.
Search for details about GRUB in the search engine (http://www.google.com. Here is just a very common simple example, the command line operation:
Grub> find/boot/vmlinuz
(Hd0, 7)
Grub> root (hd0, 7)
Grub> kernel/boot/vmlinuz root =/dev/hda8
Grub> boot
A few simple grub commands can be used to start Linux. Is it very convenient? By the way, grub's find command is good. grub even has a cat command to display the content of a file. Run the help command at the grub prompt to obtain online help. The Partition Number (hd0, N) of grub is generally Linux/dev/hda (N + 1). For example, (hd0, 7) is/dev/hda8, if you are using a SCSI hard disk, It is/dev/sda8. a special case is that when your system does not have an IDE primary disk and only one slave disk on IDE 0, grub displays (hd0, 7) Linux/dev/hdb8, that is, the first BIOS hard disk (hd0) found by GRUB is/dev/hdb in the system. A complex example:
Find the location of the kernel file in the system:
Grub> find/boot/vmlinuz
(Hd0, 7)
If you use a separate boot partition, you must use
Grub> find/vmlinuz
. Assume that the result is
(Hd0, 6)
Find the root partitions in the system:
Grub> find/sbin/init
(Hd0, 7)
The command to start the kernel is:
Grub> kernel (hd0, 6)/vmlinuz root =/dev/hda8
Grub> boot
If your (hd0, 7) is not/dev/hda8 but/dev/hdb8, try it:
Grub> kernel (hd0, 6)/vmlinuz root =/dev/hdb8
Grub> boot
[1] [2] Next page