===USB drive tests===
This tests are with spinning disks.
==Expansion drive==
$ lsusb
Bus 002 Device 002: ID 0bc2:231a Seagate RSS LLC Expansion Portable
$ dmesg
sd 0:0:0:0: [sda] 7814037167 512-byte logical blocks: (4.00 TB/3.64 TiB)
sd 0:0:0:0: [sda] 4096-byte physical blocks
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 53 00 00 08
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
sd 0:0:0:0: [sda] Attached SCSI disk
[[:boards:rpi4:bonnie|Bonnie++ benchmarks]]
==USB3 dock==
$ lsusb
Bus 002 Device 003: ID 174c:55aa ASMedia Technology Inc. Name: ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge
Bus 001 Device 003: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
__Disc 1 (SDA)__
$ dmesg
sd 0:0:0:0: [sda] 156250000 512-byte logical blocks: (80.0 GB/74.5 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
[[:boards:rpi4:sda_smart|Smart data]]
Blank (sda and sdb in parallel)
$ dd if=/dev/zero of=/dev/sda bs=4M
dd: error writing '/dev/sda': No space left on device
19074+0 records in
19073+0 records out
80000000000 bytes (80 GB, 75 GiB) copied, 1699.79 s, 47.1 MB/s
28:19.79s
[[:boards:rpi4:sda_bonnie|Bonnie++ benchmarks]]
[[:boards:rpi4:sda_fio|FIO benchmarks]]
__Disc 2 (SDB)__
dmesg
sd 0:0:0:1: [sdb] 160086528 512-byte logical blocks: (82.0 GB/76.3 GiB)
sd 0:0:0:1: [sdb] Write Protect is off
sd 0:0:0:1: [sdb] Mode Sense: 43 00 00 00
sd 0:0:0:1: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:1: [sdb] Optimal transfer size 33553920 bytes
sdb: sdb1
sd 0:0:0:1: [sdb] Attached SCSI disk
[[:boards:rpi4:sdb_smart|Smart data]]
Blank (sda and sdb in parallel)
$ dd if=/dev/zero of=/dev/sdb bs=4M
dd: error writing '/dev/sdb': No space left on device
19542+0 records in
19541+0 records out
81964302336 bytes (82 GB, 76 GiB) copied, 1758.59 s, 46.6 MB/s
29:18.59s
[[:boards:rpi4:sdb_bonnie|Bonnie++ benchmarks]]
[[:boards:rpi4:sdb_fio|FIO benchmarks]]
__Disk 3 (2TB)__
$ dmesg
sd 0:0:0:1: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
sd 0:0:0:1: [sdb] Write Protect is off
sd 0:0:0:1: [sdb] Mode Sense: 43 00 00 00
sd 0:0:0:1: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:1: [sdb] Optimal transfer size 33553920 bytes
sd 0:0:0:1: [sdb] Attached SCSI disk
Blank
$ dd if=/dev/zero of=/dev/sdb bs=4M
dd: error writing '/dev/sdb': No space left on device
476933+0 records in
476932+0 records out
2000398934016 bytes (2.0 TB, 1.8 TiB) copied, 18988.7 s, 105 MB/s
5:16:28.70s
__Disk 4 (500G)__
$ dmesg
sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes
sd 0:0:0:0: [sda] Attached SCSI disk
Blank
$ dd if=/dev/zero of=/dev/sda bs=4M
dd: error writing '/dev/sda': No space left on device
119236+0 records in
119235+0 records out
500107862016 bytes (500 GB, 466 GiB) copied, 6602.9 s, 75.7 MB/s