Question Best way to clear harddrives

T2urtle

Diamond Member
Oct 18, 2004
3,432
3
81
Hi all,

I'm getting ready to sell a few laptops and desktops. Aside from formating the HD 3 times, any other way of protecting myself? The last thing I want is to have some guy find a way to recover my stuff and take the little money that I have.

I'm not paranoid, I just want to make sure I can do what I can prior to selling. These are normal spinning disk drives.
 

razel

Platinum Member
May 14, 2002
2,337
90
101
You don't need to format the drive 3 times. Once is fine and you can do it via Windows. Get the disk down to one partition and when you format, uncheck the 'quick format' checkbox'. You can even just use diskpart's 'clean all' command.

You can also use secure erase if the HDD manufacturer provides tools to do so.
 

Shmee

Memory & Storage, Graphics Cards Mod Elite Member
Super Moderator
Sep 13, 2008
7,543
2,542
146
Make a toolset / linux boot disc / USB, boot it and use the dd command to write 0's or randoms. There are bootcds and programs that include this as a feature, making it easy. I like parted magic for this, but the later versions are no longer free.
 

Fallen Kell

Diamond Member
Oct 9, 1999
6,063
437
126
I would not rely on formating a hard drive to wipe the data, even more so if the drive is a SSD (which are typically copy-on-write, meaning any files that get modified are simply written to a new block on the drive and the old block is simply marked as free to reuse). SSDs also typically have an overprovisioning of storage in order to deal with wearing out of the cells. For most SSDs the drive manufacturer will typically have a utility that will properly wipe it. For drives that do not, I would use linux and use the dd command to write 0's to the entire drive 2 times (since it should in theory write over the reserve/overprovisioning area starting on the second time through). Again, not something you need to worry about since you have regular hard drives.

There are also tools out there designed specifically for this, such as sdelete in windows (which you can use to fill a drive with zero's), or a bootable CD/DVD/USB called DBAN (Darik's Boot and Nuke).DBAN was for traditional hard drives. I also seem to recall a program called scrub. Again, most of these were for non-SSD based disks.
 

mikeymikec

Lifer
May 19, 2011
18,048
10,227
136
You don't need to format the drive 3 times. Once is fine and you can do it via Windows. Get the disk down to one partition and when you format, uncheck the 'quick format' checkbox'. You can even just use diskpart's 'clean all' command.

You can also use secure erase if the HDD manufacturer provides tools to do so.

I downvoted this because it's mostly incorrect. Quick formatting and diskpart clean erases a tiny amount of information from the drive, such a pointlessly small amount that anyone actually interested (armed with some data recovery software) in recovering data would not be severely inconvenienced by this strategy.

The secure erase advice isn't so bad, but it would depend on the quality of the software any given manufacturer provides.
 

VirtualLarry

No Lifer
Aug 25, 2001
56,450
10,119
126
I downvoted this because it's mostly incorrect. Quick formatting and diskpart clean erases a tiny amount of information from the drive, such a pointlessly small amount that anyone actually interested (armed with some data recovery software) in recovering data would not be severely inconvenienced by this strategy.

The secure erase advice isn't so bad, but it would depend on the quality of the software any given manufacturer provides.
Well, "CLEAN ALL" rather than just "CLEAN" will zero all (host-visible) sectors out.

Also, "Secure Erase" doesn't depend on the software, it depends on the device itself. (ATA Secure Erase command)
 

bononos

Diamond Member
Aug 21, 2011
3,894
162
106
Would zeroing the first 100Mb (instead of the whole disk) be enough to securely erase the partition table. Recovery software could still trawl through the disk but it would probably take much longer to find anything interesting.
 

mikeymikec

Lifer
May 19, 2011
18,048
10,227
136
Would zeroing the first 100Mb (instead of the whole disk) be enough to securely erase the partition table. Recovery software could still trawl through the disk but it would probably take much longer to find anything interesting.

The thing is, who'd bother trying to recover data from a second-hand drive they just bought? At the end of the day, if I were so inclined I'd just set the recovery software off (5-10 minutes' work?), come back say 8 hours later and see what it found. So for those who know how, provided they have the time and inclination, why not.

I've always got around this problem by either physically destroying the drives I want to get rid of or by giving/selling them to people whom I know wouldn't bother wasting their time. At the end of the day on the heck of a lot of peoples' drives they're going to find nothing particularly interesting anyway. Sometimes when I'm going through old drives that I've taken from customers' old computers, I'd try to figure out whose drive it was, and even going through say the Documents/Downloads folders on an intact file system I still have no idea whom it belonged to originally, and not because they took the time to 'delete' a few files first.

If you're selling the drive to someone you don't know and the drive did contain sensitive data then I guess you have to assume that they're the kind of person who'd happily trawl through your garbage, which is pretty much what this situation amounts to IMO.
 

Fallen Kell

Diamond Member
Oct 9, 1999
6,063
437
126
Would zeroing the first 100Mb (instead of the whole disk) be enough to securely erase the partition table. Recovery software could still trawl through the disk but it would probably take much longer to find anything interesting.
No. It is trivially easy to restore data from a disk that has simply had the partition table and beginning of the file system deleted. Most file systems have multiple backup file tables which can be accessed to find the location data of files on the disk and recover the files and data. You need to perform a complete wipe by zero filling the entire disk.

The exception to this is if your filesystem is an encrypted one, but even then I would still just wipe it (it is not that hard, just kick it off overnight and it will most likely be done in the morning).
 

Billy Tallis

Senior member
Aug 4, 2015
293
146
116
Would zeroing the first 100Mb (instead of the whole disk) be enough to securely erase the partition table.

GPT puts a backup copy of the partition table at the end of the disk.

(This is occasionally a source of confusion when someone tries to image one drive onto a larger drive and then resize the last partition, without first updating the GPT to account for the new drive capacity.)
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |