Thread 106119917 - /g/ [Archived: 448 hours ago]

Anonymous
8/2/2025, 10:45:49 PM No.106119917
1724167272406858
1724167272406858
md5: 772d8c5fca4826060a84d6a877a5dbb9🔍
dd if=/dev/null of=/dev/sdX
will this erase everything on an ssd? I know stuff like shred doesn't really work on ssds. Is the above valid?
Replies: >>106119963 >>106120590 >>106120950 >>106120971 >>106121160 >>106121178 >>106121373 >>106121441 >>106121639 >>106124082 >>106124088
Anonymous
8/2/2025, 10:46:22 PM No.106119925
or /dev/urandom
will this work?
Replies: >>106119970
Anonymous
8/2/2025, 10:50:38 PM No.106119963
>>106119917 (OP)
As far as I know, this will work. However, it leaves traces, meaning it can be deduced that something was written to it. No way to recover but it's not going to look "clean" in forensics.
Replies: >>106119991
Anonymous
8/2/2025, 10:50:53 PM No.106119970
>>106119925
urandom/random will be better than null for an ssd, yes
when decommissioning drives i usually do that and a sata secure erase/an "enhanced" secure erase if the drive supports it
Anonymous
8/2/2025, 10:52:31 PM No.106119991
>>106119963
what if I do it a few times? Would that make things much more difficult to recover?
Replies: >>106120417
Anonymous
8/2/2025, 11:44:28 PM No.106120417
>>106119991
Yes, govt agencies and other highly sensitive fields normally fill it with random bytes multiple times before discarding a drive
Replies: >>106120472
Anonymous
8/2/2025, 11:50:52 PM No.106120472
>>106120417
>Yes, govt agencies and other highly sensitive fields normally fill it with random bytes multiple times before discarding a drive
they just shred their drives (I mean physically not the shred command)
Replies: >>106120506
Anonymous
8/2/2025, 11:53:30 PM No.106120506
>>106120472
Usually done by 3rd parties, unless you're AWS scale. Several overwrites are done before hand off to the 3rd party.
Replies: >>106120524
Anonymous
8/2/2025, 11:55:36 PM No.106120524
>>106120506
Well there you go. That's table stakes if you want secure deletion.
Anonymous
8/3/2025, 12:04:05 AM No.106120590
1723620507679974
1723620507679974
md5: d820704957dd452fb3691ecc6c3297e0🔍
>>106119917 (OP)
Use the secure erase feature instead.
Replies: >>106120596
Anonymous
8/3/2025, 12:04:57 AM No.106120596
>>106120590
>use the government snapshot feature instead
Anonymous
8/3/2025, 12:35:03 AM No.106120851
Using your SSD will erase everything.
Replies: >>106120942
Anonymous
8/3/2025, 12:49:22 AM No.106120942
>>106120851
luh
a
mao
Replies: >>106123583
Anonymous
8/3/2025, 12:50:42 AM No.106120950
>>106119917 (OP)
don't get rid of your 'p you'll regret it
Replies: >>106121448
Anonymous
8/3/2025, 12:53:14 AM No.106120971
>>106119917 (OP)
>stuff like shred doesn't really work on ssds.
Yes it does. /dev/sdx is a file. It can be written to by shred.
Yes to your first question as well
Replies: >>106121448
Anonymous
8/3/2025, 1:16:15 AM No.106121160
>>106119917 (OP)
There's no guarantee that even multiple passes of a full drive write will actually overwrite every block on modern drives. Use secure erase or a hammer.
Replies: >>106121448
Anonymous
8/3/2025, 1:18:58 AM No.106121178
>>106119917 (OP)
>dd if=/dev/null of=/dev/sdX
No, you stable genius, you cannot read from "/dev/null". What you want there is "/dev/zero".
That said, zeroing the drive only works as expected on HDDs. SSDs are special and need custom "secure erase" tools: https://www.tomshardware.com/how-to/secure-erase-ssd-or-hard-drive
Anonymous
8/3/2025, 1:41:38 AM No.106121373
>>106119917 (OP)
No, SSDs use overprovisioning so it's not guaranteed to clear everything. It'll also rape the endurance. You should use you're drive's secure erase feature.
Anonymous
8/3/2025, 1:49:30 AM No.106121441
>>106119917 (OP)
Just melt it in a volcano bro.
Anonymous
8/3/2025, 1:50:14 AM No.106121448
>>106120950
I don't have any cp you disgusting faggot.
I was just learning about SSD's and how they allocate blocks, so was wondering how proper wiping can be done on them.

>>106120971
it works if used on the whole drive, correct? Not on a specific file or block on the drive. Since SSD's do magic behind the scenes and realloxate already existing blocks in place of old ones when they get delete commands from an OS.

>>106121160
I got a gnu/hammer ready, but what's secure erase?
Replies: >>106121546
Anonymous
8/3/2025, 1:58:26 AM No.106121546
>>106121448
>what's secure erase?
https://wiki.archlinux.org/title/Solid_state_drive/Memory_cell_clearing
Anonymous
8/3/2025, 2:12:35 AM No.106121639
>>106119917 (OP)
I'm sorry not to answer the question, but why didn't you just encrypt it to begin with?
Replies: >>106121842
Anonymous
8/3/2025, 2:35:08 AM No.106121842
>>106121639
I know about encryption now. Not gonna lie I still don't use it 'cause I don't keep any sensitive info on my main machine. I have a separate laptop for banking and important stuff.

I was watching a podcast about tech and they mentioned something about how SSDs allocate blocks and it got me interested so started reading more about them, and that finally lead me to thinking about how someone can safely delete an SSD.

Anons already mentioned some good information above though.
Anonymous
8/3/2025, 7:11:25 AM No.106123583
>>106120942
What's so funny, retard? Wear leveling will overwrite all old data if you write like 120% of your disk's capacity by just fucking using it.
If you aren't going to use it anymore, then physically destroy it, and use encryption next time if you're a pedophile who has a lot to hide.
Anonymous
8/3/2025, 8:37:55 AM No.106124082
>>106119917 (OP)
$ sudo wipefs -a /dev/sdX1 # and for every other partition
$ sudo wipefs -a /dev/sdX
$ sudo blkdiscard /dev/sdX
$ sudo dd if=/dev/urandom of=/dev/sda bs=4M # three times
$ sudo blkdiscard /dev/sdX
# Feel free to do a SECURE ERASE or whatever
[/code
Anonymous
8/3/2025, 8:39:08 AM No.106124088
>>106119917 (OP)
$ sudo wipefs -a /dev/sdX1 # and for every other partition
$ sudo wipefs -a /dev/sdX
$ sudo blkdiscard /dev/sdX
$ sudo dd if=/dev/urandom of=/dev/sdX bs=4M # three times
$ sudo blkdiscard /dev/sdX
# Feel free to do a SECURE ERASE or whatever