Create a grub boot CD for Linux

Source: Internet
Author: User
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.

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.