What’s the safest way to wipe a possibly infected hard drive before using it in a NAS?
Asked by
MellowPine47
I was given an old 1TB hard drive, and the previous owner said it may have been exposed to malware after downloading a malicious file. I'd like to install it in my NAS, but I only have an older Windows laptop available for preparing it. What's the safest way to completely erase the drive, and do I need any special software?
Answers
If you don’t need anything currently on the drive, deleting its partitions and performing a full format is generally enough. The NAS will usually format the disk again when you add it. Make absolutely sure you select the correct drive, though, because this will permanently erase it. If you’re especially cautious, disconnect the laptop’s internal drive and any other storage first.
Reply to this answer
Before putting it in a NAS, check the disk’s SMART health and bad-sector count with a tool such as CrystalDiskInfo. An old desktop drive may not be reliable or suitable for continuous NAS use. Since its history is uncertain and replacement drives are relatively inexpensive, discarding it may be safer than trusting important data to it. Also avoid running random commands copied from the internet—one wrong device name can erase your entire computer.
Reply to this answer
For extra separation from your Windows installation, boot the laptop from a Linux live USB or a utility such as Hiren’s BootCD PE, then erase the target drive from there. You can remove its partitions and create a new partition table, or use a secure erase/zero-fill option if you want the whole disk overwritten. Unplug every other drive first so there’s no chance of wiping the wrong one.
Reply to this answer
Add your answer
Answers are reviewed before publication.
MellowPine47: The previous owner only said they downloaded a malicious file and that the drive had a virus. I don’t need any of the data, so I’m fine with completely wiping it.