With:
- Kubuntu 22.04
~ 8000 GB ~ 8TB Usb Hard Disk Drive
~ 15 hours for 8TB with each dd command
dd --version
dd (coreutils) 8.32
Ran dd ... urandom:
time sudo dd if=/dev/urandom of=/dev/sd_ bs=64K status=progress
output
8001557168128 bytes (8.0 TB, 7.3 TiB) copied, 53987 s, 148 MB/s
dd: error writing '/dev/sda': No space left on device
122094166+0 records in
122094165+0 records out
8001563221504 bytes (8.0 TB, 7.3 TiB) copied, 54057 s, 148 MB/s
Ran dd ... zero:
time sudo dd if=/dev/zero of=/dev/sd_ bs=64K status=progress
output
8001543208960 bytes (8.0 TB, 7.3 TiB) copied, 53986 s, 148 MB/s
dd: error writing '/dev/sda': No space left on device
122094166+0 records in
122094165+0 records out
8001563221504 bytes (8.0 TB, 7.3 TiB) copied, 54057.4 s, 148 MB/s
For above 2 commands, it took almost the
same time ~ 53986 seconds ~ 15 hours.
Note the last line is the same 8001563221504 bytes.
But, first line of bytes are different:
+ 8001557168128 ~ 8000 GB, for urandom
- 8001543208960 ~ 8000 GB, for zero
---------------------------------------
+ 13959168 ~ 13.9 MB difference
dd ... urandom output was over 13 MBytes more.
How come the dd output first line
differs by over 13 MB?
Said differently,
Why did bytes differ between above 2 commands:
dd ... urandom and dd ... zero?