This is a simple program run as root, that destroys a Linux installation from inside.
This program clears the root disk of a Linux installation, safely and without disruptions. It does not interfere with EFI/BIOS/firmware variables, so it is safe.
In short, this is a tool to do rm -rf /
more perfectly.
WARNING
This program destroys the OS and data of the system it runs on.
Only run this when you are sure that you want to destroy the system.
Download the binary and copy it to the system you want to destroy.
Or build one yourself:
cargo install demolish-linux
scp ~/.cargo/bin/demolish-linux user@server:/tmp/
This assumes that you copied the program into /tmp/demolish-linux
.
If your system's root disk is at /dev/sda
(find your one with lsblk
):
# If nessesary
chmod +x /tmp/demolish-linux
# as root (UID 0)
/tmp/demolish-linux /dev/sda
# and done!
# If you use SSH to connect to the system, the connection will be closed,
# but the cleanup will continue to the end.