Performance dropped after re-partitioning a brand new WD Elements 4TB (type: 2620 USB-HDD).
Why does performance drop when you re-format and how can it be prevented?
The recommended WD Quick Formatter states:
Once the WD Quick Formatter is finished reformatting the drive, the drive will only have one partition. This is necessary in order to optimize the performance of the drive.
Why is it necessary to have one partition in order to have better performance?
Performance before re-partitioning (brand new out of store state):
Random Write 4KiB (Q= 1,T= 1) : 6.181 MB/s
CrystalDiskMark 6.0.0 x64 (C) 2007-2017 hiyohiyo
Crystal Dew World : https://crystalmark.info/
-
MB/s = 1,000,000 bytes/s [SATA/600 = 600,000,000 bytes/s]
-
KB = 1000 bytes, KiB = 1024 bytes
Sequential Read (Q= 32,T= 1) : 32.038 MB/s
Sequential Write (Q= 32,T= 1) : 25.363 MB/s
Random Read 4KiB (Q= 8,T= 8) : 4.091 MB/s [ 998.8 IOPS]
Random Write 4KiB (Q= 8,T= 8) : 3.397 MB/s [ 829.3 IOPS]
Random Read 4KiB (Q= 32,T= 1) : 4.179 MB/s [ 1020.3 IOPS]
Random Write 4KiB (Q= 32,T= 1) : 6.072 MB/s [ 1482.4 IOPS]
Random Read 4KiB (Q= 1,T= 1) : 4.090 MB/s [ 998.5 IOPS]
Random Write 4KiB (Q= 1,T= 1) : 6.181 MB/s [ 1509.0 IOPS]Test : 50 MiB [G: 0.0% (0.2/3726.0 GiB)] (x5) [Interval=5 sec]
Date : 2021/07/30 10:35:39
OS : Windows 10 Professional [10.0 Build 19041] (x64)
Performance after re-partitioning:
Random Write 4KiB (Q= 1,T= 1) : 4.798 MB/s
CrystalDiskMark 6.0.0 x64 (C) 2007-2017 hiyohiyo
Crystal Dew World : https://crystalmark.info/
-
MB/s = 1,000,000 bytes/s [SATA/600 = 600,000,000 bytes/s]
-
KB = 1000 bytes, KiB = 1024 bytes
Sequential Read (Q= 32,T= 1) : 32.173 MB/s
Sequential Write (Q= 32,T= 1) : 25.631 MB/s
Random Read 4KiB (Q= 8,T= 8) : 4.091 MB/s [ 998.8 IOPS]
Random Write 4KiB (Q= 8,T= 8) : 4.251 MB/s [ 1037.8 IOPS]
Random Read 4KiB (Q= 32,T= 1) : 4.171 MB/s [ 1018.3 IOPS]
Random Write 4KiB (Q= 32,T= 1) : 4.528 MB/s [ 1105.5 IOPS]
Random Read 4KiB (Q= 1,T= 1) : 4.088 MB/s [ 998.0 IOPS]
Random Write 4KiB (Q= 1,T= 1) : 4.798 MB/s [ 1171.4 IOPS]Test : 50 MiB [R: 0.0% (0.2/3260.2 GiB)] (x5) [Interval=5 sec]
Date : 2021/08/02 10:05:16
OS : Windows 10 Professional [10.0 Build 19041] (x64)
I could’t use the recommended WD Quick Formatter, because I needed an NTFS partition for Windows 10 backups and an EXT4 partition for Linux backup. So I had to split the drive up into two partitions myself.
Here is how I re-partitioned
- Under Windows 10: first clear the drive:
-
Enter the Command Prompt window. In the Command window type diskpart and hit Enter.
-
Type diskpart and press Enter
-
Type select disk x and press Enter (x = disk # from Disk Management)
-
Type clean and press Enter
-
A new line will display DiskPart Succeeded in cleaning the disk message. The Command Prompt window can be closed
-
Go to Disk Management and right click the Disk which shows a red, down arrow, this should be the same disk. Select Initialize Disk
-
An Initialize Disk dialog box will open. Select the GPT radio button, and click OK
-
Right click the now Unallocated drive and select New Simple Volume
-
The drive is now ready to use on Windows (performing a nong quick format takes 50 hours +)
- Under Linux open gparted, select the remaining space and create an EXT4 partition with it.
When I check after re-partitioning, then I get the following results back:
CHKDSK (Windows) reports: 4096 bytes in each allocation unit
C:\Windows\system32>chkdsk r:
The type of the file system is NTFS.
Volume label is Backup.
WARNING! /F parameter not specified.
Running CHKDSK in read-only mode.
Stage 1: Examining basic file system structure …
256 file records processed.
File verification completed.
Phase duration (File record verification): 54.43 milliseconds.
0 large file records processed.
Phase duration (Orphan file record recovery): 0.86 milliseconds.
0 bad file records processed.
Phase duration (Bad file record checking): 0.46 milliseconds.
Stage 2: Examining file name linkage …
278 index entries processed.
Index verification completed.
Phase duration (Index verification): 30.64 milliseconds.
0 unindexed files scanned.
Phase duration (Orphan reconnection): 1.73 milliseconds.
0 unindexed files recovered to lost and found.
Phase duration (Orphan recovery to lost and found): 0.64 milliseconds.
0 reparse records processed.
0 reparse records processed.
Phase duration (Reparse point and Object ID verification): 5.63 milliseconds.
Stage 3: Examining security descriptors …
Security descriptor verification completed.
Phase duration (Security descriptor verification): 78.30 milliseconds.
11 data files processed.
Phase duration (Data attribute verification): 2.35 milliseconds.
Windows has scanned the file system and found no problems.
No further action is required.
3338472 MB total disk space.
52464704 KB in 7 files.
76 KB in 13 indexes.
0 KB in bad sectors.
170535 KB in use by the system.
65536 KB occupied by the log file.
3287071 MB available on disk.
**4096 bytes in each allocation unit**.
854649087 total allocation units on disk.
841490259 allocation units available on disk.
Total duration: 177.74 milliseconds (177 ms).
parted (Linux) reports: Sector size (logical/physical): 512B/4096B, Microsoft reserved partition not aligned: 34s % 2048s != 0s
$ sudo parted /dev/sdd
GNU Parted 3.3
Using /dev/sdd
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) p
Model: WD Elements 2620 (scsi)
Disk /dev/sdd: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 17,4kB 16,8MB 16,8MB Microsoft reserved partition msftres
2 16,8MB 3501GB 3501GB ntfs Basic data partition msftdata
3 3501GB 4001GB 500GB ext4 Basic data partition
(parted) align-check opt 3
3 aligned
(parted) align-check opt 2
2 aligned
(parted) align-check opt 1
1 not aligned: 34s % 2048s != 0s
(parted)
Freaking Windows creates a Microsoft reserved partition unasked for, which doesn’t show up in Windows diskmanagement. Furtermore it’s unaligned according to Linux’ parted (the NTFS and EXT4 partitions are aligned).
Can the unaligned Microsoft reserved partition do any harm?
Can one select the Sector size (logical/physical) for and USB-HDD alike SSD drives?
Why is there a difference between NTFS and EXT4 in sector size reported?