LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-20-2020, 06:50 AM   #1
karthik_holla
Member
 
Registered: Jul 2016
Location: India
Distribution: slackware-15.0
Posts: 73

Rep: Reputation: Disabled
upgrade to kernel 5.4.13 not working


Hello,
I upgraded my system to kernel-5.4.13 and after reboot the system hangs saying
" Loading kernel vmlinuz... Done "
I am using elilo and have copied the new vmlinuz file to /boot/efi/EFI/Slackware.
And tried mounting with a usb and running eliloconfig command too

Thanks
 
Old 01-20-2020, 07:21 AM   #2
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by karthik_holla View Post
I am using elilo and have copied the new vmlinuz file to /boot/efi/EFI/Slackware.
And did you generate a new initrd (initial ram disk) too and copied that to the EFI directory? The one there probably is still from your old kernel, so doesn't have the right modules to access your root disk/fs. The package only contains the kernel (and config, System.map) itself as the initrd is installation-dependant.
But it is required for the generic kernel, the huge one often can do without, if your hardware is reasonably standard (and the root fs is one of the ext? varieties).
 
Old 01-20-2020, 08:24 AM   #3
karthik_holla
Member
 
Registered: Jul 2016
Location: India
Distribution: slackware-15.0
Posts: 73

Original Poster
Rep: Reputation: Disabled
Thanks i forgot to do initrd.
Now i booted using a usb and created initrd using
" mkinitrd -c -k 5.4.13 -m ext4 -f ext4 -r /dev/sda4 "
It gave some errors like /proc/devices/ file not found and created the initrd.gz file.
I copied the file to efi folder too but still not working.
 
Old 01-20-2020, 08:41 AM   #4
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Quote:
Originally Posted by karthik_holla View Post
Thanks i forgot to do initrd.
Now i booted using a usb and created initrd using
" mkinitrd -c -k 5.4.13 -m ext4 -f ext4 -r /dev/sda4 "
It gave some errors like /proc/devices/ file not found and created the initrd.gz file.
I copied the file to efi folder too but still not working.
I guess that in addition to ext4 module, other are required for your system.

You can run (as root) the following command to get the recommended mkinitrd command line to run for your system.

Code:
$ /usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.4.13
--
SeB
 
Old 01-20-2020, 08:44 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by karthik_holla View Post
It gave some errors like /proc/devices/ file not found and created the initrd.gz file.
I copied the file to efi folder too but still not working.
When you boot from an external medium, be sure to (bind-) mount the relevant filesystems (not just your physical disk partitions but also /dev /proc and /sys) and do a chroot before you create the initrd.
Read https://docs.slackware.com/howtos:sl...oot_from_media for instance.
 
1 members found this post helpful.
Old 01-20-2020, 09:31 AM   #6
karthik_holla
Member
 
Registered: Jul 2016
Location: India
Distribution: slackware-15.0
Posts: 73

Original Poster
Rep: Reputation: Disabled
Thanks. This was my procedure but than too it hangs
Code:
 mount /dev/sda4 /mnt
        mount /dev/sda1 /mnt/boot/efi

mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys

chroot /mnt
Then
Code:
./usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.4.13
Then executed mkinitrd (this time without any errors) as suggested by the generator
Then i copied initrd.gz
 
Old 01-20-2020, 09:52 AM   #7
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,536

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Did you keep your old kernel around? You can boot with that, run mkinitrd with -k to the correct kernel, then copy the initrd.gz to /boot/efi/EFI/Slackware/. Or you can install the huge kernel when you're booted with USB, reboot, and fix your old one.
 
Old 01-20-2020, 11:13 AM   #8
karthik_holla
Member
 
Registered: Jul 2016
Location: India
Distribution: slackware-15.0
Posts: 73

Original Poster
Rep: Reputation: Disabled
Slackpkg upgrade will remove old kernel i guess.
 
Old 01-20-2020, 01:06 PM   #9
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by karthik_holla View Post
Slackpkg upgrade will remove old kernel i guess.
If you didn't blacklist that, yes.
But I do not know if slackpkg removes the ones in the EFI tree too, I never use it myself, I only selectively update from my own mirror, so all packages are available local.
 
Old 01-20-2020, 02:08 PM   #10
mumahendras3
Member
 
Registered: Feb 2018
Location: Indonesia
Distribution: Slackware-current + s6 + s6-rc + s6-linux-init (github.com/mumahendras3/sl6ckware)
Posts: 125

Rep: Reputation: Disabled
Quote:
Originally Posted by ehartman View Post
But I do not know if slackpkg removes the ones in the EFI tree too
No, it doesn't. slackpkg only removes those directly under /boot.

Last edited by mumahendras3; 01-20-2020 at 02:13 PM. Reason: For more clarity
 
Old 01-21-2020, 06:42 AM   #11
karthik_holla
Member
 
Registered: Jul 2016
Location: India
Distribution: slackware-15.0
Posts: 73

Original Poster
Rep: Reputation: Disabled
Any other way to recover my system ?
 
Old 01-21-2020, 07:35 AM   #12
mumahendras3
Member
 
Registered: Feb 2018
Location: Indonesia
Distribution: Slackware-current + s6 + s6-rc + s6-linux-init (github.com/mumahendras3/sl6ckware)
Posts: 125

Rep: Reputation: Disabled
You can try downgrading to older kernel. Download the older kernel here: https://slackware.uk/cumulative/slac...slackware64/a/

Last edited by mumahendras3; 01-21-2020 at 07:39 AM.
 
Old 01-21-2020, 07:41 AM   #13
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by karthik_holla View Post
Any other way to recover my system ?
What exactly is the status and the remaining issue now? Errors etc?
 
Old 01-21-2020, 07:49 AM   #14
karthik_holla
Member
 
Registered: Jul 2016
Location: India
Distribution: slackware-15.0
Posts: 73

Original Poster
Rep: Reputation: Disabled
It just says
Code:
 Loading kernel vmlinuz....done
And hangs
 
Old 01-21-2020, 07:55 AM   #15
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by karthik_holla View Post
It just says
Code:
 Loading kernel vmlinuz....done
And hangs
Did you copy that initrd file to the correct location on the EFI partition? And does your elilo.conf mention both the correct kernel name AND the correct initrd filename? I suspect not.
 
1 members found this post helpful.
  


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
apt-get upgrade does not upgrade my kernel halfpower Debian 5 12-11-2005 09:53 AM
Upgrade from working kernel-source-2.6.7-1 & -2 to kernel paniced -3 & -4 Outabux Debian 6 08-15-2004 01:36 PM
Sound not working after kernel upgrade krimson Linux - Software 14 07-09-2004 11:38 AM
ASUS CDRW not working after kernel upgrade to 2.6.7 Linner Fedora 3 06-24-2004 05:18 AM
MS Optical mouse not working after kernel upgrade ar1 Linux - Laptop and Netbook 3 05-30-2004 01:45 AM

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

All times are GMT -5. The time now is 01:01 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