| Stand Alone Bootable CD Specs
|
Phoenix.com El Torrito 1.0 Specifications
- Specifiies how a cdrom should be formatted to be a bootable cdrom
- Makes the CD drive, through BIOS calls, look like a normal floppy drive
- Requires a 2048 byte file "boot catalog" to be created ( output from mkisofs )
- Rockridge Format
|
| Boot CD files
|
- boot floppy ( El Torrito format )
- ISOLinux Format
|
| Stand Alone Bootable CDROM
|
#
# Use a bootable floppy --> Must be exactly 1.2MB or 1.44MB or 2.88MB
#
- Create/Simulate a 1.44MB boot floppy Image ( boot.fd.img ) w/ /dev/loop + lilo
- CAUTION: Do NOT use a boot floppy made from:
dd if=/boot/vmlinuz of=/dev/fd0 bs=1024
- Create a Boot Image ( boot.img ) from an existing 1.44MB boot floppy
- dd if=/dev/fd0 of=/opt/cd_image.Tree/boot/boot.img bs=1024
-- or --
dd if=/dev/fd0 of=boot.img bs=1k count=1440
-- or --
dd if=/boot/vmlinuz-2.4.19 of=/opt/cd_iamge.Tree/boot/boot.img bs=1024
- cd /opt/cd_image.Tree
- mkisofs -r -b boot/boot.img -c boot.catalog -o cd_image.iso $DIR1 $DIR2 ....
- -c option is required
- mkisofs will output boot.catalog
Stand Alone BOOTable CDROM ( cdrw.MakeISO.sh )
- Note that some dirs, need to be writable ( /var/tmp, /var/log, /var/run .. )
- Note that "mkisofs -r" incorrectly changes the mode on some of the files.. ( /etc/ssh/*_key )
|
| Prepare the Contents of the Standalone Bootable CDROM
|
- Make sure the resulting cd_iso.img file is <= 650MB
- Prepare the StandAlone CDROM contents ( cdrw.MakeContents.sh )
- Add a ramdisk ( /ramdisk ) in the cdrom's /etc/rc.d/rc.sysinit
- Create Symlinks from the cdrom to /dev/ram for system writable directories/files
- cd /opt/cd_image.Tree
- ln -s ./ramdisk/tmp .
- ln -s ./ramdisk/mnt .
- cd /opt/cd_image.Tree/etc
- cd /opt/cd_image.Tree/var
- ln -s ../ramdisk/lock .
- ln -s ../ramdisk/log .
- ln -s ../ramdisk/run .
- ln -s ../ramdisk/spool .
- Copy all of your desired system files to the cdrom tree
- Verify that it will all fit onto a 650MB CDROM
- du /opt/cd_image.Tree
- Remove stuff from /opt/cd_image.Tree till it fits into 650MB
Stand Alone BOOTable CDROM ( cdrw.MakeISO.sh )
- Note that some dirs, need to be writable ( /var/tmp, /var/log, /var/run .. )
- Note that "mkisofs -r" incorrectly changes the mode on some of the files.. ( /etc/ssh/*_key )
|
| Other Standalone Bootable CD Howto
|
- Standalone Bootable CD doesn't need anything else to be running
- Most linux distro's installer CD has a "Rescue" mode which is a standalone Bootable CD
- Standalone Bootable CD - Rescue Mode
- Other Standalone Bootable CD
|