SDMEM(1)
π SDMEM(1) β the secure memory wiper bestie π
okay so this is the manual page for sdmem, part of the secure_deletion toolkit, and it lives in the General Commands Manual. she's here to wipe your RAM and she is not playing around. let's get into it π«Ά
β¨ NAME β¨
sdmem β secure memory wiper (secure_deletion toolkit) π§ π₯
β¨ SYNOPSIS β¨
sdmem [-f] [-l] [-l] [-v]
(yes the -l shows up twice, that's on purpose, more on that below π)
β¨ DESCRIPTION β¨
so sdmem is literally designed to delete data that might still be chilling in your memory (that's RAM btw) in a secure way that can not be recovered by thieves, law enforcement, or other threats. no cap. π΅οΈβοΈ
β οΈ and here's the tea: with the new SDRAMs, data will not wither away β it stays static. meaning it's easy to extract the necessary information! so like, don't sleep on this.
the wipe algorithm is based on the paper "Secure Deletion of Data from Magnetic and Solid-State Memory", presented at the 6th Usenix Security Symposium by Peter Gutmann, who is one of the leading civilian cryptographers. iconic honestly. π
the secure data deletion process of sdmem goes like this:
- 1 pass with
0x00 - 5 random passes.
/dev/urandomis used for a secure RNG if available. - 27 passes with special values defined by Peter Gutmann.
- 5 random passes.
/dev/urandomis used for a secure RNG if available.
that's the whole routine. 1 + 5 + 27 + 5, do the math bestie π
β¨ COMMANDLINE OPTIONS β¨
-fβ fast (and insecure mode): no/dev/urandom. π yeah it's fast but it's insecure, the name is right there.-lβ lessens the security. Only two passes are written: the first with0x00and a final random one.-lβ-lfor a second time lessons the security even more: only one pass with0x00is written. π stacking them makes it weaker, not stronger, okay?? pay attention.-vβ verbose mode πΈ
β¨ NOTE β¨
this utility was originally called smem but was renamed for debian to avoid name clashes with another package. glow-up rebrand fr fr π
β¨ BEWARE β¨
- SLOW β wiping the memory is very slow. You might use
sdmemwith the-lloption. (tip) π - BETA! β
sdmemis still beta. π§
β¨ BUGS β¨
no bugs. there was never a bug in the secure_deletion package (in contrast to my other tools, whew, good luck ;-) ). send me any that you find. patches are nice too :) πβ¨
β¨ AUTHOR β¨
van Hauser / THC <vh@thc.org>
β¨ DISTRIBUTION β¨
the newest version of the secure_deletion package can be obtained from http://www.thc.org π
sdmem and the secure_deletion package is (C) 1997-2003 by van Hauser / THC (vh@thc.org)
this program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; Version 2.
this program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
β¨ SEE ALSO β¨
srm (1)sfill (1)sswap (1)
and that's the whole page bestie π this one's sdmem(1) from the General Commands Manual β go forth and wipe that memory, stay secure, and remember: -l twice means less security, not more. mwah πβ¨
π¦ where this page comes from
- debian bookworm: secure-delete 3.1-8 Β· GPL-2.0-only
- debian trixie: secure-delete 3.1-12 Β· GPL-2.0-only
- ubuntu jammy: secure-delete 3.1-7 Β· GPL-2.0-only
- ubuntu noble: secure-delete 3.1-8 Β· GPL-2.0-only
- ubuntu questing: secure-delete 3.1-12
- ubuntu resolute: secure-delete 3.1-12build1 Β· GPL-2.0-only
- ubuntu stonking: secure-delete 3.1-12build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms