frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

How not to securely erase a NVME drive (2022)

https://peterbabic.dev/blog/how-not-to-securely-erase-nvme-drive/
39•transpute•4d ago

Comments

e40•3d ago
That was way longer than I expected. Wow.
russfink•1h ago
sedutil-cli —yesIwantToEraseALLmydata $PSID /dev/sda1 or something like that.
theandrewbailey•1h ago
Tip: Get a barcode scanner. The PSID is usually encoded in a bar/matrix code on the drive's label, next to the plaintext PSID.
digiown•1h ago
And this is why you always encrypt the drive with software. All of these methods seem to put a lot of faith into the drive controller doing what it claim it does, which you can never be all that sure about. Even Microsoft-backed Bitlocker would help here.
Joel_Mckay•1h ago
Indeed, LUKS + F2FS for /home with an external key file imported into initrd solves a lot of issues.

Primarily, when an SSD slowly fails the sector replacement allotment has already bled data into read-only areas of the drive. As a user, there is no way to reliably scrub that data.

If the drive suddenly bricks, the warranty service will often not return the original hardware... and just the password protection on an embedded LUKS key is not great.

There are effective disposal methods:

1. shred the chips

2. incinerate the chips

Wiping/Trim sometimes doesn't even work if the Flash chips are malfunctioning. =3

SoftTalker•1h ago
For SATA SSDs i've used the hdparm secure erase and then verified that dd | hexdump is all zeros. That was good enough for me.
SoftTalker•1h ago
Smash it with a hammer and move on. I'd never buy a used storage device anyway, no telling what malware it might contain.
NegativeK•56m ago
I had a drawn out conversation with a friend about erasing NVME drives in a way that met compliance needs. The procedure they were given was to install Windows, with Bitlocker, twice with no effort to retain the key.

But that doesn't even overwrite the visible drive space; you can do a simple PoC to demonstrate that Windows won't get to all the mapped blocks. And that still hasn't gotten to the overprovisioned blocks and wear leveling issues that the article references.

You could use the BIOS or whatever CLI tool to tell the drive to chuck its encryption key, but are you sure that tool meets whatever compliance requirements you're beholden to? Are you sure the drive firmware does?

So they went with paying a company to shred the drives. All of them. It's disgustingly wasteful.

wtallis•31m ago
If compliance is the goal, just use FIPS certified self-encrypting drives and trust them to wipe their encryption keys when instructed to do so. At that point, any failure is clearly the vendor's fault, not your own.
protocolture•20m ago
Used to do recycling. Before secure erase was widespread there used to be cheapish 16 and 32GB SSDs for embedded devices, but a few of them made it into the thin/zero client space and a few white labelled low end pc's. they were actually twice the size. Basically 2 16s in a single 16 chassis. And what you would get is that the 2 drives were sort of in sync, I think it was a failover mechanism to deal with shitty drive quality. If drive A failed it would just connect to drive B instead and the user might not know about the failure. But the second drive would not wipe necessarily depending on how you wiped the first one. A few people retrieved data from the second disk under lab conditions, after wiping the first, so we had a report come through that we couldnt certify these disks as erased until they demonstrated compliance with secure erase. So we shredded probably a few thousand of them.

I heard of similar issues with early nvme drives.

buckle8017•45m ago
Smash it with a hammer.

If you insist on erasing the data, overwrite the entire contents of the drive twice with random data.

Doing it twice will blow away any cached as well (probably).

wtallis•28m ago
It's very common for both NVMe and SATA drives that they'll be locked/frozen during boot and thus will not honor a secure erase command until the drive has been power-cycled, which can usually be accomplished with the system-level sleep/wake cycle. I'm not sure what useful purpose this is meant to serve other than possibly making it hard for malware to instantly and irretrievably wipe your storage.
Neywiny•20m ago
Gotta love breaking EFI changes. I don't know how many times my work laptop would do that and I couldn't boot anymore, only to remember some stressful time later that Linux would only boot with some of the settings flipped from their defaults. At least I never had to reinstall anything.
IAmLiterallyAB•2m ago
As far as I know, there is NO way to securely erase a USB flash drive (barring some undocumented vendor specific commands that may exist).

Child prodigies rarely become elite performers

https://www.economist.com/science-and-technology/2026/01/14/why-child-prodigies-rarely-become-eli...
48•i7l•2h ago•37 comments

Voxtral Transcribe 2

https://mistral.ai/news/voxtral-transcribe-2
798•meetpateltech•13h ago•197 comments

Postgres Postmaster does not scale

https://www.recall.ai/blog/postgres-postmaster-does-not-scale
20•davidgu•11h ago•1 comments

Sqldef: Idempotent schema management tool for MySQL, PostgreSQL, SQLite

https://sqldef.github.io/
91•Palmik•3d ago•21 comments

OpenClaw is what Apple intelligence should have been

https://www.jakequist.com/thoughts/openclaw-is-what-apple-intelligence-should-have-been
198•jakequist•4h ago•195 comments

Claude Code: connect to a local model when your quota runs out

https://boxc.net/blog/2026/claude-code-connecting-to-local-models-when-your-quota-runs-out/
222•fugu2•3d ago•113 comments

AI is killing B2B SaaS

https://nmn.gl/blog/ai-killing-b2b-saas
273•namanyayg•11h ago•431 comments

Why More Companies Are Recognizing the Benefits of Keeping Older Employees

https://longevity.stanford.edu/why-more-companies-are-recognizing-the-benefits-of-keeping-older-e...
39•andsoitis•5h ago•11 comments

Remarkable Pro Colors

https://www.thregr.org/wavexx/rnd/20260201-remarkable_pro_colors/
78•ffaser5gxlsll•3d ago•29 comments

Claude Code for Infrastructure

https://www.fluid.sh/
168•aspectrr•9h ago•139 comments

A case study in PDF forensics: The Epstein PDFs

https://pdfa.org/a-case-study-in-pdf-forensics-the-epstein-pdfs/
254•DuffJohnson•13h ago•141 comments

Building a 24-bit arcade CRT display adapter from scratch

https://www.scd31.com/posts/building-an-arcade-display-adapter
138•evakhoury•10h ago•39 comments

A few CPU hardware bugs

https://www.taricorp.net/2026/a-few-cpu-bugs/
4•signa11•48m ago•0 comments

Microsoft's Copilot chatbot is running into problems

https://www.wsj.com/tech/ai/microsofts-pivotal-ai-product-is-running-into-big-problems-ce235b28
148•fortran77•12h ago•190 comments

Lily Programming Language

https://lily-lang.org
25•FascinatedBox•3d ago•15 comments

How not to securely erase a NVME drive (2022)

https://peterbabic.dev/blog/how-not-to-securely-erase-nvme-drive/
39•transpute•4d ago•15 comments

Listen to Understand

https://talk.bradwoods.io/blog/listen-to-understand/
12•bradwoodsio•3d ago•1 comments

Tractor

https://incoherency.co.uk/blog/stories/tractor.html
161•surprisetalk•1d ago•49 comments

Show HN: Bunqueue – Job queue for Bun using SQLite instead of Redis

https://github.com/egeominotti/bunqueue
26•kernelvoid•3d ago•3 comments

Attention at Constant Cost per Token via Symmetry-Aware Taylor Approximation

https://arxiv.org/abs/2602.00294
158•fheinsen•13h ago•86 comments

A sane but bull case on Clawdbot / OpenClaw

https://brandon.wang/2026/clawdbot
266•brdd•1d ago•415 comments

Claude is a space to think

https://www.anthropic.com/news/claude-is-a-space-to-think
397•meetpateltech•16h ago•213 comments

As Rocks May Think

https://evjang.com/2026/02/04/rocks.html
73•modeless•5h ago•59 comments

Coding Agent VMs on NixOS with Microvm.nix

https://michael.stapelberg.ch/posts/2026-02-01-coding-agent-microvm-nix/
91•secure•3d ago•42 comments

Show HN: Morph – Videos of AI testing your PR, embedded in GitHub

https://morphllm.com/products/glance
25•bhaktatejas922•7h ago•10 comments

Converge (YC S23) Is Hiring Product Engineers (NYC, In-Person)

https://www.runconverge.com/careers/product-engineer
1•thomashlvt•11h ago

A real-world benchmark for AI code review

https://www.qodo.ai/blog/how-we-built-a-real-world-benchmark-for-ai-code-review/
42•benocodes•7h ago•20 comments

Data Poems

https://dr.eamer.dev/datavis/poems/
31•putzdown•3d ago•4 comments

Arcan-A12: Weaving a Different Web

https://www.divergent-desktop.org/blog/2026/01/26/a12web/
54•ingenieroariel•12h ago•15 comments

Tell HN: Another round of Zendesk email spam

84•Philpax•9h ago•38 comments