Quote:
Originally Posted by vadkutya
thx jailbait,
the floppy intermediate solution is quite obviouse. no wonder it didn't come to my mind . the second solution though would be more interesting.
|
You can mount any file which holds a filesystem as a loopback device. So, the trick would basically be the following:
1.- create a file full of zeroes which is exactly the same size of a floppy, you use dd for this (man dd). Tip: use /dev/zero as input source.
2.- format the file with the relevant filesystem. This can be any filesystem of your choice. It depends on what you are doing to do with the floppy. If you are going to create a linux disk, you probably want mkfs.ext2 or mkfs.ext3. If you want to use it in windows or dos, then you have many options, like mkfs.vfat or mkfs.msdos
3.- mount -o loop it.
4.- put anything you want into it.
5.- dump the image (with dd again) into the relevant device if you want.