2004-04-26 Christian Jones <chjones@aleph0.com>
* docs/grub.texi (Making a GRUB bootable CD-ROM): minor edits, including a few compatibility notes and a change to -boot-load-size 4 for the mkisofs command.
This commit is contained in:
parent
3316fed9db
commit
fcac0d870d
2 changed files with 22 additions and 13 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-04-26 Christian Jones <chjones@aleph0.com>
|
||||||
|
|
||||||
|
* docs/grub.texi (Making a GRUB bootable CD-ROM): minor edits,
|
||||||
|
including a few compatibility notes and a change to
|
||||||
|
-boot-load-size 4 for the mkisofs command.
|
||||||
|
|
||||||
2004-04-22 Jeroen Dekkers <jeroen@dekkers.cx>
|
2004-04-22 Jeroen Dekkers <jeroen@dekkers.cx>
|
||||||
|
|
||||||
* Makefile.am (AUTOMAKE_OPTIONS): Add "gnu".
|
* Makefile.am (AUTOMAKE_OPTIONS): Add "gnu".
|
||||||
|
|
|
@ -672,11 +672,12 @@ boot loader on a running OS may be extremely dangerous.
|
||||||
GRUB supports the @dfn{no emulation mode} in the El Torito
|
GRUB supports the @dfn{no emulation mode} in the El Torito
|
||||||
specification@footnote{El Torito is a specification for bootable CD
|
specification@footnote{El Torito is a specification for bootable CD
|
||||||
using BIOS functions.}. This means that you can use the whole CD-ROM
|
using BIOS functions.}. This means that you can use the whole CD-ROM
|
||||||
from GRUB and you don't have to make a floppy or hard disk image file.
|
from GRUB and you don't have to make a floppy or hard disk image file,
|
||||||
|
which can cause compatibility problems.
|
||||||
|
|
||||||
For booting from a CD-ROM, GRUB uses a special Stage 2 called
|
For booting from a CD-ROM, GRUB uses a special Stage 2 called
|
||||||
@file{stage2_eltoriro}. All you need to have in your bootable CD-ROM
|
@file{stage2_eltoriro}. The only GRUB files you need to have in your
|
||||||
are this @file{stage2_eltorito} and optionally a config file
|
bootable CD-ROM are this @file{stage2_eltorito} and optionally a config file
|
||||||
@file{menu.lst}. You don't need to use @file{stage1} or @file{stage2},
|
@file{menu.lst}. You don't need to use @file{stage1} or @file{stage2},
|
||||||
because El Torito is quite different from the standard boot process.
|
because El Torito is quite different from the standard boot process.
|
||||||
|
|
||||||
|
@ -700,25 +701,27 @@ Copy the file @file{stage2_eltorito}:
|
||||||
$ @kbd{cp /usr/share/grub/i386-pc/stage2_eltorito iso/boot/grub}
|
$ @kbd{cp /usr/share/grub/i386-pc/stage2_eltorito iso/boot/grub}
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
Then, make the config file @file{menu.lst} under @file{iso/boot/grub}
|
If desired, make the config file @file{menu.lst} under @file{iso/boot/grub}
|
||||||
(@pxref{Configuration}), and copy files and directories to the
|
(@pxref{Configuration}), and copy any files and directories for the disc to the
|
||||||
directory @file{iso} as you wish.
|
directory @file{iso/}.
|
||||||
|
|
||||||
Finally, make a ISO9660 image file like this:
|
Finally, make a ISO9660 image file like this:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
$ @kbd{mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot \
|
$ @kbd{mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot \
|
||||||
-boot-load-size 1 -boot-info-table -o grub.iso iso}
|
-boot-load-size 4 -boot-info-table -o grub.iso iso}
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
This produces a file named @file{grub.iso}, which then can be burned
|
This produces a file named @file{grub.iso}, which then can be burned
|
||||||
into a CD (or a DVD).
|
into a CD (or a DVD). @kbd{mkisofs} has already set up the disc to boot
|
||||||
|
from the @kbd{boot/grub/stage2_eltorito} file, so there is no need to
|
||||||
|
setup GRUB on the disc. (Note that the @kbd{-boot-load-size 4} bit is
|
||||||
|
required for compatibility with the BIOS on many older machines.)
|
||||||
|
|
||||||
Note that you can use the device @samp{(cd)} to access a CD-ROM in your
|
You can use the device @samp{(cd)} to access a CD-ROM in your
|
||||||
config file. But you won't have to use this feature, because GRUB
|
config file. This is not required; GRUB automatically sets the root device
|
||||||
automatically sets the root device to @samp{(cd)} when booted from a
|
to @samp{(cd)} when booted from a CD-ROM. It is only necessary to refer to
|
||||||
CD-ROM. So it is not necessary to specify the device name explicitly,
|
@samp{(cd)} if you want to access other drives as well.
|
||||||
unless you want to access other drives as well.
|
|
||||||
|
|
||||||
|
|
||||||
@node Booting
|
@node Booting
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue