Nethence Newdoc Olddoc Lab Your IP BBDock  

PXEing DOS and custom 2.88 floppy

DOS

mkdir -p /var/lib/tftpboot/dos/
cd /var/lib/tftpboot/dos/
cp -pi /usr/lib/syslinux/memdisk ./
wget http://lab.nethence.com/elge/floppy/win98sc.img
#wget http://lab.nethence.com/elge/floppy/dos622.img

vi /var/lib/tftpboot/pxelinux.cfg/default

label DOS (win98sc)
kernel dos/memdisk
initrd dos/win98sc.img

Ref. http://www.syslinux.org/wiki/index.php?title=MEMDISK#Floppy_images

DOS custom 2.88 MB floppy

cd ~/
wget http://prdownloads.sourceforge.net/ms-sys/ms-sys-2.5.3.tar.gz?download
mv ms-sys-2.5.3.tar.gz\?download ms-sys-2.5.3.tar.gz
tar xzf ms-sys-2.5.3.tar.gz
cd ms-sys-2.5.3/
make
make install

cd /var/lib/tftpboot/dos/
wget http://lab.nethence.com/elge/floppy/win98sc.img
#wget http://lab.nethence.com/elge/floppy/dos622.img
mkdir lala
mount -o loop win98sc.img lala
#mount -o loop dos622.img lala

cd /var/lib/tftpboot/dos/
dd if=/dev/zero of=floppy288.img bs=1024 count=2880
mkfs.fat -F 12 floppy288.img 
ms-sys -1 -f floppy288.img
#ms-sys --mbr95b -f floppy288.img
#ms-sys --mbrdos -f floppy288.img
mount -o loop floppy288.img /mnt
cp lala/MSDOS.SYS /mnt/
cp lala/IO.SYS /mnt/
cp lala/COMMAND.COM /mnt/
#cp lala/CONFIG.SYS /mnt
#cp lala/AUTOEXEC.BAT /mnt
# THE BIOS YOU WANT TO FLASH...
umount /mnt

umount lala; sleep 1; rmdir lala

vi /var/lib/tftpboot/pxelinux.cfg/default

label floppy 288
kernel dos/memdisk
initrd dos/floppy288.img
#append floppy

Ref. http://ms-sys.sourceforge.net/


Home | GitHub | Docker Hub | Donate | Contact