Creating a FAT file system and save it into a file in GNU/linux?
- by RubenT
I tell you my problem:
I want to create a FAT file system and save it into a so I can mount it in linux using something like:
sudo mount -t msdos <file> <dest_folder>
Maybe I'm wrong and this cannot be done.
Anyway, the problem is this:
I'm trying to create the file containing a FAT file system, and I'm running this command:
sudo mkfs.vfat -F 32 -r 112 -S 512 -v -C "test.fat" 100
That, accordingly to the mkfs man page, will create a FAT32 file system with 112 rootdir entries, logical sector size of 512 bytes, 100 blocks in total, and save it into "test.fat".
But it fails, and the bash tells me:
mkfs.vfat: unable to create test.fat
What is going on? I think I am misunderstanding how mkfs works and how to use it.
It is possible to write a filesystem into a file?