Custom FreeDOS memory stick

yes, this is about BIOS/Firmware updates

Fetch the latest FreeDOS floppy,

wget http://www.freedos.org/download/download/FD12FLOPPY.zip
mkdir freedosfd
mv FD12FLOPPY.zip freedosfd/
cd freedosfd/
unzip FD12FLOPPY.zip
mkdir lala
mount -o loop FLOPPY.img lala
cp -R lala FD12FLOPPY
umount lala

Create a FAT16 MBR partition on the stick, e.g. +100M wide, AND SET IT BOOTABLE,

fdisk -c=dos /dev/sdb

o

n
p
1
62
+100M

t
6

a

w

Format it as FAT16,

mkfs.fat -F16 /dev/sdb1

Copy the operating system onto it and eventually some needed ROM and flashing executables,

mount /dev/sdb1 /lala
cp -R FD12FLOPPY/* /lala #yes, there is a folder in there
cp -f m16jt49usa/* /lala #overwrite AUTOEXEC.BAT
umount /lala

Write the boot code using ms-sys,

ms-sys -w /dev/sdb
#ms-sys -s /dev/sdb
ms-sys --fat16free /dev/sdb1

Alternatively, you can also grap the stuff out of the Lite version,

#wget http://www.freedos.org/download/download/FD12LITE.zip
#mkdir freedoslite
#mv FD12LITE.zip freedoslite
#cd freedoslite
#unzip FD12LITE.zip
#losetup loop0 FD12LITE.img 
#losetup -l
#partprobe /dev/loop0
#ls -lF /dev/loop0p1
#mount /dev/loop0p1 lala
#cp -R lala FD12LITE
#umount lala

Refs.