You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added missing copyright line to every license header.
Fixed a bug that was causing garbage volume labels when no volume label was specified.
Corrected details in the README and added a FAQ section.
Other small fixes and code cleanup.
Multiple SD cards with different capacities have been tested and this tool formats them 1:1 the same as SDFormatter with the following exceptions:
5
5
* SDFormatter does not set the jmp instruction offset in the boot sector for FAT12/16/32. sdFormatLinux does.
6
-
* For exFAT sdFormatLinux clears unused FAT entries SDFormatter leaves untouched and SDFormatter clears more areas after root directory cluster. As far as i can tell these differences don't matter.
6
+
* For exFAT sdFormatLinux clears the area between last FAT entry and cluster heap but SDFormatter doesn't. As far as i can tell this difference doesn't matter.
7
7
* sdFormatLinux currently does not preserve OEM flash parameters when reformatting in exFAT. It will recalculate the correct values instead.
8
8
9
9
## Examples
@@ -13,6 +13,14 @@ Erase (TRIM) and format SD card (recommended). TRIM will not work with USB card
13
13
Erase and format with label.
14
14
`sudo sdFormatLinux -l 'MY LABEL' -e trim /dev/mmcblkX`
15
15
16
+
Erase and format a SDXC card to FAT32 (64 KiB clusters).
17
+
`sudo sdFormatLinux -e trim -f /dev/mmcblkX`
18
+
19
+
## FAQ
20
+
**Q: Why should i format my SDXC card with this tool to FAT32 instead of using guiformat/other tools?**\
21
+
A: Because most of these tools are not designed for flash based media and will format them incorrectly causing lower lifespan and performance.
22
+
There is a common myth that you should only use 32 KB (actually KiB) clusters which is false. sdFormatLinux will use 64 KiB clusters when formatting SDXC cards to FAT32 and it works in every device compliant to Microsoft's FAT specification.
23
+
16
24
## Compiling
17
25
Just run `make`. It automatically builds a hardened version.
0 commit comments