1. Current Location: Home >  NAS >  Don't just quickly format old hard drives when selling second-hand ones; use two sets of cleaning methods for mechanical and SSD

Don't just quickly format old hard drives when selling second-hand ones; use two sets of cleaning methods for mechanical and SSD

Method for clearing second-hand data from an old hard drive: Compare Write Zero on a mechanical drive and TRIM erasure on a solid drive

After my

cousin upgraded his four-drive Synology to the new Cool Wolf, he still had two 2TB enterprise drives left: one for 34,000 hours of power, and another for 39,000 yuan. The next day after listing on Xianyu, someone took a photo. Before shipping, he messaged me: Bro, if I format the drive once and it will be shipped, right? I said, don't do it. Formatting your whole family is like packaging up all your family photos and download history and giving them to a stranger. They can scan the drive with recovery software, and ninety percent of what you deleted can be restored.

I did some research last year when dealing with second-hand routers. I wrote about how terrifying the residual configurations on second-hand devices can be. In ESET's report, second-hand routers even carried the previous owner's remote management password. The hard drive is more straightforward than the router, so the data is blatantly displayed on the platter. So that day, I dragged my cousin along to walk through the proper erasing process for two drives. The cleaning methods for mechanical and SSD are really not the same thing, so in this article, I'll record both the process and the pitfalls.

To clarify: Quick formatting only tears off the table of contents page

First, you need to understand what formatting actually does. A single disk is like a thick book—quickly formatted, only tearing out the first few pages of contents, leaving hundreds of chapters and text untouched. When the system saw the table of contents gone, it thought the whole book was empty, and when writing new content, it would simply overwrite it. But as long as the old content hasn't been overwritten by new data, recovery software can read the main text page by page.

This isn't just to scare people. I wrote about the last time my wife accidentally deleted photos. Tools like R-Studio scan a disk of deleted files and select file classification. In just a few hours, tens of thousands of files can be thrown out, even missing file names retrieved by content. If you click formatting before selling, the difference is that buyers spend less time on "deleting partitions."

So, is formatting several times useful? In Windows, you format the same partition ten times, and each time you still tear the directory page, with the main text always there. There is only one truly effective approach: erase every page of the entire book. In other words, it is a complete overwrite.

Mechanical drive: writing zero once is enough; don't believe the legend after seven

times

I took apart two enterprise drives and plugged them into the SATA port of the study desktop, connecting them directly to the motherboard wiper without removing the USB port. The order was just one line:

sudo dd if=/dev/zero of=/dev/sdb bs=1M status=progress

The drive letter after of= is not a partition. Writing /dev/sdb1 only wipes one partition; writing /dev/sdb only paints from the first sector to the last partition, removing the partition table together. Before pressing Enter, use lsblk to firmly identify the drive number. Plugging in the wrong cable and wiping the wrong drive is too much to cry about. I mentioned this lesson in the article where NAS can't recognize the drive. lsblk determines the number based on capacity and model.

For a 2TB drive, SATA direct connection tested one drive for 3 hours and 10 minutes, and the other drive for 3 hours and 40 minutes. On an enterprise drive at 7200 RPM, the outer ring can write over 200MB/s, and the inner ring drops to just over 100, so that's the average level. If zero isn't random enough, you can use shred -v -n 1 /dev/sdb to write random numbers once. It takes about the same amount of time and just looks more impressive. My cousin asked if I should write it several more times, and I checked for him: the SP 800-88 guide from the US National Institute of Standards and Technology clearly states that a single full overwrite of a modern hard drive counts as Clear-level clear, but multiple overwrites "do not provide additional guarantees." The widely circulated 7-pass and 35-pass Gutmann solutions are legacies of the old MFM hard drive era in the last century. With the recording density of modern drives, overwrite residues simply cannot be read using known technologies. Write it once, that's enough.

By the way, if you want to confirm the issue before selling this disk, you can use badblocks to write zeros and read back to verify it in one go. The new disc health check article has complete parameters. The downside is it's twice as slow—2TB takes about ten hours, so selling second-hand usually isn't necessary.

On the other hand, SSD: writing zeros is both damaging and hard to clean

After wiping my cousin's mechanical drive, I happened to find a 240GB SSD in my drawer that had been discontinued earlier, so I casually pulled it out for comparison. This is the most common mistake: never write zero in DD on an SSD, for two reasons.

First, it can't be cleaned clean. There's a translation layer in the SSD controller. If you have it write sector 10,000, it decides which physical block it actually writes. To balance wear and tear, it often moves the socket, leaving some reserved space on the drive that you can't even see. If you write the 240G zero from the outside, there will still be some untouched corners at the physical block level, and overwriting this action is naturally unreliable for SSD.

Second, wasting one's lifespan for nothing. Each block only has hundreds or thousands of write times, so to sell the market, you write the entire disk capacity once. What's the point?

The correct solution for SSDs is to let the controller handle it themselves, that is, TRIM:

sudo blkdiscard /dev/sdb

Similarly, run while uninstalling and return in seconds. After TRIM, the controller will mark these blocks as invalid. Consumer-grade SSDs can basically wipe the data within minutes to hours, and conventional methods can't recover it. Here's a real pitfall: the first time, I plugged the SSD into the USB hard drive enclosure to wipe it, and blkdiscard gave an error. Many USB bridge chips fail to transmit TRIM commands, leaving nothing for the sake of it. SSDs either connect directly to the motherboard via SATA or use official tools from various brands for Security Erase. Kingston and Samsung both have their own free software, so it's just a matter of clicking. USB hard drive enclosures are just slow to wipe mechanical drives, but they're really not good for cleaning SSD.

The drive is still plugged into the NAS, so if you can avoid taking it apart, you can avoid

it

If the disk is still in service, first think about one thing: wiping the disk is the final step, and you have to move the data away first. My cousin's data for those two disks was moved away when he switched to the new Cool Wolf. I've written about the process for relocating and moving disks, just follow along. After clearing the data, the rest is to get to work.

My

cousin's Synology is actually the most convenient. The DSM 7's storage manager has ready-made buttons: go to Storage Manager, click HDD/SSD, select the drive you want to process, and the action menu has "Secure Erase." The premise is that the storage pool must be deleted first, and the button will only light up when it is in the unallocated state. Double-click the graphical interface, wait for it to finish, and this feature is to adjust the hard drive's own ATA Secure Erase command for you.

My Feiniu doesn't have this button, so I just use SSH. First, turn on SSH, log in to lsblk to recognize the disk, confirm that the drive is not mounted and not in any storage pool, then use the same blkdiscard or dd line to serve. The switch position and login posture for enabling SSH are described in detail in the SSH activation article. One more nag: typing the drive number on a NAS is easier to slip by hand than on a computer. The system drive is plugged right next to it, typing a wrong letter, and reinstalling the system is a copy of the reinstall record I .

Selling a used whole machine is three steps ahead of selling a single

unit

Some even sold the entire device, including the NAS and the drive. Besides cleaning the plate clean, there are three more things to do. First, restore factory settings to restore the machine to a brand new state; Second, unbind the device from your account. Synology needs to remove the machine from your Synology account and QuickConnect, and also unbind the FN ID on Feiniu's side. Otherwise, buyers might bump into your account when binding, causing disputes; Third, the sticker has the serial number. Before sending the photo to the buyer, consider whether it's necessary. The warranty for the device follows the serial number, so there's no need to hide it.

Actually, the easiest way is to remove the disc and sell the console separately. The buyer can arrange the disc themselves, and whatever you have on the console has nothing to do with the machine. In the end, my cousin ended up with the body and disc separated, and the body ended up being sold first.

From the perspective of retiring the house, you should clean up too

Thinking about this the other way makes it

clearer: when you buy a second-hand property and the seller says it's "formatted," do you feel annoyed? Their photos, work documents, and download records are all lying on the drive. When I receive a second-hand listing, I first do a full inspection. The inspection itself writes zero once, so when I get it, I wipe it again. This is the buyer's self-protection.

Sellers' self-protection means wiping them before making a sale. If the drive isn't too old and the capacity is decent, you can also avoid selling it. using it as a cold backup archive disk is a more cost-effective option than exchanging for money on Xianyu. If you really want to make a move, follow the order below:

DD writes to a few minutes for the SSD (direct SATA connection) and is . If the the
Disc type, erasing time, refer to thoroughness
Mechanical drive (direct SATA)once to zero 2TB, about 3.5 hours is enough; official Clear-grade
mechanical drive (USB box) is the same, just 2TB slower about 5 hours is enough
A few secondsBluk Discard TRIMenough
SSD (USB enclosure) doesn't work, switch to a direct connection or use a vendor tool—USB bridge may not transmit the
NAS diskSynology points for safe erases, Feiniu SSH commandssame type of market observation as above
The order

is just a few steps: first transfer the data to the new drive, then erase it. The mechanical drive is set to zero SSD TRIM, the whole machine is unbound in one extra step, and finally, on the Xianyu detail page, write "All drives erased, only blank drives included," which is better selling than posting ten speed charts. After following the instructions, my cousin sold the two-piece plate the next day. The buyer received it and gave a positive review, saying the seller was professional.

Read More


Copyright Notice Scan to read on mobile
All Rights Reserved: 《SHUNOT》 => 《Don't just quickly format old hard drives when selling second-hand ones; use two sets of cleaning methods for mechanical and SSD》
Article URL: https://www.shunot.com/en/nas/1174.html
Unless otherwise stated, all articles are original by 《SHUNOT》. Reposting is welcome! Please indicate the original URL when reposting, thank you.

Contact Us

Online Consultation: Click here to send me a message

WeChat ID: master_135

Scan to follow