26
submitted 2 days ago by oeuf@slrpnk.net to c/linux@lemmy.ml

Are there any benefits, in terms of performance or security in 'wiping' or overwriting an SSD before reinstalling Linux? And if so, what is the best way of doing it?

I'm planning on doing a clean install of Debian 13 on my laptop soon.

I'm currently on Fedora and using encryption and will be using encryption on Debian too. I do not have a separate home partition.

Thanks :)

you are viewing a single comment's thread
view the rest of the comments
[-] HiddenLayer555@lemmy.ml 2 points 1 day ago* (last edited 1 day ago)

AFAIK it's a bad idea to use dd or another wiping tool that just overwrites the logical partitions on flash based media, and is also not that effective for security. SSDs have wear leveling and what the computer sees does not map 1 to 1 to what's actually on the flash chips. They also have extra overprovisioned space inaccessible to your computer specifically for shuffling data around when wear leveling. So not only are you wasting write cycles, it's not guaranteed to actually overwrite all your data on the flash chips themselves.

If you want to wipe an SSD, use secure erase from a tool like nvme-cli which will directly tell the controller to erase all the data. How well the controller implements that is anyone's guess though.

I'd say if you're going to the effort of fully encrypting your new install, doing a secure erase will be in that spirit and won't hurt. There won't be any performance benefit but it will (probably) ensure that none of your previous unencrypted data is still there, though even if you don't do this, just writing to the drive in normal use will eventually fill up the free space and make it less and less likely that sensitive information is recoverable, but how long this happens depends on how you use the computer.

this post was submitted on 07 Aug 2025
26 points (93.3% liked)

Linux

57120 readers
901 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS