Allocation Unit Size for SD Cards and USB Drives
In this article
- What Is Allocation Unit Size?
- How the File System Uses Clusters
- How to Choose the Right Allocation Unit Size
- How to Check and Change Allocation Unit Size
- Common Problems and Misconceptions
- Performance vs. Capacity Trade-offs
- How to Format with the Right Cluster Size (Step-by-Step)
- Frequently Asked Questions
Allocation unit size (also called cluster size) is the block size your operating system uses to store files on an SD card or USB drive. Choosing the right value—typically 4096 bytes (4 KB) for most cards and drives—balances storage efficiency against read/write speed. This article explains what allocation unit size means, how to pick the best one for your device, and how to change it safely.
What Is Allocation Unit Size?
When you format a storage device, the file system divides the space into fixed-size blocks called allocation units or clusters. Each file, no matter how small, occupies at least one cluster. If a cluster is 4 KB, a 1 KB text file still uses 4 KB of space. Larger clusters (e.g., 64 KB) reduce the number of clusters the system must track, which can speed up reads and writes for large files, but they waste more space when storing many small files.
How the File System Uses Clusters
Common file systems for SD cards and USB drives include FAT32, exFAT, and NTFS. Each has its own cluster size limits:
- FAT32 supports cluster sizes from 512 bytes to 32 KB, and a maximum volume size of 2 TB (with 32 KB clusters).
- exFAT allows cluster sizes from 512 bytes to 32 MB, and supports very large volumes (over 2 TB).
- NTFS supports cluster sizes from 512 bytes to 2 MB, and is common for Windows system drives but less ideal for removable media due to compatibility issues with cameras, phones, and game consoles.
When you format a device, the operating system suggests a default cluster size based on the volume size. For example, a 32 GB SD card formatted as FAT32 typically gets 32 KB clusters, while a 64 GB card formatted as exFAT often gets 128 KB clusters. These defaults are chosen to keep the file allocation table (FAT) manageable, but they may not be optimal for your use case.
How to Choose the Right Allocation Unit Size
There is no single “best” size for every situation. The right choice depends on the average file size you store and the device you use. Here are practical guidelines:
- For a camera SD card (photos and videos): Use the default cluster size suggested by the camera or the formatting tool. Most cameras work fine with 32 KB or 64 KB clusters. Large video files benefit from larger clusters because the drive reads and writes sequentially.
- For a USB drive storing documents, spreadsheets, and small files: Use 4 KB clusters. This minimizes wasted space—a 3 KB Word file uses 4 KB instead of 64 KB.
- For a USB drive storing large media files (movies, ISO images, backups): Use 64 KB or 128 KB clusters. This reduces overhead and can speed up transfers of large files.
- For a drive used as a bootable Windows installation media: Use the default (usually 4 KB for FAT32). Windows setup requires FAT32 for UEFI boot, and the default cluster size works.
If you are unsure, stick with the default that the formatting tool suggests. It is almost always a safe compromise.
How to Check and Change Allocation Unit Size
You can check the current cluster size on Windows, macOS, and Linux without reformatting:
- Windows: Open Command Prompt and run
fsutil fsinfo ntfsinfo X:(replace X with your drive letter) for NTFS, or usechkdskfor FAT32/exFAT. A simpler way is to right-click the drive in File Explorer, select Properties, then look at the “File system” and “Allocation unit size” fields (though Windows may not show it directly; you can use the command line). - macOS: Open Disk Utility, select the drive, and click “Info”. The cluster size is not always displayed, but you can use the Terminal command
diskutil info /Volumes/YourDriveNameand look for “Block Size”. - Linux: Use
sudo fdisk -l /dev/sdXorsudo blockdev --getbsz /dev/sdXto see the block size.
To change the allocation unit size, you must reformat the drive. This erases all data, so back up first. In Windows, right-click the drive, select Format, and choose a cluster size from the “Allocation unit size” dropdown. On macOS, Disk Utility does not offer cluster size selection in the GUI; you must use the command line: diskutil eraseDisk FAT32 MyVolume MBRFormat /dev/diskX (this uses a default cluster size). For exFAT on macOS, the default is 128 KB for most sizes. On Linux, use mkfs.fat -F 32 -s 8 /dev/sdX1 (the -s option sets sectors per cluster, which determines cluster size).
Common Problems and Misconceptions
One common misconception is that a larger cluster size always makes the drive faster. In reality, larger clusters can slow down access to small files because the system reads more data than needed. Another issue is that some devices (like older cameras or car stereos) only support FAT32 with a specific cluster size. If you format with a cluster size they don’t recognize, the device may not read the card. Always check your device’s manual for supported file systems and cluster sizes.
Another problem is the “4 GB file limit” on FAT32. This is not directly related to cluster size, but to the file system’s maximum file size. If you need to store files larger than 4 GB, you must use exFAT or NTFS, regardless of cluster size.
Performance vs. Capacity Trade-offs
Here’s a concrete example to illustrate the trade-off. Suppose you have a 16 GB USB drive formatted with 4 KB clusters. If you store 10,000 small files averaging 2 KB each, each file uses 4 KB, so you waste 2 KB per file—20 MB wasted. With 64 KB clusters, each file uses 64 KB, wasting 62 KB per file—620 MB wasted. That’s a significant difference on a small drive.
On the other hand, if you copy a 4 GB video file, a 64 KB cluster size reduces the number of clusters the system must manage, which can improve write speed slightly. However, modern drives and operating systems handle this well, and the difference is often negligible for everyday use.
How to Format with the Right Cluster Size (Step-by-Step)
Here’s how to format an SD card or USB drive with a specific allocation unit size on Windows:
- Back up any important data.
- Insert the drive and open File Explorer.
- Right-click the drive and select “Format”.
- Choose the file system (FAT32, exFAT, or NTFS).
- In the “Allocation unit size” dropdown, select your desired size (e.g., 4096 bytes for 4 KB).
- Click “Start”. Confirm the warning that all data will be erased.
On macOS, the GUI does not allow cluster size selection, but you can use the Terminal with diskutil to format with a custom cluster size. For example, diskutil eraseDisk exFAT MyDrive MBRFormat /dev/disk2 uses the default cluster size (which is 128 KB for exFAT on macOS). To specify a custom cluster size, you would need a third-party tool or use the command line with newfs_exfat (which is not available by default). For most users, the default is fine.
Frequently Asked Questions
What is the default allocation unit size for a 64 GB USB drive?
For a 64 GB drive formatted as exFAT in Windows, the default cluster size is typically 128 KB. For FAT32, the default is 32 KB. These defaults are chosen to balance performance and compatibility.
Does allocation unit size affect speed?
Yes, but the effect is often small. Larger clusters can speed up sequential reads/writes of large files, while smaller clusters can improve performance for many small files. The difference is most noticeable with very large or very small files.
Can I change cluster size without losing data?
No, changing the cluster size requires reformatting, which erases all data. There are third-party tools that claim to change cluster size without data loss, but they are risky and not recommended. Always back up your data first.
What is the best allocation unit size for a 128 GB SD card?
If the card is used in a camera or phone, use the default (usually 32 KB or 128 KB depending on the file system). If you store many small files, choose 4 KB. For large video files, 64 KB or 128 KB is fine.
Why does my USB drive show less space than its label?
This is due to the difference between decimal (1 GB = 1,000,000,000 bytes) and binary (1 GB = 1,073,741,824 bytes) measurements, plus file system overhead. Cluster size also contributes: larger clusters waste more space, reducing usable capacity.
Is it safe to use NTFS on a USB drive?
NTFS is safe for Windows-only use, but many devices (cameras, smart TVs, game consoles) do not support NTFS. For cross-device compatibility, use exFAT or FAT32. NTFS also has a larger overhead and may not be ideal for flash drives.