EJSnow
← 🏡 Home

I Finally rm -rf /*'d Myself

#include metadata.h
// Created May 16, 2026
// Last updated May 16, 2026

There's a saying in the Linux community that goes something like this: If you haven't rm -rf /*'d yourself yet, you're either not a real one or you've just been lucky so far. Well, my luck finally ran out and I did the thing. Yippee!

It all started on Wednesday when I decided to put Windows 11 back on Twilight alongside Arch, because I'm heading to college this fall and I will probably need MS Office, and I refuse to use the web version. So I did that and that went surprisingly smoothly, I had no major problems with the installation and it all kind of just worked. But the next day, after leaving Twilight idling in Windows 11, I rebooted back into Arch and was presented with the dreaded recovery key screen. The TPM2 which normally provides a key to automatically unlock the root partition was no longer happy with me. I tried re-registering the TPM2 with several different combinations of PCRs, but nothing worked. It still just gave me the same recovery key screen when booting up. So I gave up and tried to simply decrypt the SSD. After scouring the ArchWiki, I found a page on decrypting a partition in-place. Even better, it theoretically could be done online (while the partition is unlocked/mounted), meaning I wouldn't have to boot into a live Linux ISO to do it. However, it was early in the morning and I hadn't had any coffee yet, so I misread the warning about it completely locking up and did the exact thing it told me NOT to do, i.e I tried to place the exported header in the filesystem on the device being decrypted (specifically I tried to just drop it in /etc), rather than on another drive.

As the ArchWiki predicted, after starting the decryption, cryptsetup just froze and didn't output anything further (no progress info or anything). I tried to open System Monitor to see if anything was actually happening, but at that point the whole system froze, including the immortal mouse pointer. After 15 minutes it was still frozen, so I gave up and hard rebooted Twilight. It was around this time that I realized I might have misread the warning and screwed up my Linux install. Sure enough, when I tried to boot into Arch again, it sent me straight to the recovery mode that doesn't actually work because the root account is locked (I should probably try to fix that but whatever I have live ISOs). So I booted into a live Linux ISO and tried to mount the root partition, which failed regardless of whether I used a normal mount command (for unencrypted drives) or cryptsetup open to unlock an encrypted drive.

So the only option was to reinstall Arch. I decided to just leave the disk unencrypted because who cares anyways. I'm still using Secure Boot though. I actually set up a portable Arch Linux install on my Ventoy drive (a 128GB SSD donated from my PC) a while ago and I used it to reinstall as all of the necessary tools were on it and it has a nice friendly KDE Plasma session with Firefox to browse the ArchWiki. This of course went quite smoothly and I'm now back up and running once again.