Source: Internet Author: anonymous name time: 09-08 17:02:35 [large
Medium and small]
Comments: Many articles on the Internet show you how to mount grub on a floppy disk. This floppy disk can be used when the hard disk boot information is damaged. However, it is much more convenient for users who do not have a software drive or who are not convenient to use a software drive. This article describes how to create a CD. First, let's assume that we have an operating Linux
Many articles on the Internet show how to install grub on a floppy disk. This floppy disk can be used when the boot information of the hard disk is damaged. However, it is much more convenient for users who do not have a software drive or who are not convenient to use a software drive. This article describes how to create a CD.
First, let's assume that we have a good Linux release (including the cdrtools Software Package), CD or DVD recorder (which has been configured and can work properly in Linux. For how to set it, many articles on the Internet), grub software package.
My system is RedHat Linux 9.0, but the grub package of this release does not contain the stage2_eltorito file we need most (this file is the most important file for creating the grub boot disc) so I downloaded grub for version 0.95. Address: ftp://alpha.gnu.org/gnu/grub/grub-0.95.tar.gz.
Next we will install grub in the same way as most source code packages. We need:
$ Tar zxvf grub-0.95.tar.gz
$ CD grub-0.95
$./Configure
$ Make
$ Make install
Okay, grub is installed. (stage2_eltorito is obtained. To save your time, I extracted this file. If anyone can upload the file for download, mail it to me)
Now, we can get our grub image:
$ Mkdir ISO
$ Mkdir-p iso/boot/GRUB
$ CP/stage2_eltorito path/stage2_eltorito ISO/boot/GRUB
$ CP/boot/GRUB/menu. lst iso/boot/GRUB
$ Mkisofs-r-B boot/GRUB/stage2_eltorito-no-emul-boot-load-size 4-boot-Info-table-O grub. ISO
Now grub. ISO is the image you need.
Then, use cdrecord or the front-end to engrave the image in CDR/RW.
$ Cdrecord-V Dev = 0, 0/grub. ISO path/grub. ISO speed = 8
Modify the preceding command according to your own situation.
Now we get a grub boot disc.
Of course, since creating a grub boot disc only requires more than 200 K bytes, you can put some other useful things in the ISO folder to create an image when creating the ISO.