Format hard drive overwriting it with zeros or writing zeros to the hard disk


Are the commands the same in every Linux distro?

my asrock bios has some secure ssd erase

nekem van hdd. most az biztos.

chikenf00t: Does it mean I have 2 hard drives built-in when 2 ata-WDC_WD… codes show up?
ls /dev/disk/by-id
ata-MATSHITA_DVD+_-RW_UJ8C1_SHB4100345 wwn-0x50014ee6ac1f07f7
ata-WDC_WD7500BPKT-75PK4T0_WD-WX51A71Y6825 wwn-0x50014ee6ac1f07f7-part1

I had no idea certain parts of storage were managed by firmware. I’ve definitely ran full shred and some other data destructive commands on an nvme before. I bought one from a questionable Chinese manufacturer that was know to come with some windows malware preloaded…it was really cheap though

You are looking for tools like shred or wipe:

In the past I used shred to cleanup old hdd before I throwed them away.

No. One of those is the partition on the disk.

1 Like

Thanks to all for contributing. I accept keybreak’s solution in the provided link dd if=/dev/zero of=/dev/sdX bs=4096 status=progress works.

Unfortunately, my original problem (getting rid of a hard drive error report from a Pre-boot System Assessment at each startup) has not been solved by wiping the disk. Is it appropriate to ask questions on that in this discussion as the computer manufacturer or hard disk manufacturer are primarily in charge but turning to them was not successful, yet?

Well, there is no harm in asking, though I doubt you’ll get a concrete and helpful answer… This is just a very specific and hardware related issue.

1 Like

Please find my topics in

DELL Community:
Western Digital Community:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.