8

I'm running a virtualbox ms dos 6.22 emulator and I need quite a lot of virtual floppy images filled with software.
Does anyone know a good program to efficiently create floppy images and fill them with my specified files??

It's for an Old School Gaming Night and we want it to be as authentic as possible.

Both software as ways to mount several floppys at once (or to mount, unmount and to mount the next floppy in quick succession) using the terminal are appreciated.

2
  • Have you tried Dosbox Jun 17, 2014 at 6:42
  • I know I can use dosbox with imgmount but that doesn't make it more efficient. In fact WITH dosbox I'll need even more time since I'll need to use the copy command instead of just dragging and dropping (the folders are a bit too diverse to create a batch file so using dosbox will result in a lot of typing)
    – Akisame
    Jun 17, 2014 at 10:49

2 Answers 2

15

You can create a blank floppy image with the command:

mkfs.msdos -C /path/imagefile.img 1440

On some systems /mkfs.msdos is under /sbin directory. Afterwards you can mount it as loopback device with command:

sudo mkdir /media/floppy1/
sudo mount -o loop /path/imagefile.img /media/floppy1/

To unmount, use the command

sudo umount /media/floppy1/

If you want to create an image from the physical floppy disk, use dd command (disclaimer - I didn't try the below as my floppy is gone! but should work) (and assume that's 1.44MB type floppy disk... 1.2MB ones should have gone at the time of DOS 6.22 )

dd bs=512 count=2880 if=/dev/fda of=/path/imagefile.img

Reference: man page of mkfs.msdos; Create mount and copy floppy disks images under linux

6
  • Thanks but I knew that already. I was just trying to find a more efficient way to making loads of floppy images. I'll probably go and write a little gui to make it a bit faster to create and mount them. Thanks anyway
    – Akisame
    Jun 17, 2014 at 10:42
  • What do you meant by "loads of floppy images"? Can writing a shell script do?
    – Kenneth L
    Jun 18, 2014 at 1:34
  • What I mean is that originally it was one game per floppy (or several of them in most cases). Since we want to make it as authentic as possible we need to create at least one image per game and since we want to have a wide variety of games we'll need 'loads of floppy images'. We can't use the original floppy disks because they (in most cases) haven't been used in a really long time and the magnetic disk order has degraded resulting in loads of crashes when running it from the real floppy disks, hence the images. I've made a gui because I will not create ALL images myself
    – Akisame
    Jun 21, 2014 at 11:50
  • How you add files to that floppy image? Jul 11, 2022 at 17:58
  • 1
    @Carlitos_30 Once you mount the floppy image with sudo mount -o loop /path/imagefile.img /media/floppy1/, you can add files to the path /media/floppy1/. When you are done, unmount it. Please note the 8.3 filename restriction
    – Kenneth L
    Jul 12, 2022 at 2:00
1

I have experienced this too. One solution is trying:

dd bs=512 count=2880 if=/dev/fda of=/path/imagefile.img

If that fails:

  • go to the disks app,
  • press the 3 lines at the top left corner where it says disks,
  • press new disk, and make your .img file.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .