this post was submitted on 07 Oct 2025
603 points (98.9% liked)

memes

17645 readers
2520 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/Ads/AI SlopNo advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Beacon@fedia.io 31 points 1 day ago (2 children)

If it's a spinning disk hard drive then do a low level format i.e. do a security write zeros on the whole disk (be sure to delete all partitions first). This will try to write a zero to every single sector, and any bad sectors will be removed from use.

[–] redsand@lemmy.dbzer0.com 15 points 1 day ago

https://wiki.archlinux.org/title/Badblocks

dd /dev/urandom after if you're encrypting the disk

[–] hemko@lemmy.dbzer0.com 11 points 1 day ago* (last edited 1 day ago) (1 children)

I don't think you need to delete the partitions separately, since it's just a table at the very beginning of which parts of the disk belong to which partition?

So if you dd zeroes over everything, the first thing that gets deleted is the partitioning table

I might be wrong here, or maybe it doesn't apply to every situation, but that's how I've understood it to work

Also a tip for OP: don't write zeroes over it, but random data (dd if=/dev/urandom ...). It's a bit more secure as it makes it harder to see the size and location of the encrypted data on the disk

[–] Beacon@fedia.io 5 points 1 day ago (1 children)

I've found that on some systems and some utility apps, if there are partitions present then doing a zeroing pass only zeros the partition rather than the entire drive itself

[–] jaybone@lemmy.zip 7 points 1 day ago (2 children)

I’m guessing that is not dd

[–] naeap@sopuli.xyz 8 points 1 day ago

Yeah, dd does as told and doesn't care about your tears about the stupid typo

[–] Beacon@fedia.io 3 points 1 day ago (1 children)

Correct, it was the built it disk utility app on Mac. I had a giant drive with a few partitions and clicked to do a zero pass and it finished in a half second. Obviously there was no way it completed that fast. I did some empirical testing based on completion time and sure enough it only zeroes a single partition rather than the entire disk

[–] ayyy@sh.itjust.works 2 points 23 hours ago

I miss when Disk Utility was good and simple and predictable on MacOS. It’s such steaming shit now.