56
Proper HDD clear process? (poptalk.scrubbles.tech)
submitted 8 months ago* (last edited 8 months ago) by scrubbles@poptalk.scrubbles.tech to c/selfhosted@lemmy.world

Usually my process is very... hammer and drill related - but I have a family member who is interested in taking my latest batch of hard drives after I upgraded.

What are the best (linux) tools for the process? I'd like to run some tests to make sure they're good first and also do a full zero out of any data. (Used to be a raid if that matters)

Edit: Thanks all, process is officially started, will probably run for quite a while. Appreciate the advice!

you are viewing a single comment's thread
view the rest of the comments
[-] synestine@sh.itjust.works 6 points 8 months ago

'dd' works, but I prefer 'shred'. It does a DoD multi-pass shred by default, so I usually use 'shred -vn1z /dev/(drive)'. That gives output, does a one-pass random write followed by one-pass zero of the disk. More than that just wastes time, and this kinda thing takes hours on large spinners. I also use 'smartmontools' to run SMART tests against my drives regularly to check their health.

[-] Kid_Thunder@kbin.social 4 points 8 months ago* (last edited 8 months ago)

It does a DoD multi-pass shred by default

Just a heads up that's not a thing anymore (since 2006 when the 1995 revision was superseded), except that you have to physically destroy it or whatever the CSA's policy that owns it says to do. Generally the direction for an HDD would be, if available, use a degaussing rod and then regardless, you must shred it in an approved HDD shredder (a physical shredder) or incinerate it. For an SSD, it would be to incinerate it.

Now 5220.22-M (the 1995 version) that most commercial and some not-so-commercial software referenced as the "DOD Standard" doesn't even exist anymore. It is now 32 CFR Part 117 of Title 32 and with respect to sanitization is §117.18 (b)(2).

this post was submitted on 16 Dec 2023
56 points (95.2% liked)

Selfhosted

39143 readers
273 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS