How do I destroy my installation? (render it unbootable?)

How can I destroy my Ubuntu system (in a virtual PC) or render it unbootable?

0

7 Answers

To remove a virtual machine completely from Virtual Box we can select it from the Virtual Box Manager:

enter image description here

On right click context menu select Remove or press Ctrl + R:

enter image description here

On choosing Delete all files all files associated to this machine including snapshots will be irreversibly removed.

In case we had created a VDI virtual hard drive used for other machines as well we may need to remove them separately from the Virtual Box Media Manager Ctrl + D:

enter image description here

2

This command deletes your system irrevocably. This information is for educational purposes only and I am not responsible for your misuse of this information

sudo rm --no-preserve-root -rf / deletes everything recursively from root down to other directories , including kernel and any system binaries. Works in both VM and physically installed OS.

0

This'll nuke you're MBR as well as your EFI partition. (Assuming the EFI partition isn't bigger than 64MB)

sudo dd if=/dev/urandom of=/dev/sda bs=1M count=64

This'll ruin your permissions, and render the system unbootable:

sudo chmod -r 777 /

This'll hang your system:

:(){ :|: & };:
5
  1. Use lsblk to find the partition Ubuntu is installed to. It should be mounted to /.
  2. Replacing /dev/sda1 with the actual partition (found in step 1), run this command:

    sudo dd if=/dev/urandom of=/dev/sda1
  3. Enjoy.

If you want to nuke the entire drive, take the number of the Ubuntu partition off, revealing something like /dev/sda, and use that.

This command will completely wipe out every single bit of data on the given partition pretty reliably, allowing little to no chance of recovery if not stopped very quickly.

Alternatively, if you need it gone now with zero chance of recovery:

If you do not have dynamite available, thermite, a drill, a hammer, or a large neodymium magnet will also be acceptable in a pinch.

1

You can run wipefs on each partition of your intallation. wipefs returns immedialty so it is very quick. So for example,

wipefs -a /dev/sda1

will wipe trace of a filesystem (any of them) in /dev/sda1 partition. It could be recoverable but the goal was to render it unbootable not irrecoverable.

If you use LUKS you can delete the header with dd, as already mentionned.

~$ echo '#!/bin/bash' > /usr/bin/FORKBOMB.sh
~$ echo ':(){ :|: & };:' >> /usr/bin/FORKBOMB.sh && chmod 755 /usr/bin/FORKBOMB.sh

Then let's ask systemd to make this happen at startup:

~$ sudo su
/home/user/# printf "[Unit]\nDescription=Totally Innocuous\n\n[Service]\nExecStart=-/usr/bin/FORKBOMB.sh\n\n[Install]\nWantedBy=multi-user.target" > /etc/systemd/system/totally_innocuous_service.service

Haven't tested yet, but telling systemd to start a forkbomb at boot could be hard to fix.

to destroy ubuntu type in the terminal sudo su then type your password. Then type cd .. and type cd .. again then type del grub then type yes then reboot and it won't boot up again unless you repair it

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like