Monday, October 15, 2012

create a .img file (floppy disk image)

I needed to mount a floppy disk image in a guest virtual machine onVMware ESXi.  It's been so long since I have needed one of those I had to use my googlefu.

I ran across a blog post from untitledfinale that did the trick.  Here is the code that I used:

dd bs=512 count=2880 if=/dev/zero of=imagefile.img
mkfs.msdos imagefile.img
sudo mkdir /media/floppy1/
sudo mount -o loop imagefile.img /media/floppy1/

Worked like a charm, but there was one problem.  vSphere4 wants to mount a .flp not a .img for a floppy image.  No worries just rename it to .flp and your good to go!







No comments: