How to Securely Erase an SSD or HDD Before Selling It or Your PC

Erasing Data
(Image credit: Shutterstock)
Latest Videos FromTom's Hardware
Avram Piltch
Managing Editor: Special Projects

Avram Piltch is Managing Editor: Special Projects. When he's not playing with the latest gadgets at work or putting on VR helmets at trade shows, you'll find him rooting his phone, taking apart his PC, or coding plugins. With his technical knowledge and passion for testing, Avram developed many real-world benchmarks, including our laptop battery test.

  • cfbcfb
    One word: Hammer.
    Reply
  • Alvar "Miles" Udell
    Starting with Windows 10 the Format command has included the /p switch which sets the number of overwrites with random numbers, after first writing all 0s, so DBAN is not necessary unless you're using a HDD as a boot disk.
    Reply
  • InvalidError
    cfbcfb said:
    One word: Hammer.
    If you hammer-erase a HDD or SSD, it becomes kind of difficult to sell or donate.

    For normal people, a simple full erase is good enough.

    If you are paranoid about security, you should be using full-drive encryption where secure-erasing is as simple as deleting encryption keys. This way, your data is also relatively secure from theft and seizure where you don't get the chance of applying hammer first.
    Reply
  • TerryLaze
    If you choose reset windows with deleting personal files you can use ccleaner afterwards to wipe all free space, it also allows for multiple passes for the paranoid.
    Make sure you know what to do with your windows registration though.
    Reply
  • Sippincider
    InvalidError said:
    If you hammer-erase a HDD or SSD, it becomes kind of difficult to sell or donate.

    Replace the drive and reinstall the OS. Storage is too cheap for even normal people to take a non-zero risk of someone getting their data.

    But my drive is soldered in, you say? End-of-life the machine and give the drive some physical erasing. New hardware is cheaper than risk.
    Reply
  • ZiffLem
    Why in the name of DOS is everyone still stuck on DBAN? Is it the cute name?
    Look up when DBAN was last updated. Maybe, just maybe you want to use something from this side of the 21st century?
    Please note: for years, DBAN has recommended for commercial purposes BLANCCO Drive Eraser. Those benefits include support and report generation, useful and necessary for business compliance.

    Please see for yourself an excellent open source project: ShredOS, utilizing nwipe, found on GitHub. One it's most useful features is that it can be run headless with no input.
    Reply
  • TerryLaze
    ZiffLem said:
    Why in the name of DOS is everyone still stuck on DBAN? Is it the cute name?
    Look up when DBAN was last updated. Maybe, just maybe you want to use something from this side of the 21st century?
    Please note: for years, DBAN has recommended for commercial purposes BLANCCO Drive Eraser. Those benefits include support and report generation, useful and necessary for business compliance.

    Please see for yourself an excellent open source project: ShredOS, utilizing nwipe, found on GitHub. One it's most useful features is that it can be run headless with no input.
    It's not like deleting sectors has somehow changed, we are still using the same ones and zeros from 70 years ago, it still works and does a good job, home users don't need business compliance.
    ZiffLem said:
    Please see for yourself an excellent open source project: ShredOS, utilizing nwipe, found on GitHub. One it's most useful features is that it can be run headless with no input.
    Yeah that's a great thing to suggest to beginners, a way to destroy all of their data on all of their disks without them even having to do any input...
    This is a fluff piece for noobs not a CIA report for counter espionage.
    Reply
  • InvalidError
    Sippincider said:
    Replace the drive and reinstall the OS. Storage is too cheap for even normal people to take a non-zero risk of someone getting their data.
    A simple proper full erase makes the data unrecoverable through conventional means. Nobody is going to spend the tens of thousands of dollars and hundreds of man-hours required for low-level forensic data recovery on a drive purchased from a normal person since the likelihood of recovering anything usable of any value is slim to none.

    I'd be 1000X more worried about personal data loss from theft than resold drive.
    Reply
  • Aaron Priest
    The Secure Erase command built into the controller firmware works better than DBAN and Diskpart to ensure all data blocks are erased, and much faster. You can do it with hdparm on Linux, or you can use PartedMagic if you want a nice GUI for it:

    https://grok.lsu.edu/article.aspx?articleid=16716
    https://partedmagic.com/
    Reply
  • thisisaname
    cfbcfb said:
    One word: Hammer.
    Four little words Hammer and some nails
    Reply