Merge pull request #2017 from manojka/patch-1

Correctness fixes for formatting MicroSD cards under Linux
This commit is contained in:
Lily 2022-05-17 22:36:52 -07:00 committed by GitHub
commit e746178c8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,13 +24,13 @@ NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0 179:0 0 3,8G 0 disk
└─mmcblk0p1 179:1 0 3,7G 0 part /run/media/user/FFFF-FFFF
```
1. Take note of the device mount point. In our example above, it was `mmcblk0`
1. Take note of the device name. In our example above, it was `mmcblk0p1`
+ If `RO` is set to 1, make sure the lock switch is not slid down
1. Hit CTRL + C to exit the menu
1. Type in the following for your SD card:
- 2GB or lower: `sudo mkfs.fat /dev/(device mount point from above) -s 64 -F 16`
- 2GB or lower: `sudo mkfs.fat /dev/(device name from above) -s 64 -F 16`
- This creates a single FAT16 partition with 32 KB cluster size on the SD card
- 4GB - 128GB: `sudo mkfs.fat /dev/(device mount point from above) -s 64 -F 32`
- 4GB - 128GB: `sudo mkfs.fat /dev/(device name from above) -s 64 -F 32`
- This creates a single FAT32 partition with 32 KB cluster size on the SD card
- 128GB or higher: `sudo mkfs.fat /dev/(device mount point from above) -s 128 -F 32`
- This creates a single FAT32 partition with 64 KB cluster size on the SD card
- 128GB or higher: `sudo mkfs.fat /dev/(device name from above) -s 128 -F 32`
- This creates a single FAT32 partition with 64 KB cluster size on the SD card