dst <= [usb1 mount-point path]
cp -arf ./diag/*/data/* ${dst}/
sed -e '/\.sys/ s,FREEDOS\\BIN,\FDOS,I' -i ${dst}/CONFIG.SYS
sed -e 's,=[^ ]*\(\\COMMAND.COM\),=\1,gI' -i ${dst}/fdconfig.sys
sed -e 's,\(SET DOSDIR=\).*,\1\\FDOS,I' -e 's,\(%dosdir%\)\\bin,\1,gI' -i ${dst}/fdauto.bat
sed -e "s/%[bram]\{0,3\}DRV%://gI" -e "s,%1:[%\\],,g" -i $(find ${dst} -iname \*.bat)
sed -e "s/bat %DRV%/bat ''/" -i ${dst}/TOOLS/BASE/me.bat
mv ${dst}/AUTOEXEC.BAT ${dst}/diag.bat
dst <= [usb1 mount-point path]
cp -arf ./bios/DOS/* ${dst}/
umount ${dst}/
usbdisk <= [usb disk device]
umount ${usbdisk}*
fdisk -l ${usbdisk} | grep ${usbdisk}1
sectors <= [usb disk p1 size in 512 byte sectors, biggest number]
image="fdos-p910-bios-diag.img"
dd if=${usbdisk} count=${sectors} | pigz - >${image}.gz
image="fdos-p910-bios-diag.img"
pigz -dc ${image}.gz > ${image}; losetup -Pf ${image}
[do whatever you like on loop device 1st partition]
losetup -D $(losetup -l | grep ${image} | cut -d' ' -f1)
- keyb it - for the italian keyboard - diag.bat - for hardware diagnosys - dosflash.bat - for the bios updateWARNING!
It strongly suggested a cold reboot between HW diagnosys and BIOS update.
© 2025, Roberto A. Foglietta <roberto.foglietta@gmail.com>, CC BY-NC-ND 4.0