Creating FreeDOS Image under ubuntu


    apt-get install wget unzip genisoimage

wget - pulling down files from the internet unzip - uncompress any zip files genisoimage - Needed for creating the ISO image

Making custom freedos disk

  1. make a source directory where you will keep all these files.
    mkdir ~/src_freedos
    export FDSRC=~/src_freedos
    cd $FDSRC
  1. Download the FreeDos OEM CD-ROM disc builder
    wget -O ${FDSRC}/
  1. unzip the package and go into the new directory called “FDOEMCD”
  1. Time for customising the FreeDOS image, always remember once you have created this image you will be making it as a read only media so this will be the only time which you will be able to make any changes (unless you setup a RAMDISK to the image which isn’t in the scope of this document). It is recommended to copy the files you want into their own directory under “CDROOT”. In the example below i am copying a BIOS firmware update package and renaming one of the applications
    unzip /tmp/ -d ${FDSRC}/FDOEMCD/CDROOT/BIOS

4a. One useful application to install to the image is reboot, by default DOS does not have an application for performing a reboot of the server after you have finished performing the work you wish todo.

    cd ${FDSRC}/
    wget -O ${FDSRC}/
    unzip ${FDSRC}/ -d ${FDSRC}/FDOEMCD/CDROOT
  1. Time to re-compile the image to an ISO image for use as either a CD or PXE boot image, drop back to the “FDOEMCD” directory and then run the following mkisofs command (feel free to alter the publisher information if you wish i have left in the FreeDos information in place, i sometimes alter it to highlight whether it’s been built for a specific hardware platform).
    mkisofs -o fdoem-20120306.iso -q -l -N
    -boot-info-table -iso-level 4 -no-emul-boot
    -b isolinux/isolinux.bin
    -publisher "FreeDOS -"
    -A "FreeDOS 1.0 Distribution" -V FDOSBIOS -v CDROOT