You are not logged in.

#1 2012-07-16 14:55:48

ninjaaron
Member
Registered: 2010-12-10
Posts: 296

[SOLVED] broke arch so bad (by deleting /lib) that I can't chroot.

So, I was doing this glibc update thing (which I did without a hitch on another system), and I had to go to the guide, and I guess I had stuff from kernel updates there.

Anyway, I got to the part where it said "you can safely remove /lib", and I removed it with rm -r.  Then everything started crashing, so I rebooted and got a kernel panic, and then I tried to chroot from ubuntu (which I have installed for cases like this), and I got the error that /bin/bash doesn't exist (which it does).

So, what now?

Last edited by ninjaaron (2012-07-16 17:40:59)

Offline

#2 2012-07-16 15:06:37

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: [SOLVED] broke arch so bad (by deleting /lib) that I can't chroot.

Boot a livecd, mount your partitions, and reinstall glibc.

pacman -r /path/to/mounted/root -S glibc

Also, please use the forum search. This has been covered many times already.

Last edited by Barrucadu (2012-07-16 15:06:54)

Offline

#3 2012-07-16 15:06:51

Psykorgasm
Member
Registered: 2011-11-24
Posts: 178

Re: [SOLVED] broke arch so bad (by deleting /lib) that I can't chroot.

ninjaaron wrote:

"you can safely remove /lib"

That's insane, I doubt the page ever said that (it certainly doesn't now).

Offline

#4 2012-07-16 15:07:44

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED] broke arch so bad (by deleting /lib) that I can't chroot.

If you want to fix it from ubuntu, go to your pacman cache and extract /lib from glibc......16.0-1......

Last edited by progandy (2012-07-16 15:08:20)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2012-07-16 15:08:45

Luminary
Member
Registered: 2012-02-15
Posts: 8

Re: [SOLVED] broke arch so bad (by deleting /lib) that I can't chroot.

Try this

chroot /yourdirectory /usr/lib/ld-2.16.so /bin/bash

or, as seen in the other guides add it to your grub boot line

init=/usr/lib/ld-2.16.so /bin/sh

followed by remounting root is writable.

Once I had finally booted, I deleted /lib, reinstalled linux and glibc, which got it somewhat working. I had to make a script to reinstall every package on my system to get everything working again, so that way probably isn't advisable.

Offline

#6 2012-07-16 15:17:45

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] broke arch so bad (by deleting /lib) that I can't chroot.

Psykorgasm wrote:
ninjaaron wrote:

"you can safely remove /lib"

That's insane, I doubt the page ever said that (it certainly doesn't now).

QFT !!

you were told to remove /lib/modules and that too only after verifying that the files were only owned by glibc and no other package. Don't blame the dev for your lack of reading !!


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2012-07-16 15:47:23

altbdoor
Member
From: KL, Malaysia
Registered: 2012-04-25
Posts: 128

Re: [SOLVED] broke arch so bad (by deleting /lib) that I can't chroot.

wiki wrote:

One common source of files in /lib is left overs from running depmod on a kernel update. For example:

error: No package owns /lib/modules/3.1.9-2-ARCH/modules.*

If no other files are in /lib/modules, you can safely remove that directory.

I think OP was confused with that directory in wiki, since previous line was about /lib. Then it focused on /lib/modules.

Offline

#8 2012-07-16 17:11:47

ninjaaron
Member
Registered: 2010-12-10
Posts: 296

Re: [SOLVED] broke arch so bad (by deleting /lib) that I can't chroot.

altbdoor wrote:

I think OP was confused with that directory in wiki, since previous line was about /lib. Then it focused on /lib/modules.

oh.  There it is.  Trying suggestions now.

Offline

#9 2012-07-16 17:38:57

ninjaaron
Member
Registered: 2010-12-10
Posts: 296

Re: [SOLVED] broke arch so bad (by deleting /lib) that I can't chroot.

Barrucadu wrote:

Boot a livecd, mount your partitions, and reinstall glibc.

pacman -r /path/to/mounted/root -S glibc

Also, please use the forum search. This has been covered many times already.

This one worked for me.  Thanks to all for your patience.

Offline

Board footer

Powered by FluxBB