TheMadHouse
Member
I'm looking at storing a mix of raw binary data and Fat32 files on an SD card (using a Teensy 3.5).
The plan is to format the SD card below it's actual size, leaving sectors un-used by the file system, so I can write to them directly (raw data is only used by the Teensy).
My question is, when formatting an SD card, are sectors allocated sequentially from 0?
Example would be (in round figures, appreciate there is MBR and FAT overhead etc. so this isn't exact)
- 4GB card (8 million sectors of 512 bytes)
- Format for 3GB (using 6m sectors)
- Have 2m sectors for the binary data
Am I safe to assume sector 6m+1 up to 8m are not used by the file system, or is there likely to be some wear-spreading logic going on the controller that changes this?
Jim
The plan is to format the SD card below it's actual size, leaving sectors un-used by the file system, so I can write to them directly (raw data is only used by the Teensy).
My question is, when formatting an SD card, are sectors allocated sequentially from 0?
Example would be (in round figures, appreciate there is MBR and FAT overhead etc. so this isn't exact)
- 4GB card (8 million sectors of 512 bytes)
- Format for 3GB (using 6m sectors)
- Have 2m sectors for the binary data
Am I safe to assume sector 6m+1 up to 8m are not used by the file system, or is there likely to be some wear-spreading logic going on the controller that changes this?
Jim