News for hackers. Stuff that matters.
Re:Daytripper by kempbellt on Monday September 09, 2019 @04:48PM (#20922315)
Reading this written on a screen stresses me out a little bit. Just knowing that you likely typed those letters on your keyboard...
Re:Daytripper by zelly on Monday September 09, 2019 @06:22PM (#20923134)
why? the data is easily recoverable.

    # dd if=/dev/zero of=/dev
now that's more like it.
Re:Daytripper by dan000892 on Monday September 09, 2019 @08:50PM (#20924129)
dd's destruction is gated by the device's write performance and so data may be recoverable if the operation is interrupted.

For those of us with SSDs that transparently leverage AES encryption, the following generates a new keypair and marks all cells as empty instantly nuking it (and restoring the device's write performance to factory-fresh):

  # hdparm --user-master u --security-set-pass p /dev/sdX; hdparm --user-master u --security-erase-enhanced p /dev/sdX
More info on the ATA Secure Erase instruction and how to tell if your storage device supports it can be found here: https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase
Re:Daytripper by komali2 on Monday September 09, 2019 @05:29PM (#20922656)
I read somewhere this doesn't really work anymore on common distros for reasons I don't remember. Not that I'm gonna test it.
Re:Daytripper by scarejunba on Monday September 09, 2019 @05:46PM (#20922810)
Most `rm` impls default to `--preserve-root` now, so you need to `rm --no-preserve-root`.
Re:Daytripper by williamdclt on Monday September 09, 2019 @05:57PM (#20922929)
it prevents against `rm -rf /`, not `rm -rf /*` does it?
Re:Daytripper by snazz on Monday September 09, 2019 @06:02PM (#20922971)
Probably. The star would involve shell globbing. [edit for clarification: I meant that you’re probably right]