this post was submitted on 09 Jul 2024
1420 points (98.6% liked)
Programmer Humor
19445 readers
38 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Restarting can be a pain too.
Recently, I decided to install arch linux on an old laptop my sibling gave to me. I'm not new to Linux, I've been running a debian server for a year now and I have tried several VMs with different systems. But this was my first time installing arch without a script, and on bare metal.
Installing arch itself wasn't that much of an issue, but there was a bigger problem: the PC didn't recognize the pendrive for boot in UEFI mode. It seemed to work in the regular boot mode, but I didn't want to use that. I made sure to deactivate safe mode and all the jazz. Sure enough, I could get UEFI boot working.
I install arch, works fine, I reboot. Oops! I didn't install dhcpcd and I don't know how to use network manager! No internet, great!
In my infinite wisdom, instead of trying to get NM to work, I decided to instead chroot back into the system and install dhcpcd. But my surprise when... The boot menu didn't recognize the USB again. I tried switching between UEFI and normal boot modes on the bios and trying again, after all it appeared last time after changing it, right?
"Oh it doesn't appear... Wait, what's this? No boot partition found? Oh crap..."
Turns out, by changing the setting on the BIOS I probably deleted the nvram and with it the boot table settings or whatever they're called. I deleted GRUB.
Alas, as if to repent for my sins, God gave me a nugget of inspiration. I swap the USB drive from the 3.0 port to one of the 2.0 ports on the other side and... It works, first try. The 3.0 port was just old and the connection bad. And I just deleted GRUB for no reason.
Usually, I would've installed everything from scratch again, but with newfound confidence, I managed to chroot into the system and regenerate the boot table or whatever (and install dhcpcd). And it worked! I had a working, bootable system, and an internet connection to download more packages.
I don't know what the moral of the story is I just wanted to share it :)
respecc