I'm running Debian and need a way to format the entire hdd in order to not leave any trace on it because I want to donate it to a friend. So what will be the best way in order to format it? If I reinstall the OS it will not fully format it. I'm looking for a way to completely format it and make it like when you buy it from the shop, completely new and never stored a thing before.
|
|
Unless your "friend" is the NSA, tools that do lots of random or pattern overwriting (as DBAN which others are recommending does) are overkill - If you use |
|||||||||||
|
|
The Electronic Frontier Foundation's Surveillance Self-Defense site recommends Darik's Boot and Nuke. It's a self-contained boot CD, so it works with any OS. Beware that DBAN will erase every hard drive connected to the computer. If you have other hard drives that you plan to keep, make certain they're unplugged before booting DBAN. |
|||||||||||||
|
|
This really isn't a "Linux and Unix" answer, but I would use the ATA Secure Erase command if it is available for your hardware, which is likely is. You can read about ATA Secure Erase here: https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase. The following summarizes how to use the command on any system with the
The directions on the website linked above also have commands to ensure each step worked as desired and some helpful troubleshooting. This method is highly secure and relatively fast. |
||||
|
|
|
Use shred:
|
|||||
|
|
You can use the
|
|||
|
|
|
Run a destructive |
|||
|
|
