I made an app that requires an SD card to store media. They are small JPGs/GIFs/PNGs, small MP3s... but around 200.000 of them (!!). Very few of them are bigger than a couple MB. Speed is not a concern.
I use a 32GB card (vfat formatted) for this, but it is running out of space. I got a 64GB card which came with HPFS/NTFS/exFAT formatted (according to sfdisk).
What I am facing now is that the 25GB written in the 32GB card occupy +31GB on the 64GB card. So I am loosing lots of space. I guess this is because of the block size or something similar. I faced this before.
So my question is: which would be the best formatting FS/options for my situtation, to use more space on disk, but also taking into account reliability of the FileSystem? I already tried ext3/4 in my device and does not work properly.
sfdisk
reportsSector size (logical/physical): 512 bytes / 512 bytes
andI/O size (minimum/optimal): 512 bytes / 512 bytes
for both disks. The only difference isFAT32
vsHPFS/NTFS/exFAT
.