Skip to content

48 comments

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?

78 points

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

19 points

Nope, because it isn't a symlink :)

Edit: Ok, I had to test at this point:

➜  mkdir usrlib move
➜  ln -s usrlib lib
➜  mv move lib 
➜  ls -la
lrwxrwxrwx  1 spheenik spheenik   6 Jul 15 12:27 lib -> usrlib
drwxr-xr-x  3 spheenik spheenik  60 Jul 15 12:28 usrlib
➜  cd lib
➜  ls -la
drwxr-xr-x 2 spheenik spheenik 40 Jul 15 12:27 move

So... The whole thing is a scam!

Edit 2: zsh (fwiw)

16 points
$ mkdir a
$ mkdir a/b
$ ln -s a/b c
$ ls -l
a
c -> a/b
$ rm -f c
$ find .
.
./a
./a/b

-r means to remove recursively
-f means to hide warning messages
I'm not sure how to have rm follow symlinks

9 points
unknown author

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 ;)

5 points

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 /

24 points

That's true, but it could also be because there are multiple matches for that prefix (e.g. /li<tab> -> /lib and /lib64)

9 points

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.

3 points
unknown author

Yeah but I can type '/lib' one-handed! ;)

2 points
unknown author5 hidden

Deleted before we saved it.

12 points

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

10 points

You should have a ~100mb fat32 efi partition at the start of the drive, mount that at /boot

2 points

Was it mounted on /boot or /efi as the wiki says? And did you ran the install with the UEFI params, like this:

grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB

I think that the default grub install script uses MBR boot mode, so you need the specific instructions if you want to use efi.

1 points

Is there a blank version of this form floating around? I didn't see it on a cursory google

8 points
unknown author

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! 😆😆

20 points

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

4 points

This form is way too funny.. I almost installed Gentoo while laughing at it.. 😂

4 points

Where can I get a template for this form?

2 points
unknown author1 hidden

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!

2 points

What is this?

1 points
unknown author2 hidden

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 😆

4 points

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.

2 points

Good to see Pyle is still around! I remember reading his blogs on an aggregator years back.

1 points

+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, ...

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..

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.