Hmm, apart from only seldomly having the urge of moving folders into /lib by hand, my guess is the rm -rf /lib; ln -s /usr/lib /lib has fixed it, right?
Yep that fixed it! More of a post-mortem; glad I didn't have to go ask for help in #archlinux and glad i didn't just go try to have a little fun with them might have had to issue another one with the box checked for "trying to be funny in IRC and getting banned" ;) I was trying to make native Steam work and it was complaining it couldn't find 32 bit libc.6 even though i had it, even downloaded ubuntu's 32 bit libc, I was just copying them one at a time into every lib search path and bin directory but no amount of fiddling would make it work next time I'll just reboot into Windows ;)
You're right that for the specific case of /lib it wouldn't have worked, that is, it would have been ambiguous no matter if directory or symlink to directory.
Make a separate partition if it's a new machine. If you have an efi partition from another os, it's better to use that. Look for something between 250 and 500MiB
I can't take credit for creating it but it certainly seemed apt for my [thankfully rather easily solved once i figured out what happened] conundrum! It was pretty hilarious the first time I read it since I've done so many of those fuckups myself, was only a matter of time until i did another one and then it got even funnier! 😆😆
Using reddit as /dev/null\, should start doing this ;)
5 points
unknown author
That would actually be pretty amusing, a driver that replaces the null device with a "create-Gist-and-forward-link" type of thing. I think the SNR would be rather more suited to Twitter's format though
blank pdf https://haavard.me/files/alfa.pdf and source code https://gist.github.com/haavard/56b8d522893e3c4bb9645c48444a5f5c all credit to the author not me, just saw it floating around somewhere in /archlinux a few weeks ago, got a pretty good laugh at the time and immediately thought of it when to my surprise Arch booted straight into emergency mode not for the first time 😆
but Arch is great i even run it on AWS. at least when something is broken it was usually my fault rather than some maintainer's!
I fucked up ArchLinux by accidentally overwriting the /lib -> /usr/lib symlink without realizing it by mv-ing something to /lib without adding the trailing slash, which would add it to /lib if it were a normal directory, but it's not it's a symlink and my mv may be aliased to mv -f which is bad but not unusual so it overwrote the symlink with what I was mv-ing.
So when I rebooted, the kernel panicked because it couldn't find its modules. I had no idea what was going on I was just getting prepared to [re-]flash my rescue drive, but after a bit of investigation trying to look at /lib to see why there were no modules there I realized my mistake, so all I had to do was rm -rf what was now a nearly empty /lib directory and restore the symlink.
Used to be that Linux had a separate /lib and /usr/lib and most of the individual binaries were symlinked, but at some point "the great /usr merge" happened and the whole /lib became a symlink. Which made it more in line with other Unix variants, but also enabled fuck ups such as this one so I blame systemd😆😆 (really just joking i actually like systemd overall it's not perfect but I always hated SysV init scripts with a passion and still do)
As for the form, well it's so easy to fuck up Arch Linux or any Linux really in such a wide variety of ways that some genius created the form for documenting your probably common fuckups and getting help in IRC 😆
That alone should take care of it. And your time too...!
Hum...now that I think about it, it does take care of a bunch of things...
life,
CPU time,
updates(now only twice a year!!!),
systemd,
...
1 points
unknown author
Ty for the silver! They say you never forget your first time.... Thanks to whoever created that form too laughed endlessly and couldn't help thinking of it when Arch booted into emergency mode seemingly entirely at random. Could have issued quite a few of these "incident reports"over the years..
48 comments
I enjoy the "Allan broke it" not being ticked! Progress is being made.
I put it down to you breaking the form...somehow.
Hmm, apart from only seldomly having the urge of moving folders into
/libby hand, my guess is therm -rf /lib; ln -s /usr/lib /libhas fixed it, right?Wouldn't rm -rf /lib remove /usr/lib as well as it's a symlink? I'd rather unlink /lib && ln -s /usr/lib /lib
Nope, because it isn't a symlink :)
Edit: Ok, I had to test at this point:
So... The whole thing is a scam!
Edit 2:
zsh(fwiw)-r means to remove recursively
-f means to hide warning messages
I'm not sure how to have
rmfollow symlinksYep that fixed it! More of a post-mortem; glad I didn't have to go ask for help in #archlinux and glad i didn't just go try to have a little fun with them might have had to issue another one with the box checked for "trying to be funny in IRC and getting banned" ;) I was trying to make native Steam work and it was complaining it couldn't find 32 bit libc.6 even though i had it, even downloaded ubuntu's 32 bit libc, I was just copying them one at a time into every lib search path and bin directory but no amount of fiddling would make it work next time I'll just reboot into Windows ;)
This form is fantastic.
"Tried installing Gentoo" lol
Also systemd
Number 1 as always
I'm considering it should be seriously put as archlinux.org frontpage
Hint, if you press tab and the autocomplete doesn't complete with the
/at the end, there's a good chance it's a file, and not a directory.If it is a symlink to a folder, you can press tab again and it will add the trailing
/That's true, but it could also be because there are multiple matches for that prefix (e.g.
/li<tab>->/liband/lib64)That's why I said "there's a good chance".
You're right that for the specific case of /lib it wouldn't have worked, that is, it would have been ambiguous no matter if directory or symlink to directory.
Yeah but I can type '/lib' one-handed! ;)
"Desire to install Ubuntu"
Deleted before we saved it.
Make a separate partition if it's a new machine. If you have an efi partition from another os, it's better to use that. Look for something between 250 and 500MiB
If it's a Windows partition please don't, as Windows will delete your grub efi files on updates
You should have a ~100mb fat32 efi partition at the start of the drive, mount that at /boot
Was it mounted on /boot or /efi as the wiki says? And did you ran the install with the UEFI params, like this:
I think that the default grub install script uses MBR boot mode, so you need the specific instructions if you want to use efi.
Is there a blank version of this form floating around? I didn't see it on a cursory google
Yes ! here is the blank pdf
https://haavard.me/files/alfa.pdf
And source code https://gist.github.com/haavard/56b8d522893e3c4bb9645c48444a5f5c
I can't take credit for creating it but it certainly seemed apt for my [thankfully rather easily solved once i figured out what happened] conundrum! It was pretty hilarious the first time I read it since I've done so many of those fuckups myself, was only a matter of time until i did another one and then it got even funnier! 😆😆
Here you go https://www.reddit.com/r/ProgrammerHumor/comments/6gsoto/archlinux_fuckup_assessment_form/
Using reddit as
/dev/null\, should start doing this ;)That would actually be pretty amusing, a driver that replaces the null device with a "create-Gist-and-forward-link" type of thing. I think the SNR would be rather more suited to Twitter's format though
That one hurt, a lot.
This form is way too funny.. I almost installed Gentoo while laughing at it.. 😂
Deleted before we saved it.
Patrick. Who's this?
Deleted before we saved it.
Where can I get a template for this form?
blank pdf https://haavard.me/files/alfa.pdf and source code https://gist.github.com/haavard/56b8d522893e3c4bb9645c48444a5f5c all credit to the author not me, just saw it floating around somewhere in /archlinux a few weeks ago, got a pretty good laugh at the time and immediately thought of it when to my surprise Arch booted straight into emergency mode not for the first time 😆
but Arch is great i even run it on AWS. at least when something is broken it was usually my fault rather than some maintainer's!
Thanks!
What is this?
I fucked up ArchLinux by accidentally overwriting the /lib -> /usr/lib symlink without realizing it by mv-ing something to /lib without adding the trailing slash, which would add it to /lib if it were a normal directory, but it's not it's a symlink and my mv may be aliased to mv -f which is bad but not unusual so it overwrote the symlink with what I was mv-ing.
So when I rebooted, the kernel panicked because it couldn't find its modules. I had no idea what was going on I was just getting prepared to [re-]flash my rescue drive, but after a bit of investigation trying to look at /lib to see why there were no modules there I realized my mistake, so all I had to do was rm -rf what was now a nearly empty /lib directory and restore the symlink.
Used to be that Linux had a separate /lib and /usr/lib and most of the individual binaries were symlinked, but at some point "the great /usr merge" happened and the whole /lib became a symlink. Which made it more in line with other Unix variants, but also enabled fuck ups such as this one so I blame systemd😆😆 (really just joking i actually like systemd overall it's not perfect but I always hated SysV init scripts with a passion and still do)
As for the form, well it's so easy to fuck up Arch Linux or any Linux really in such a wide variety of ways that some genius created the form for documenting your probably common fuckups and getting help in IRC 😆
Just as a side note, the /lib and /usr/lib split was actually sorta arbitrary, so it was usually still easier to just recover from a live CD anyway.
fun and interesting :)
Good to see Pyle is still around! I remember reading his blogs on an aggregator years back.
+1 for installing gentoo
That alone should take care of it. And your time too...! Hum...now that I think about it, it does take care of a bunch of things... life, CPU time, updates(now only twice a year!!!), systemd, ...
Ty for the silver! They say you never forget your first time.... Thanks to whoever created that form too laughed endlessly and couldn't help thinking of it when Arch booted into emergency mode seemingly entirely at random. Could have issued quite a few of these "incident reports"over the years..
lol, come to the dark side, runit rocks 😂
is this /r/linuxmasterrace now?
U WOT M8?