Note
This guide does only work on Linux systems.
dd if=/dev/zero of=disk.img bs=1M count=10
/dev/zero
is a dummy device which only returns zeroesof=disk.img
is the name of the resulting image filebs=1M
the blocksize (set to 1Megabyte)count=10
Number of blocks (here 10) resulting in 10MB of space.
sudo mkfs.vfat disk.img
This should format your raw image into the FAT file format.
Note
If you have trouble generating your own .img
file, you can also try and use the sample image included
here.