Four methods for making Linux boot disks
Linux's boot floppy disk has boot disk and boot / root disk, so-called boot disk can only be used to start the Linux system installed on the hard disk, and the boot / root disk itself is a mini Linux system. Linux boot floppy disk is a must-have tool for system repair, so mastering the production method of the boot floppy disk is very useful. Here I will introduce four different production methods of the BOOT disk:
1. Use the mkbootdisk tool to make a boot disk for the current system
Mkbootdisk - DEVICE / dev / fd0 `uname -r`
Parameter Description: - Device / dev / fd0 is to establish a boot floppy disk, which is also the default option, so it can be omitted; the next parameter is the kernel version number, such as 2.2.16, here, this is the use of `uname -r` command To obtain the kernel version number of the system. For more parameters, please refer to the man page by yourself: Man Mkbootdisk.
This method will make a boot floppy disk for the current system, so the Linux system must have been run, and the mkbootdisk package is installed in the system (if not, install the package). The created boot disk is the same as the startup floppy disk that is clicked during the Linux installation.
2. Mount LILO in the boot sector of the floppy disk
LILO -B / DEV / FD0
Parameter Description: -b / dev / fd0 is installed on a floppy disk because it is installed on the hard disk by default, so it will not be omitted; the -c config_file parameter will allow you to use /etc/lilo.conf Profile. For more parameters, please refer to the man page: Man Lilo.
This method is also a boot disk for the current system.
3. Find a bootable kernel to point the root device to the correct root partition, then "engraved" into the floppy disk
RDEV VMLINUZ / DEV / HDA?
DD if = vmlinuz of = / dev / fd0
Note: Use the RDEV command to guide the root device in the kernel VMLinuz to / dev / hda? Please put HDA? Change to your own root partition, next to the DD command to write the kernel into the floppy disk.
This method can use any of the bootable kernels to create, so it can be done with other Linux systems, which is especially useful when it is already unable to enter your Linux system through a hard disk. However, it should be noted that if you use the kernel different from your system, you may lose some of the features after startup, such as you can't load some modules, you can't display Chinese characters correctly (when you guide Chinese Linux), if you Also want to make a dedicated start disk for your system, you can use the method 1 or 2 after startup.
4. Using the loader on the floppy disk and a bootable kernel boot system
First, you have to make a DOS boot disk (Format A / S), copy the loader loadlin.exe and the bootable kernel VMLinuz to the floppy disk, and then establish the auto batch file autoeexec.bat, the content is as follows:
Loadlin VMLINUZ root = / dev / hda? RO
This method is simple, because Loadlin.exe and a bootable kernel VMLinuz can be found on the various versions of the Linux installation CD, which can be easily copied in DOS or Windows 9x. Features Like Method 3, you can use any of the guidance kernel to boot the system.
The above four methods are verified in the distribution kits including redhat, blue dots, xteam linux, turbo linux, and red flags, etc.