Creation of a boot 2.88M floppy image for bootable cd on SCO UNIX OPENSERVER
The main idea is to remplace 2.88M floppy driver with virtual disk driver.
tput clear
echo "script mkboot.sh"
echo ""
echo "create boot flopyy 2.88M for cd in bootses.img"
echo ""
echo "when mkdev fd is launch ask for a 2.88M floppy"
echo "do not format the disk"
echo "press enter to continue"
read toto
cd /
# use /dev/ram01 for virtual floppy disk
umount /dev/marry/dev/ram01 > /dev/null 2>&1
marry -d /dev/ram01 > /dev/null 2>&1
rm /dev/ram01 > /dev/null 2>&1
# to make /dev/ram01 have 2.88M size by copying dummy data
dd if=/dev/hd0a of=/dev/ram01 bs=36b count=160
marry -a /dev/ram01
# here replace 2.88M floppy driver with virtual disk /dev/ram01
mv /dev/fd0135ds36 /dev/back_fd0135ds36
mv /dev/rfd0135ds36 /dev/back_rfd0135ds36
ln /dev/marry/dev/ram01 /dev/fd0135ds36
ln /dev/marry/dev/ram01 /dev/rfd0135ds36
mkdev fd
# here to modify boot if need
mount -f HTFS,nolog /dev/marry/dev/ram01 /mnt
cp /stand/bootos /mnt
cp newbootforcd /mnt/etc/default/boot
umount /mnt
# output image
dd if=/dev/ram01 of=boot.img bs=36b count=160
# restore 2.88M floppy driver
rm /dev/fd0135ds36
rm /dev/rfd0135ds36
mv /dev/back_fd0135ds36 /dev/fd0135ds36
mv /dev/back_rfd0135ds36 /dev/rfd0135ds36