Quote:
Originally Posted by techdude
I have a hdd that had some pretty bad Windows viruses. I want to put Windows 7 back on it. But first, I need to completely reset the hdd so no viruses can return. GParted only reformats, but doesn't override the whole drive. Any suggestions?
|
Code:
dd of=/dev/your_device_here if=/dev/urandom bs=1M && dd of=/dev/your_device_here if=/dev/zero bs=1M
This will overwrite all data on this disk with random garbage, then overwrite that data with zeros.
This will effectively blank the disk with no hope for basic data recovery. This will not make the drive immune to viruses or any malicious content that is downloaded afterwards.