When you use a device that is not the true block device, cat will fail:
| $ cat /media/MSWIN3116 > MSWIN3116.img cat: /media/MSWIN3116: Is a directory |
If you are unsure what your block device is, insert a floppy disk and at the command line use the “df” command.
For my system, since I was using a USB floppy drive the block device was /dev/sdb
| $ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sdb 1424 1002 422 71% /media/MSWIN3116 |
Create a disk image from the physical drive:
| $ sudo cat /dev/sdb > MSWIN3116.img |
Create an empty floppy image of 1.44 MB:
| $ /sbin/mkfs.msdos -C /path/imagefile.img 1440 |
Mounting it:
| $ sudo mkdir /media/floppy1/ $ sudo mount -o loop /path/imagefile.img /media/floppy1/ |
source links:
http://untitledfinale.wordpress.com/2007/10/09/create-mount-and-copy-floppy-disks-images-under-linux/
http://seth.tregenna.org/blog/?p=96