You are not logged in.

#1 2012-08-02 13:14:38

Fixed
Member
Registered: 2005-08-09
Posts: 219

Kernel panic after recent upgrade (in relation with recent /lib issue)

1. I was stupid enough to do Pacman -Syu without reading news about replacing /lib with simlink /usr/lib

2. I followed all the procedures from https://wiki.archlinux.org/index.php/De … iki:usrlib, but still had /lib incompatibility issues.

3. I started to remove the files from /lib beginning with rm ld* and that started to crash my system.

4. Then I followed the advice from https://bbs.archlinux.org/viewtopic.php … 1#p1127251 and was able to create  symlink by ln -s usr/lib lib
, direcory /lib is absent now

5. I was able to connect to wired internet and update the system by pacman -Syu

6. Now I am not able to reboot and have kernel panic: switch_root: failed to execute /sbin/iinit: no such file or directory

Is there any possibility to revive the system without re-installing it from the scratch?


XFCE4 under Arch on Honor MagicBook

Offline

#2 2012-08-02 13:22:55

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

Re: Kernel panic after recent upgrade (in relation with recent /lib issue)

Boot a livecd. Fix your packages.

How to do that is covered many times in here: https://bbs.archlinux.org/viewtopic.php?id=145006.

Offline

#3 2012-08-02 14:09:11

Fixed
Member
Registered: 2005-08-09
Posts: 219

Re: Kernel panic after recent upgrade (in relation with recent /lib issue)

Barrucadu --

I rebooted to livecd.

Following your link (post by Zamboniman's), I get:

# find /lib -exec pacman  -Qo -- {} +
warning: database file for 'core does not exist
warning: database file for 'extra' does not exist
warning: database file for 'community' does not exist
/lib is owned by glibc 2.16.0-2

and

#grep '^lib' /var/lib/pacman/local/*/files
/var/lib/pacman/local/glibc-2.16.0-2/files:lib

which probably mean no issues with packages ownership?

Last edited by Fixed (2012-08-02 16:12:22)


XFCE4 under Arch on Honor MagicBook

Offline

#4 2012-08-02 17:30:26

Palace
Member
Registered: 2012-08-01
Posts: 5

Re: Kernel panic after recent upgrade (in relation with recent /lib issue)

Dude I have the exact same issue as you! I sid -Syu and then in a misunderstanding of the wiki (as I was still having trouble with /lib) I did sudo mv files from /lib to /usr/lib and that gave me the exact same kernel panic crash that you got! How are you doing with that? I will need to do the liveCD thing.....this suuuucks.

Offline

#5 2012-08-02 19:53:45

Fixed
Member
Registered: 2005-08-09
Posts: 219

Re: Kernel panic after recent upgrade (in relation with recent /lib issue)

Palace --

I am stuck with the issue. I followed by the word every recovery plan I found in the discussions, but did not manage to succeed. Spent the whole day trying to recover the issue.

Just attached external HD and saved my work files from under liveCD.

Still did not decide if I'll erase the distribution and load it from the scratch, or will try to recover it.

Regular update of the system should not crash the system to the unrecoverable conditions, shouldn't it?


XFCE4 under Arch on Honor MagicBook

Offline

#6 2012-08-03 05:56:59

paulbarbee
Member
Registered: 2010-08-20
Posts: 49

Re: Kernel panic after recent upgrade (in relation with recent /lib issue)

The reason you are having kernel panics is that your kernel expects certain files in /lib. What I did was to copy the files over to /lib (recreate the directory if you have to) using a live CD verify that all files were also in /usr/lib. I remember that in the end I did use --force, although I could have just unpacked the glibc-2.16.0-1-<arch>.pkg.tar.xz file and copied the files to their respective locations. These 2 posts mentioned in the DeveloperWiki article may help you. https://bbs.archlinux.org/viewtopic.php … 7#p1126667 and https://bbs.archlinux.org/viewtopic.php … 1#p1127251 The actual article, if you don't have access to it is https://wiki.archlinux.org/index.php/De … iki:usrlib

Offline

#7 2012-08-06 09:18:27

Fixed
Member
Registered: 2005-08-09
Posts: 219

Re: Kernel panic after recent upgrade (in relation with recent /lib issue)

I am trying to follow instructions :

Shaurz wrote:

If anyone else had the boot problem where it times out looking for the root fs, this is how I fixed it.
Boot a Live CD/USB image, chroot:
mount /dev/sda3 /mnt
mount -o bind /dev /mnt/dev
mount -t proc /proc /mnt/proc
mount -t sysfs /sys /mnt/sys
chroot /mnt bash
Then force a kernel update
pacman -Syy
pacman -S linux
For good measure I also re-installed glibc. Note: I did all this AFTER fixing /lib to be a symlink.

Everything works until chroot /mnt bash command:

#chroot: failed to run command bash: Exec format error

Any thoughts?


XFCE4 under Arch on Honor MagicBook

Offline

#8 2012-08-06 09:35:09

shaurz
Member
Registered: 2004-02-02
Posts: 360

Re: Kernel panic after recent upgrade (in relation with recent /lib issue)

Try chroot /mnt /bin/bash

Offline

#9 2012-08-06 09:53:55

Fixed
Member
Registered: 2005-08-09
Posts: 219

Re: Kernel panic after recent upgrade (in relation with recent /lib issue)

Shaurz -- thanks for answering.

Same story:

#chroot /mnt /bin/bash
chroot: failed to run command /bin/bash: Exec format error

Last edited by Fixed (2012-08-06 09:54:22)


XFCE4 under Arch on Honor MagicBook

Offline

#10 2012-08-06 11:38:40

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Kernel panic after recent upgrade (in relation with recent /lib issue)

Fixed wrote:

Shaurz -- thanks for answering.

Same story:

#chroot /mnt /bin/bash
chroot: failed to run command /bin/bash: Exec format error

Are the architectures the same? That is you are not trying to chroot to a 64-bit system from a 32-bit live CD or vice versa.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#11 2012-08-06 12:09:48

Fixed
Member
Registered: 2005-08-09
Posts: 219

Re: Kernel panic after recent upgrade (in relation with recent /lib issue)

loafer wrote:
Fixed wrote:

Shaurz -- thanks for answering.

Same story:

#chroot /mnt /bin/bash
chroot: failed to run command /bin/bash: Exec format error

Are the architectures the same? That is you are not trying to chroot to a 64-bit system from a 32-bit live CD or vice versa.

The ArchISO CD is 686 and operating system is too.

#uname -m
i686


XFCE4 under Arch on Honor MagicBook

Offline

#12 2012-08-06 15:57:45

Fixed
Member
Registered: 2005-08-09
Posts: 219

Re: Kernel panic after recent upgrade (in relation with recent /lib issue)

Oh, sorry. It's x86_64 in fact. Loaded Live CD to x86_64.

But still have the error:

#chroot /mnt /bin/bash
chroot: failed to ran command bash: No such file or directory


XFCE4 under Arch on Honor MagicBook

Offline

#13 2012-08-06 16:08:28

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Kernel panic after recent upgrade (in relation with recent /lib issue)

Fixed wrote:

Oh, sorry. It's x86_64 in fact. Loaded Live CD to x86_64.

But still have the error:

#chroot /mnt /bin/bash
chroot: failed to ran command bash: No such file or directory

Now you have a different error.  Does /mnt/bin/bash exist?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#14 2012-08-06 16:10:29

Fixed
Member
Registered: 2005-08-09
Posts: 219

Re: Kernel panic after recent upgrade (in relation with recent /lib issue)

Yes, /mnt/bin/bash exists.

I even tried to run chroot from /mnt/bin -- same story.


XFCE4 under Arch on Honor MagicBook

Offline

#15 2012-08-06 20:49:14

Fixed
Member
Registered: 2005-08-09
Posts: 219

Re: Kernel panic after recent upgrade (in relation with recent /lib issue)

I was able to chroot using https://bbs.archlinux.org/viewtopic.php … 9#p1126729

Now I am able to boot the system in a regular ways into the shell. It's in trashed conditions though -- no X and net connection.

Thanks everyone.


XFCE4 under Arch on Honor MagicBook

Offline

Board footer

Powered by FluxBB