I have a HDD 4TB WD 40EFRX (red series) and try to check the health of that disc. Actually, I erased all partitions and the table via gparted and build a new table + ex4 partition. Subsequently, I wanted to overwrite all the data with zeroes in order to get rid of old data. However, I figured out that using
dd if=/dev/zero of=/dev/sdb status=progress
result in an I/O error right at the beginning:
sudo dd if=/dev/zero of=/dev/sdb status=progress 474558976 bytes (475 MB, 453 MiB) copied, 38.0445 s, 12.5 MB/s dd: writing to '/dev/sdb': Input/output error 927977+0 records in 927976+0 records out 475123712 bytes (475 MB, 453 MiB) copied, 46.6914 s, 10.2 MB/s
while adding the option bs=64MB (cache of that HDD is 64 MB) the command works really fine. However, I guess based on the IO error the HDD is somehow dead or can I do other workarounds too? By the way, I have the HDD via SATA/USB connected to my laptop.