Mick <michaelkintz...@gmail.com> wrote: > I was wondering similar questions regarding a 32G flash card I have. > Using fdisk to partition it the starting sector was automatically > aligned with 2048 as it fdisk has been improved to deal with 4KB > sector drives. > > However, formatting it with mkfs.vfat I was none the wise if I should > use the '-s sectors-per-cluster' option or what to set it at.
For the SD Cards of my Android devices I use mkfs.vfat -F32 -s64 This always gave me good performance. > Furthermore, how can I read the current cluster size off the flash > card? Is this appropriate? > > blockdev --getbsz /dev/sdb > 4096 This gives you the physical blocksize of the device. If you wanna know the cluster size, that means the blocksize of your filesystem, you can use mtools. First configure /etc/mtools/mtools.conf and set a drive letter for your SD Card, e.g. drive c: file="/dev/sde1" then use minfo C: to query a lot of information about the filesystem. Beside some other infos you will get for example: sector size: 512 bytes cluster size: 8 sectors This means cluster size is 4096 Bytes. -- Regards wabe