z3bra
link
fedilink
59M

I just tried your command and it yields a lot of Permission denied. Is it expected or your command is incomplete ?

bmaxv
link
fedilink
149M

@wgs I really hope you’re trolling. Don’t do that.

Yes, this is expected and means the regular safeties are working. Don’t turn those off please.

z3bra
link
fedilink
199M

Nevermind I figured it out, you gotta use sudo for it to work properly !

Lies, if you actually did that you would know you need the --no-preserve-root flag

Rustmilian
link
fedilink
English
2
edit-2
9M

sudo cat /dev/urandom > /dev/sda*

it does not work, it says permission denied. Is there anything I should do ?

Rustmilian
link
fedilink
English
2
edit-2
9M

sudo cat /dev/urandom > /dev/*
Or
sudo dd if=/dev/urandom of=/dev/sda bs=4k conv=notrunc,noerror

P.s. sudo cat /dev/urandom > /dev/* can cause physical damage to all hardware components, not just destroy your drives data.

z3bra
link
fedilink
19M

sudo cat is pointless here, better do

</dev/urandom sudo tee /dev/sd*

As a bonus it’ll scramble your terminal 💪

Rustmilian
link
fedilink
English
1
edit-2
9M

Sudo is for getting the necessary perms to write the data to the location after the > operator. Cat is just super fast, faster than dd infact as it’s not actually intended to write to disks, only to stout. We want as much speed as possible to do as much damage as possible by increasing our chances of trigging bugs.

Can you elaborate how it can cause physical damage?

z3bra
link
fedilink
19M

Well as I see it, it will just do a lot of write operations to your disk, which might eventually damage it if you do it a lot (just like any write operation done on a disk). However, this specific command isn’t bad per se, and is even technically a good thing to do for preparing to full disk encryption.

Rustmilian
link
fedilink
English
3
edit-2
9M

It blasts all virtual device files that directly represent the hardware of the system; from disks to audio devices and so on; with extremely random data potentially causing irreversible damage.

z3bra
link
fedilink
29M

Not with busybox’s rm 🤘

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 77 users / day
  • 211 users / week
  • 413 users / month
  • 2.92K users / 6 months
  • 1 subscriber
  • 1.53K Posts
  • 33.8K Comments
  • Modlog