Output of hexdump checking for complete erasure of a disk unclear...
by JZL240I-U from LinuxQuestions.org on (#5MXT8)
One of my hard disks is dying. So I zeroed it out using dd, afterwards checking success. See below
Code:me@PC:~> sudo dd if=/dev/zero of=/dev/sdd bs=4096 conv=noerror,notrunc
dd: Error writing to '/dev/sdd': No space left on device
^C^C
^C244190647+0 Datensatze ein
244190646+0 Datensatze aus
1000204886016 Bytes (1,0 TB, 932 GiB) copied, 11543,1 s, 86,6 MB/s
me@PC:~> sudo dd if=/dev/sdd | hexdump -C | grep [^00]
1953525168+0 Datensatze ein
1953525168+0 Datensatze aus
1000204886016 Bytes (1,0 TB, 932 GiB) copied, 10908,6 s, 91,7 MB/s
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
e8e0db6000
me@PC:~>So there is still "e8e0db6000" on the last 20 bytes of disk? Or what does that tell me? Procedure taken from https://www.linuxquestions.org/quest...ommand-362506/...
Code:me@PC:~> sudo dd if=/dev/zero of=/dev/sdd bs=4096 conv=noerror,notrunc
dd: Error writing to '/dev/sdd': No space left on device
^C^C
^C244190647+0 Datensatze ein
244190646+0 Datensatze aus
1000204886016 Bytes (1,0 TB, 932 GiB) copied, 11543,1 s, 86,6 MB/s
me@PC:~> sudo dd if=/dev/sdd | hexdump -C | grep [^00]
1953525168+0 Datensatze ein
1953525168+0 Datensatze aus
1000204886016 Bytes (1,0 TB, 932 GiB) copied, 10908,6 s, 91,7 MB/s
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
e8e0db6000
me@PC:~>So there is still "e8e0db6000" on the last 20 bytes of disk? Or what does that tell me? Procedure taken from https://www.linuxquestions.org/quest...ommand-362506/...