Crash Recovery Kit


Table of Contents

HOWTO create your own iso 
Using Crash Recovery CDROM 
Using SYSLINUX 

HOWTO create your own iso 

http://crashrecovery.org/CrashRecoveryKit/contrib/CREATE_ISO.txt

The older crash recovery kit iso's used the 2.88 Mb floppy El-torito boot-emulation. However the thing has gone to big and i'm not able anymore to use 2.88 Mb floppy-emulation with mkisofs to make cdboot.img bootable inside my iso. Instead i now use the disk-emulation option.

here's the one-liner to create the iso :

/usr/bin/mkisofs -b boot/diskimage.img -c boot/boot.catalog \
      -hard-disk-boot -o /mnt/data2/crash2418.iso  -l -r -L -J \
      -V "CRK for Linux 2.4.18" -P "CRK-2002032801" -p "stock" \
      -A "CRK for Linux 2.4.18"  "/mnt/data2/crash2418"

The downside is i have to use a physical partition on my first harddisk (/dev/sda /dev/sda1) to manipulate the contents of diskimage.img. The procedure to activate lilo is :

# fdisk /dev/sda

Command (m for help): p

Disk /dev/sda: 255 heads, 63 sectors, 555 cylinders
Units = cylinders of 16065 * 512 bytes
   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1         1      8001   83  Linux

Command (m for help): q

# mount /dev/sda1 /mnt/root
# cd /mnt/root
# lilo -C etc/lilo.conf
# sync
# sync
# cd /
# umount /mnt/root
# dd if=/dev/sda of=diskimage.img bs=1k count=8192

here's the contents of /mnt/root/etc/lilo.conf :

boot=/dev/sda
map=boot/map
install=boot/boot.b
message=etc/message.txt
compact
prompt
image=vmlinuz
        label=linux
        append="root=/dev/ram0 ramdisk_size=8192"
        initrd=boot/rootrh72.gz
        root=/dev/ram0
        read-only
[Important]

If you use the procedure outlined above always rerun lilo on your ordinary /etc/lilo.conf . Otherwise you will only be able to boot your CRK for Linux 2.4.18 from harddisk ( i.e. /dev/sda1 ) afterwards.

With every release of CRK for 2.4.x i will include a tar.gz tarball of the contents of the /dev/sda1 partition described above. It will be on the CRK cdrom and as a seperate download. They are located inside the boot directory and called in this case diskfiles2418.tar.gz .

For more info email me at stock@stokkie.net

Robert M. Stockmann

documented on: Mon Apr 15 09:55:58 CEST 2002