Friday, January 22, 2010

Creating Floppy Disk Images

Here's a recipe for creating a floppy disk image from scratch:
  1. install Mtools:
    aptitude install mtools
  2. make sure you have the following in /etc/mtools.conf:
    # # dosemu floppy image
    drive n: file="/var/lib/dosemu/fdimage"
    (it's the default configuration on Debian)
  3. create the directory:
    mkdir -p /var/lib/dosemu/ # as root
  4. create a 1.44MB floppy disk image with mformat:
    mformat -f 1440 -C n:
    or, if you happen to have your own bootsector binary file available:
    mformat -B bootsector -f 1440 -C n:
  5. loop mount the floppy image:
    mount -o loop /var/lib/dosemu/fdimage /mnt/image
  6. populate the image with files
  7. unmount the image:
    umount /mnt/image
  8. Rinse and repeat

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.