[SOLVED] Kernel panic - not syncing: No working init found. Please help!
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,071
Original Poster
Rep:
Yes, I have a recent liveslak stick and can boot from that.
Tried to chroot into the faulty system, but:
bash-5.2# mount /dev/sda1 /mnt
bash-5.2# mount -o bind /dev /mnt/dev
bash-5.2# mount -o bind /proc /mnt/proc
bash-5.2# mount -o bind /sys /mnt/sys
bash-5.2# chroot /mnt /bin/bash
chroot: failed to run command ‘/bin/bash’: No such file or directory
Did you perform that upgrade using a repository for the wrong architecture? I.e. 32bit packages to replace the older 64bit packages. Try "file" command on a couple of binaries, assuming that the files are still there but just can't execute.
mount /dev/sda1 /mnt
mount --bind /dev /mnt/dev
mount --bind /tmp /mnt/tmp
mount --bind /run /mnt/run
mount -t proc proc /mnt/proc
mount -t sysfs none /mnt/sys
mount -t devpts -o noexec,nosuid,gid=tty,mode=0620 devpts /mnt/dev/pts
chroot /mnt /bin/bash
if fails try
Code:
exit
umount /mnt
fsck -f /dev/sda1
Last edited by rizitis; 11-04-2023 at 02:02 PM.
Reason: edit chroot command
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,071
Original Poster
Rep:
Hmm, when looking at the content of /lib and /lib64, it is as if they have been merged somehow... lots of stuff in /mnt/lib that on my USB stick resides in /lib64.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.