[ df -BM ] disk capacity
-B, --block-size=SIZE scale sizes by SIZE before printing them; e.g.,
'-BM' prints sizes in units of 1,048,576 bytes;
[lsusb -t]
BOT: Driver=usb-storage
UASP: Driver=uas
$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 05e3:0731 Genesys Logic, Inc. GL3310 SATA 3Gb/s Bridge Controller
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
$ lsusb -t
/: Bus 001.Port 001: Dev 001, Class=root_hub, Driver=dwc2/1p, 480M
/: Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/2p, 480M
/: Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 001: Dev 002, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/: Bus 004.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/2p, 480M
/: Bus 005.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 5000M
[dd] write speed
(sd card)
/home/[id]$ dd if=/dev/zero bs=1M count=1000 of=test_file oflag=direct
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB, 1000 MiB) copied, 39.2173 s, 26.7 MB/s
(ssd)
/mnt/evo860$ dd if=/dev/zero bs=1M count=1000 of=test_file oflag=direct
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB, 1000 MiB) copied, 2.96631 s, 353 MB/s
[hdparam -Tt /dev/****** ] read speed
$ sudo hdparm -Tt /dev/sda1
/dev/sda1:
Timing cached reads: 3768 MB in 2.00 seconds = 1885.63 MB/sec
Timing buffered disk reads: 792 MB in 3.00 seconds = 263.96 MB/sec
$ sudo hdparm -Tt /dev/mmcblk0p2
/dev/mmcblk0p2:
Timing cached reads: 3714 MB in 2.00 seconds = 1858.88 MB/sec
Timing buffered disk reads: 256 MB in 3.01 seconds = 85.17 MB/sec