Skip to content

Instantly share code, notes, and snippets.

@torgeir
Created September 10, 2022 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torgeir/53f255ec030c3ef358181b1679631469 to your computer and use it in GitHub Desktop.
Save torgeir/53f255ec030c3ef358181b1679631469 to your computer and use it in GitHub Desktop.
Nuke a disk, single pass
# https://wiki.archlinux.org/title/Securely_wipe_disk
❯ sudo shred --verbose --random-source=/dev/urandom -n1 --zero /dev/sdX
shred: /dev/sdb: pass 1/2 (random)...
shred: /dev/sdb: pass 1/2 (random)...134MiB/932GiB 0%
shred: /dev/sdb: pass 1/2 (random)...319MiB/932GiB 0%
shred: /dev/sdb: pass 1/2 (random)...503MiB/932GiB 0%
@0xTheSmartGuy
Copy link

Never never never gunna work (its 4 passes actually or just 2)

@torgeir
Copy link
Author

torgeir commented Dec 3, 2022

What do you mean, it makes 4 or 2 passes none the less?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment