You are not logged in.

#1 2019-01-26 15:29:15

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,370

[SOLVED] /bin and /lib have gone

Since sysadmin is gone, here I am.

I haven't done anything special, except installed davinci video editor, using the PKGBUILD in AUR, but now /bin and /lib are missing from my system, resulting in a none-booting system

root device mounted successfully but /sbin/init does not exist

Now, I know that both are symlinks, but since I can't chroot in (/bin/bash not found) I need to find a way outside of the system to fix.

I've tried a variety of permutations of symlinking (using, I should say, a Mint live disk) but none get me out of this hole.

The contents of /usr/bin and /usr/lib are intact.

Where do I go from here?

Last edited by Roken (2019-01-26 16:58:16)


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#2 2019-01-26 15:48:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,674

Re: [SOLVED] /bin and /lib have gone

You can "chroot /mnt /usr/bin/bash" and in doubt use relative symlinks for the moment ("ln -s usr/bin /bin")

Online

#3 2019-01-26 15:49:32

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] /bin and /lib have gone

They're relative symlinks, anyway

Offline

#4 2019-01-26 15:50:26

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,370

Re: [SOLVED] /bin and /lib have gone

I tried that - same error re /usr/bin/bash - but /mnt/usr/bin/bash definitely exists


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#5 2019-01-26 15:59:33

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,599

Re: [SOLVED] /bin and /lib have gone

You can copy the symlinks from a working system 'cp --preserve=links'

Offline

#6 2019-01-26 16:57:56

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,370

Re: [SOLVED] /bin and /lib have gone

@qinohe - not what I did, but led me to a "Doh!" moment. My laptop also runs Arch, so why not just look at exactly where the symlinks go and recreate them. All up and running again. Thank you guys.

I had a hairy moment where I couldn't get into the desktop, although I could get into a terminal (so not a permissions issue). Anyhoo, in my 3 hours of trying to fix it, I'd backed up fstab to avoid mounting stray drives, and forgot that I did it. Restored it and the world is good again.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#7 2019-01-27 02:34:08

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] /bin and /lib have gone

Did you ever figure out what caused the issue though? You said the only thing you did was install some AUR package -- if that managed to delete /bin and /lib then I'd suspect some highly inappropriate post_install scriptlet. Which package is this exactly? If it is doing something that can damage users' systems we should know about it and fix it...


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#8 2019-01-27 07:42:21

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,370

Re: [SOLVED] /bin and /lib have gone

I honestly don't know. The package installed was davinci resolve. The PKGBUILD looks for the zip in ~/ (which has to be downloaded separately). But I don't suspect that PKGBUILD. I can't check, since it's just been updated, so even if it was that, it's been fixed.

It certainly wasn't user error (I don't make a habit of deleting system links), but since I'd also, earlier, had several updates, it could be any, or none. It may just be an aberration.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

Board footer

Powered by FluxBB