PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:os:linux:commands:dd:dd

dd

NSA compliant erase

root@kotone:~# smartctl -a /dev/sdd | head
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.18.0-25-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Toshiba 2.5" HDD MQ01ABF...
Device Model:     TOSHIBA MQ01ABF050
Serial Number:    57HYT4A9T
LU WWN Device Id: 5 000039 7c2083f2a
Firmware Version: AM0P4C
User Capacity:    500,107,862,016 bytes [500 GB]
root@kotone:~# time dd if=/dev/zero of=/dev/sdd bs=80M
dd: error writing '/dev/sdd': No space left on device
5962+0 records in
5961+0 records out
500107862016 bytes (500 GB, 466 GiB) copied, 5526.94 s, 90.5 MB/s

real    92m6.941s
user    0m0.000s
sys     3m29.869s
root@kotone:~# time dd if=/dev/urandom of=/dev/sdd bs=80M
dd: error writing '/dev/sdd': No space left on device
0+14905 records in
0+14904 records out
500107862016 bytes (500 GB, 466 GiB) copied, 6147.72 s, 81.3 MB/s

real    102m27.720s
user    0m0.100s
sys     30m41.533s
root@kotone:~# time dd if=/dev/zero of=/dev/sdd bs=80M
dd: error writing '/dev/sdd': No space left on device
5962+0 records in
5961+0 records out
500107862016 bytes (500 GB, 466 GiB) copied, 5510.37 s, 90.8 MB/s

real    91m50.376s
user    0m0.017s
sys     3m30.248s
tech/os/linux/commands/dd/dd.txt · Last modified: 2019/07/05 08:06 by wnoguchi