LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-04-2023, 12:32 PM   #1
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,071

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Kernel panic - not syncing: No working init found. Please help!


Don't know if something went wrong with latest -current upgrades or what, but when rebooting I run into kernel panic.

Don't know why boot process can't find a working init, /sbin/init is there.

Grateful for help to fix this without a complete reinstall, if possible.
 
Old 11-04-2023, 12:39 PM   #2
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 566

Rep: Reputation: Disabled
Can you reload into the previous kernel?
And a screenshot of the error if you could too.
 
Old 11-04-2023, 12:52 PM   #3
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 591

Rep: Reputation: Disabled
Here the new 6.1.61 generic kernel plus initrd works just fine.
 
Old 11-04-2023, 12:54 PM   #4
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,071

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
My lilo setup lets me choose between generic, huge, and previous kernel (6.1.60), but I get kernel panic for all 3. "Screenshot" (photo) attached.
Attached Thumbnails
Click image for larger version

Name:	IMG_20231104_184840_2.jpg
Views:	77
Size:	196.3 KB
ID:	41993  
 
Old 11-04-2023, 01:05 PM   #5
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 591

Rep: Reputation: Disabled
Do you have a Slackware Live USB stick lying around? Just to rule out a hardware failure?
 
1 members found this post helpful.
Old 11-04-2023, 01:09 PM   #6
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,071

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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
 
Old 11-04-2023, 01:19 PM   #7
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474
What does lsblk tell you? (Just to make sure /dev/sda1 is not on the usb stick now.)

Now that you mounted it to /mnt, if you cd /mnt and use ls -l, do you see the usual stuff there (bin, home etc) ?
 
Old 11-04-2023, 01:20 PM   #8
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 566

Rep: Reputation: Disabled
From the live usb, can you see the hdd and partitions on the HP Elitebook and list them?
 
Old 11-04-2023, 01:23 PM   #9
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 591

Rep: Reputation: Disabled
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.
 
Old 11-04-2023, 01:37 PM   #10
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,071

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Upgrades were from the proper repo (64bit)
 
Old 11-04-2023, 01:58 PM   #11
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 641

Rep: Reputation: 488Reputation: 488Reputation: 488Reputation: 488Reputation: 488
Code:
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
 
Old 11-04-2023, 02:01 PM   #12
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,071

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Petri Kaukasoina View Post
What does lsblk tell you? (Just to make sure /dev/sda1 is not on the usb stick now.)

Now that you mounted it to /mnt, if you cd /mnt and use ls -l, do you see the usual stuff there (bin, home etc) ?
/dev/sda1 is indeed the / partition of my SDD, so that's as it should be. And the outcone of cd /mnt + ls -l looks OK:
Code:
total 157
drwxr-xr-x   2 root root   4096 Nov  4 19:55 bin
drwxr-xr-x   4 root root   4096 Nov  3 07:18 boot
drwxr-xr-x  19 root root   5380 Nov  4 19:33 dev
drwxr-xr-x 132 root root  12288 Nov  4 19:31 etc
drwxr-xr-x   2 root root   4096 Jul 21  2021 home
drwxr-xr-x   2 root root   4096 Jul 27 23:10 install
drwxr-xr-x  12 root root  12288 Nov  4 12:35 lib
drwx------   2 root root  16384 Jul 21  2021 lost+found
drwxr-xr-x  16 root root   4096 Feb 17  2022 media
drwxr-xr-x  10 root root   4096 Jan 26  2023 mnt
drwxr-xr-x  17 root root   4096 Nov  2 04:02 opt
dr-xr-xr-x 260 root root      0 Nov  4 19:33 proc
drwx--x---  23 root root   4096 Nov  4 15:00 root
drwxr-xr-x   6 root root   4096 Jul 21  2021 run
drwxr-xr-x   2 root root  12288 Nov  4 06:59 sbin
drwxr-xr-x  10 root root   4096 Nov  4 19:19 sda1
drwxr-xr-x   2 root root   4096 Oct 19 18:52 srv
dr-xr-xr-x  12 root root      0 Nov  4 19:33 sys
drwxrwxrwt  17 root root   4096 Nov  4 16:32 tmp
drwxr-xr-x  19 root root   4096 Nov  4 05:32 usr
drwxr-xr-x  17 root root   4096 Nov  2 17:02 var
 
Old 11-04-2023, 02:05 PM   #13
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474
Quote:
Originally Posted by kgha View Post
Upgrades were from the proper repo (64bit)
Quote:
Originally Posted by kgha View Post
Code:
drwxr-xr-x  12 root root  12288 Nov  4 12:35 lib
There is something wrong here. You say it's 64bit, but you don't have /lib64 directory?
 
1 members found this post helpful.
Old 11-04-2023, 02:09 PM   #14
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,071

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Petri Kaukasoina View Post
There is something wrong here. You say it's 64bit, but you don't have /lib64 directory?
You're right, Petri - now how the hell could that directory disappear? And how can I replace it? Copy from my USB?
 
Old 11-04-2023, 02:17 PM   #15
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,071

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble installing Linux kernel version 5.14.12 - kernel panic not syncing no working init found try passing init psrksprasad Linux - Desktop 9 10-18-2021 05:23 AM
Kernel panic-not syncing:No init found. Try passing init=option to kernel cucolin@ Ubuntu 5 12-26-2008 06:44 AM
Kernel panic - not syncing: No init found. Try passing init= option to kernel. john_schimandle Linux - Embedded & Single-board computer 3 10-10-2008 09:09 AM
Kernel panic - not syncing: No init found. Try passing init= option to kernel. john_schimandle Linux - Newbie 4 10-09-2008 02:40 AM
Kernel panic - not syncing: No init found. Try passing init= option to kernel ranjithmrk Linux - Newbie 4 08-22-2008 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration