size=1200
for i in Base.tgz first.tgz ;do
 if [ ! -f $i ];then echo "$i is missing.";size=0;fi;done
if [ $size = 0 ];then return;fi
umount /mnt 2>/dev/null
umount /dev/fd0 2>/dev/null
mkfs.minix -c -n14 /dev/fd0 $size
echo
mount -t minix /dev/fd0 /mnt
(cd /mnt;mkdir dev ibin lib proc root)
cp -p /lib/ld.so /lib/libc.so.4.5.21 /mnt/lib;sync;df
(cd /mnt/lib;ln libc.so.4.5.21 libc.so.4)
(cd disk;tar cf - *)|(cd /mnt;tar xfp -)
cp -p /usr/bin/cpio .;gzip -9S .z cpio
cp -p cpio.z /mnt/ibin/cpio.z;rm cpio.z

tar cf - etc|gzip -9 >psdata.tgz
fixup psdata.tgz
cp -p Base.tgz first.tgz /mnt
cp -p /etc/kbmap /mnt/etc
(cd init;make;cp -p init /mnt/etc/init)
cp -p Originals/g9 /mnt
cp /dev/zero /mnt/junk 2>/dev/null
rm /mnt/junk
df
umount /mnt
dd if=/dev/fd0 of=/var/tmp/tgzfiles/root bs=1024 count=$size
fixup /var/tmp/tgzfiles/root
