Displaying 1 result from an estimated 1 matches for "hdz1".
Did you mean:
hda1
2012 Apr 02
3
booting a dos floppy from a disk image over pxe
...=$(ls -l $LOOPDEV|awk '{print $5$6}'|sed 's/,/:/')
DMSIZE=$(( $(ls -l $IMGLOCATION/$IMGNAME|awk '{print $5}') / 512 ))
echo 0 $DMSIZE linear $MAJOR_MINOR 0|dmsetup create hdz
fdisk /dev/mapper/hdz<<EOT
n
p
1
t
6
a
1
w
EOT
kpartx -a /dev/mapper/hdz
mkdosfs /dev/mapper/hdz1
Then I put a dosfloppy image and memdisk on the image:
mount /dev/mapper/hdz1 /mnt/
mkdir -p /mnt/boot/grub
cp dos622.IMA /mnt/boot/
cp /usr/lib/syslinux/memdisk /mnt/boot
/mnt/boot/grub/grub.cfg contains:
linux16 /boot/memdisk
initrd16 /boot/dos622.IMA
boot
and I install grub:
grub-install --...