Today, I had the greatest pleasure of doing something on my dev-bucketlist.

I actually did the following command

sudo rm -Rf /*

On a live, production server...

Boss told me “destroy the contents of this server, don’t need backups”

It was a dedicated hosted server we’ve had for years and it was no longer needed.

  • 81
    How I imagine this going...

    Woohoo, here I go! <executes command>

    Why's our live server offline?

    ...ah ****. Wrong server.
  • 49
    @AlmondSauce to be fair, I had to get the 3 other devs to watch, to make sure I wasn’t in the wrong place. And then we just watched the terminal output until it crashed...
  • 43
    I want to see the expression of you guys before hitting that enter button
  • 25
    I would have done sudo dd if=/dev/zero of=/dev/sda

    I've always wanted to try it on a live running linux machine
  • 9
    So, was the server crying 😭?
    Did it promise “ I’ll do better next time don’t turn me off”?
  • 13
    You know how it feels to kill now.
  • 9
    Didn't you need --no-preserve-root?
  • 8
    @TempestasLudi nope.

    Once it was done, I closed the terminal. Opens it up again and tried to ssh to server. No response.

    Using iDrac, couldn’t even get the hdd to boot.

    Success 👌🏻
  • 3
  • 5
    @TempestasLudi that's a Debian thing.
  • 3
    @ewpratten no. Entire physical server.
  • 3
    @Observable I was replying to a comment. Not your rant.
  • 3
    @ewpratten I see that now. #idiot :)
  • 3
    @ewpratten Still no tho. Real hardware or nothing at all!!!! Maybe I'll do it when I'm building a server. Just make it wipe it, make it again.
  • 2
    You should have create a video of it... Share the pleasure
  • 2
    @Ximidar would that work without unmounting the disk?
  • 2
    @daniem10 dd isn't nicknamed "Disk Destroyer" for nothing. I don't think dd warns you at all. it just accepts sudo power and does what it is told.
  • 1
    @daniem10 I guess it might fail. I don't actually know enough about how dd works too definitively say. One day I'll try it out.
  • 2
    @Ximidar yes, dd is a sledge hammer. 😂🔨
  • 3
    You should have made it a live stream and invited us all to watch
  • 1
    @Ximidar have done it. Doesn't fail. Remember that everything needed is already in memory. Dd works on the disk or partition (if that is the device file provided as 'of') itself so mounts and fs are left completely out of the equation. It might help to stop as many services as possible so time is not spend in hanging/generating errors when fs on disk is trashed.
  • 1
    Make sure efivars aren't mounted rw or you brick the MB
    Btw systemd mounts them rw by default AFAIK :)
    I speak from experience
Your Job Suck?
Get a Better Job
Add Comment