I was playing around this weekend, trying to create a bootable cd and I came across a script that tries to make an El Torito hd image...
http://lists.debian.org/debian-hurd/2001/debian-hurd-200110/msg00136.html It looks pretty clever, but it fails when it tries to install grub. Here's grubs output... grub> geometry (hd0) 253 16 63 drive 0x80: C/H/S = 253/16/63, The number of sectors = 255024, /dev/loop0 Partition num: 0, Filesystem type is ext2fs, partition type 0x83 grub> root (hd0,0) Filesystem type is ext2fs, partition type 0x83 grub> setup (hd0) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... failed Error 22: No such partition grub> geometry -w (hd0) 253 16 63 Error 11: Unrecognized device string ###### If anyone has any insight as to what would cause a "Error 22" I'd appreciate it. I've also included the output from sfdisk below... Thanks, Greg Buchholz Disk /big/tmp/hd.image: 253 cylinders, 16 heads, 63 sectors/track /big/tmp/hd.image: unrecognized partition Old situation: No partitions found New situation: Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /big/tmp/hd.image1 * 0+ 252 253- 127480+ 83 Linux native /big/tmp/hd.image2 0 - 0 0 0 Empty /big/tmp/hd.image3 0 - 0 0 0 Empty /big/tmp/hd.image4 0 - 0 0 0 Empty Successfully wrote the new partition table

