You are not logged in.
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
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
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-2and
#grep '^lib' /var/lib/pacman/local/*/files
/var/lib/pacman/local/glibc-2.16.0-2/files:libwhich probably mean no issues with packages ownership?
Last edited by Fixed (2012-08-02 16:12:22)
XFCE4 under Arch on Honor MagicBook
Offline
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
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
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
I am trying to follow instructions :
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
Try chroot /mnt /bin/bash
Offline
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
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
Fixed wrote:Shaurz -- thanks for answering.
Same story:
#chroot /mnt /bin/bash
chroot: failed to run command /bin/bash: Exec format errorAre 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
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
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
Yes, /mnt/bin/bash exists.
I even tried to run chroot from /mnt/bin -- same story.
XFCE4 under Arch on Honor MagicBook
Offline
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