W dniu 07.04.2013 01:13, Maciej Sieczka pisze:
I've got this SanDisk 32GB SDSDU-032G-A11 uSDHC card [1]. [2] summarizes its features as Allocation Unit = 12 MB, Write Size = 64 KB, Page Size = 16 KB, FAT Location = 4-12 MB.
Can you please tell me how these translate into fdisk and mkfs.ext4 settings to format the card as a single ext4 partition having an optimal performance and wear?
Regards, Maciek
[1] http://lists.linaro.org/pipermail/flashbench-results/2012-June/000303.html [2] https://wiki.linaro.org/WorkingGroups/KernelArchived/Projects/FlashCardSurve...
As I had lost the original vendor's partition scheme on my card, I have formatted it in a camera, as recommended in [3].
Now it's:
### $ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 31.9 GB, 31914983424 bytes, 62333952 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000
Device Boot Start End Blocks Id System /dev/sdb1 8192 62332927 31162368 c W95 FAT32 (LBA) ###
This is a slightly shorter partition than the default [1] 8192-62333951 sectors. cfdisk shows:
### Size: 31914983424 bytes, 31.9 GB Heads: 255 Sectors per Track: 63 Cylinders: 3880
Name Flags Part Type FS Type [Label] Sectors ------------------------------------------------------------------ Pri/Log Free Space 8192* sdb1 Primary vfat 62324736* Pri/Log Free Space 1024* ###
Is that OK or should I extend sdb1 to the remaining 1024 free space?
For the mkfs.ext4, I know I'm supposed to use "-O ^has_journal -E stride=<number1>,stripe-width=<number2> -b <number3>". Could anyone please tell me what are the correct numbers for SDSDU-032G-A11?
Maciek
[3] http://lists.linaro.org/pipermail/flashbench-results/2012-July/000321.html