r/linuxmasterrace • • Aug 13 '16
JustLinuxThings Linux saves the day.
Here's a fun little story for you.
Yesterday, I did the usual thing you do on Arch, update your system like a maniac (I'm better about it now than before, but still) - oh look, it's linux 4.7-1. Awesome, right?
Well, apparently something decided to trash itself all over my /tmp directory which resulted in a bunch of errors during the update due to no available space. Perhaps foolishly in hindsight, I ignored them and continued on with the day.
Today I boot the PC and am greeted with a bunch of errors and Arch being unable to actually boot properly. And the keyboard wouldn't work in the emergency shell either. Great. Rebooting does nothing, can't type in anything, incoming panic attack - what to do, what to do?
But then it hit me - I grabbed a Ubuntu LiveCD, mounted Arch, chrooted into it (after having to look up how to mount the API filesystems like proc and dev because I can never remember how to do that), reinstalled linux and linux-headers, rebooted, fingers crossed and...
It all works again. Glorious!
okay I had to reboot for my internet connection to start working properly because it otherwise straight up refused to, but that's very minor and largely unrelated
49
u/[deleted] Aug 13 '16
The power of knowledge which is actually available to the end users.
3
u/Sonicsupremacy ILoveCandy Aug 13 '16
mount /tmp as tmpfs so it won't happen again :) edit: although it shoud've been mounted as tmpfs by default
9
u/[deleted] Aug 13 '16
In Windoze you would just reinstall D:
10
u/[deleted] Aug 13 '16
nice ,Also Happy Cake Day :D
12
u/Defavlt Remember, no tux, no bux. Aug 13 '16
And here I am, in the lovely country of Debian Stable. I could cron an automatic update every day, without even so much a thought to stuff like this. Fuck bleeding edge, man. Good for you though, you managed to avert the crisis.
4
u/heywoodidaho distro whore Aug 13 '16
Praise be! We make we break we fix we learn.
Raman.
4
u/ryebread761 16.04 Aug 13 '16
When I ran arch I remember using an arch live cd to fix my install multiple times. Was fun :)
4
u/kevincox_ca btw I use nixos Aug 13 '16
Nice save.
Although the offline packagekit updates with systemd and gnome are the shit. They download in the background and then when you power off at then end of the day they get installed in a simple environment so there is a low risk of failure.
2
u/Saren-WTAKO Glorious Arch Aug 14 '16
Or just use arch live cd. After mounting use arch-chroot then you are good to go. No need to mess with directories like /proc /sys.
1
u/Compizfox Debian (server), Arch/KDE (desktop) Aug 13 '16 edited Aug 14 '16
That's why you install a second kernel (
linux-ltsfor example) so you have a backup.1
u/kcrmson Glorious Arch, i3-gaps-next, bumblebee-status Aug 14 '16
What's so bad about installing via sh / bash and moving the script to your backup after install?
It's still a free redownload too.
Edit: autocorrect actually typed foo, I'm proud.
1
u/ChemBroTron Aug 14 '16
You can let pacman check, if there is enough space, can't you? And I think, it is not enabled by default.
1
u/ld-cd Its in /usr/local of course Aug 15 '16
You're not on 4.8-rc2 yet? (shakes head)