What allocation unit size shall be used for a 16gb flash drive, 32gb flash drive, 64/128/256/512 flash drives or even bigger usb drives? Does unit size affect the speed of flash drives? How to improve speed of usb after mass production? This article will share the answers and solutions in the following contents.
Allocating unit size varies according to different capacities of flash drives from two categories less than 32gb with fat32 or over 32gb with exfat file system.
When the USB flash disk with a capacity of more than 64GB is formatted as exFAT, the system sets the allocation unit size 8096 (128G), 16K (256g), 32K (512g) by default.
Flash drive over 32GB may adapt allocation unit size 16k to 64k upon your own use. If it's extremly large such as 512GB, you may use 64k in the allocation unit size.
The following free tool is able to help format usb allocation cluster size to be 64k.
Download Partition Resizer Free
4K VS 64K VS 128K Difference for USB Cluster Size
According to the test, 4K is very different from 64K. The improvement of 64K and 128K is not very obvious. Generally, 64K is OK.
The larger the distribution unit, the faster the speed. The USB flash disk of 2.0 can be increased by up to 8m-12m/s, but the relative occupied space will be wasted. Therefore, appropriate selection is necessary. It is recommended not to exceed 32K for many small files, and 64K for large files is enough.
User's Story: Flash drive becomes slow after mass production
After usb mass production, I obviously felt that the speed of the USB flash disk became slower. Later, due to a misoperation, I installed the operating system into the USB flash disk, which made the USB flash disk unable to be open and formatted in the disk manager. Later, a formatting software was used to format the USB flash disk, and the speed of the USB flash disk became slower.
Cluster size changing may speed the usb flash drive and here are the steps to change the cluster size.
Way #1 - change usb cluster size using cmd:
How to view the cluster size:
In Windows operating system, we can use CHKDSK command to check the cluster size of hard disk partition. Click "start → run", type "CMD" and enter, and then type "G:"
Press "g" to represent the letter of USB flash disk, then enter "CHKDSK" and press "allocation unit" or "allocation" displayed
Unit is the size of the cluster.
Backup USB flash disk data before operation to adjust the size of USB flash disk cluster.
Way #2 - Change allocation block size (namely allocation unit size) with free tool
Partition Resizer is able to help change cluster size if you open the tool and connect your usb to pc, right click your usb drive, and then format partition, and then the next window will pop up and show a column where you can select its allocation unit size.
We can run the format command from CMD command prompt or windows PowerShell to format the USB flash disk. Windows PowerShell is recommended for Win10 system.
Right click the Win10 start button and select "windows PowerShell (administrator)" in the pop-up menu to run Windows PowerShell as an administrator. Then enter the following command:
format /FS:FAT32 H:
PS: H is the drive letter of USB flash disk. Replace it with your actual drive letter.
Then wait patiently for the formatting to complete.
PS: the reason why you need to wait patiently is that for high-capacity USB flash drives, you can't add the / Q parameter in the command for fast formatting. If you add it forcibly, you will be prompted that "the volume is too large for FAT32". Because of this, Ms chief recommends using the tool software FAT32 format of method 2 for operation. You can choose "quick format".
IM-Magic Partition Resizer Free is a free fat32 formatter that can change usb file system to fat32 for free.
Step1. Right click the usb stick, and select "Format Partition" option.
Step2. Click "Cluster size" column to choose the cluster size 4k or 8k would be appropriate for a drive 16gb or 32GB.
Step3. Click "Apply Changes" button in the software to apply the changes.
Also read: how to format usb fat32
Does the setting of USB disk/flash drive format allocation unit size have a significant impact on the reading and writing speed?
Details: I have a 32 USB flash drive that can write files at a speed of 7m at the beginning and then after some time, the copy speed only runs at 1-2m. How much should I set the allocation unit size, 64k or 128k, for my exFAT usb drive?
What is a cluster?
File system is the interface between the operating system and the drive. When the operating system requests to read a file from the hard disk, it will request the corresponding file system (FAT16/FAT32/NTFS) open the file. Sector is the smallest physical storage unit of disk, but because the operating system cannot address a large number of sectors, the operating system combines adjacent sectors
Together, form a cluster, and then manage the cluster. Each cluster can include 2, 4, 8, 16, 32, or 64 sectors etc. Obviously, cluster is the logical concept used by the operating system, not the physical characteristics of disk.
In order to better manage the disk space and read data from the hard disk more efficiently, the operating system stipulates that only one file can be placed in a cluster, so the space occupied by the file can only be an integer multiple of the cluster; If the file is actually
If the size is smaller than a cluster, it also takes up the space of a cluster. If the actual size of the file is larger than one cluster, according to logical calculation, the file will occupy the space of two clusters. Therefore, in general, the space occupied by files is slightly larger than that of files
Only in a few cases, that is, when the actual size of the file is exactly an integer multiple of the cluster, the actual size of the file will be completely consistent with the occupied space.
A cluster can only accommodate the occupation of one file. Even if the file has only 0 bytes, two files or more files are not allowed to share a cluster, otherwise it will cause data confusion.
Obviously, the size of the cluster directly affects the addressing speed. Large clusters and fast addressing speed waste disk space, and vice versa! When we can't change the USB communication interface, it is a way to appropriately increase the size of the cluster.