====== Differences ====== This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
isolinux [2010/09/02 17:38] alecjw created |
isolinux [2010/09/06 08:41] (current) alecjw |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Making a gPXE-bootable CD/DVD using ISOLINUX ===== | ===== Making a gPXE-bootable CD/DVD using ISOLINUX ===== | ||
- | gPXE already offers an option to make a bootable iso image via make bin/gpxe.iso, but what if you also want to store files ton the disc? Once you've written the <1MB image to the CD, you still have 701MB left, so you might as well put it to good use. | + | gPXE already offers an option to make a bootable iso image via make bin/gpxe.iso, but what if you also want to store files on the disc? Once you've written the <1MB image to the CD, you still have 701MB left, so you might as well put it to good use. |
==== You will need ==== | ==== You will need ==== | ||
SYSLINUX - This is probably available with your distribution. If not, you can get a copy from http://syslinux.zytor.com/ | SYSLINUX - This is probably available with your distribution. If not, you can get a copy from http://syslinux.zytor.com/ | ||
+ | |||
genisoimage or mkisofs - Again, probably included with your distribution. If not, it's available as part of cdrkit: http://www.cdrkit.org/ | genisoimage or mkisofs - Again, probably included with your distribution. If not, it's available as part of cdrkit: http://www.cdrkit.org/ | ||
Line 10: | Line 11: | ||
First, you need to put all the files you want to burn to the CD into a folder. You can make it wherever you like, but for this howto, I'll assume that its in ~/filesToBurn | First, you need to put all the files you want to burn to the CD into a folder. You can make it wherever you like, but for this howto, I'll assume that its in ~/filesToBurn | ||
- | Next, you need an isolinux.cfg file in the root of the folder. Here's a command to write a simple configuration; consult the SYSLINUX website if you want something more complex: | + | Next, you need an isolinux.cfg file in the root of the folder. Here's a command to write a simple configuration; consult the SYSLINUX documentation if you want something more complex: |
<code>cat > ~/filesToBurn/isolinux.cfg << EOF | <code>cat > ~/filesToBurn/isolinux.cfg << EOF | ||
default gpxe | default gpxe | ||
label gpxe | label gpxe | ||
- | kernel /gpxe.lkr</code> | + | kernel /gpxe.lkr |
+ | EOF</code> | ||
The reason for the truncated filename will be explained later. | The reason for the truncated filename will be explained later. | ||
Line 34: | Line 36: | ||
<code>genisoimage -o gPXEimage.iso -b isolinux.bin -no-emul-boot \ | <code>genisoimage -o gPXEimage.iso -b isolinux.bin -no-emul-boot \ | ||
-boot-load-size 4 -boot-info-table -J ~/filesToBurn/</code> | -boot-load-size 4 -boot-info-table -J ~/filesToBurn/</code> | ||
- | If that doesn't work, try substituting genisoimage for mkisofs | + | If that doesn't work, try substituting genisoimage for mkisofs. |
+ | |||
+ | If you aren't planning on using the disk on a windows machine, feel free to use the "-r" flag rather than "-J" | ||
You should now have an iso image gPXEimage.iso in the current directory, which you can write to a disk using your favourite CD-burning software. You should then be able to both boot gPXE and read files from the CD. | You should now have an iso image gPXEimage.iso in the current directory, which you can write to a disk using your favourite CD-burning software. You should then be able to both boot gPXE and read files from the CD. |