[SOLVED] Slackware64-15.0 with Kernel 5.15.80 will not boot
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.
Slackware64-15.0 with Kernel 5.15.80 will not boot
I have an HP 17-CA3035CL, Ryzen 5 4500U with 12GB Ram where /dev/sda1 is
the EFI boot partition and sdb1 is the root drive. I just upgraded to the
5.15.80 kernel (generic).
Now I can't reboot with out an HP error stating there is no OS.
I can boot with the Slackware64 DVD and have it detect the OS and come up
however when I go to check the elilo.conf file in /boot/efi/EFI/Slackware
I get read errors if using vim and input/output errors if using nano.
I have tried re-running eliloconfig and mkinitrd as well as manually making
the elilo.conf and copying that to both /boot/efi/EFI/Slackware and also
to /sda1/EFI/Slackware.
I am not sure what to do to get this fixed but I would rather not copy all of my files to an external drive and then reload the whole system.
Do you have both your new kernel and its initrd copied to the EFI system partition? And does elilo.conf reference these copies? AFAIK elilo can't read ext4 filesystems.
I have the EFI partition (Fat32) on /dev/sda1 and it is 256Mb.
This is really weird as I can create the file "elilo.conf" and copy it to both the /dev/sda1 (/EFI/Slackware)
and also to /dev/sdb1 (root) under /boot/efi/EFI/Slackware. When I first copy either file to either location I can
open the file with Kate, nano, or vim. If I reboot (using the Slackware64 DVD so I can get to the OS), I can no
longer open those files (vim = read error, nano = input/output error).
I did the usual when I upgraded, modified /boot/efi/EFI/Slackware by adding "image=kernel-generic-5.15.80" to the
elilo.conf and copying the file "vmlinuz-generic-5.15.80" to that directory.
Did same for the /drv/sda1 /EFI/Slackware.
Then I ran the "mkinitrd -c -k 5.15.80 -m ext 4" and then ran eliloconfig
Noramlly this work just fine but today it did not work so well.
I can only use the DVD of Slackware current to boot up and it detects the Linux kernel-generic-5.15.80 and I can run
after that but not the best solution.
I have the EFI partition (Fat32) on /dev/sda1 and it is 256Mb.
This is really weird as I can create the file "elilo.conf" and copy it to both the /dev/sda1 (/EFI/Slackware)
and also to /dev/sdb1 (root) under /boot/efi/EFI/Slackware. When I first copy either file to either location I can
open the file with Kate, nano, or vim. If I reboot (using the Slackware64 DVD so I can get to the OS), I can no
longer open those files (vim = read error, nano = input/output error).
I did the usual when I upgraded, modified /boot/efi/EFI/Slackware by adding "image=kernel-generic-5.15.80" to the
elilo.conf and copying the file "vmlinuz-generic-5.15.80" to that directory.
Did same for the /drv/sda1 /EFI/Slackware.
Then I ran the "mkinitrd -c -k 5.15.80 -m ext 4" and then ran eliloconfig
Noramlly this work just fine but today it did not work so well.
I can only use the DVD of Slackware current to boot up and it detects the Linux kernel-generic-5.15.80 and I can run
after that but not the best solution.
marav - yes that should have said "image=vmlinuz-generic-5.15.80"
I follow the normal recommendations for upgrading and it states to run eliloconfig which I do after each upgrade.
Not sure it helps, but the HP system comes up with the following:
"Boot Device not Found
Please Install an operating system on your hard disk.
Hard disk - (3F0) "
I did go to the recommended HP link but that was not really any help as there have been no BIOS changes on this laptop.
kjh - I have not tried the chroot, but I did use the DVD and get into the system. I also followed your link and
read about your Windows 11 experience..
marav - yes that should have said "image=vmlinuz-generic-5.15.80"
I follow the normal recommendations for upgrading and it states to run eliloconfig which I do after each upgrade.
Not sure it helps, but the HP system comes up with the following:
"Boot Device not Found
Please Install an operating system on your hard disk.
Hard disk - (3F0) "
I did go to the recommended HP link but that was not really any help as there have been no BIOS changes on this laptop.
kjh - I have not tried the chroot, but I did use the DVD and get into the system. I also followed your link and
read about your Windows 11 experience..
Thanks again for the ideas.
Also, It would be great to have your complete elilo.conf
When I first copy either file to either location I can open the file with Kate, nano, or vim. If I reboot (using the Slackware64 DVD so I can get to the OS), I can no
longer open those files (vim = read error, nano = input/output error).
Do you notice any difference in the output of a command like:
Code:
df /either/location/either_file
...depending on if the command is run after a successful copy or after a reboot which gives io errors?
Also, it might be interesting to study the output of:
Below I mounted the EFI partition /dev/sda1 as /mnt/drv_a1 and tried to use nano and received the Input/Output Error
and after that I unmounted the /mnt/drv_a1 and tried to run nano on the /boot/efi/EFI/Slackware/elilo.conf file.
===================
bash-5.1# pwd
/mnt/drv_a1/EFI/Slackware
bash-5.1# nano elilo.conf
bash-5.1# dmesg | tail
sda1: rw=0, want=460292, limit=327680
[ 656.107756] attempt to access beyond end of device
sda1: rw=0, want=444595, limit=327680
[ 656.109321] attempt to access beyond end of device
sda1: rw=0, want=459818, limit=327680
[ 656.109855] attempt to access beyond end of device
sda1: rw=0, want=459826, limit=327680
[ 674.148874] handle_bad_sector: 18 callbacks suppressed
[ 674.148882] attempt to access beyond end of device
sda1: rw=0, want=459818, limit=327680
bash-5.1#
bash-5.1# umount /mnt/drv_a1
bash-5.1# df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 32M 1.6M 31M 5% /run
devtmpfs 8.0M 0 8.0M 0% /dev
/dev/sdb1 916G 88G 783G 11% /
tmpfs 5.6G 12M 5.6G 1% /dev/shm
cgroup_root 8.0M 0 8.0M 0% /sys/fs/cgroup
/dev/sda3 228G 71G 146G 33% /drv_a3
/dev/sda1 256M 24M 233M 10% /boot/efi
tmpfs 1.2G 16K 1.2G 1% /run/user/0
bash-5.1# cd ..
bash-5.1# cd ..
bash-5.1# pwd
/
bash-5.1# cd boot
bash-5.1# cd efi
bash-5.1# cd EFI
bash-5.1# cd Slackware
bash-5.1# ls -al
total 24511
drwxr-xr-x 2 root root 512 Nov 30 12:56 .
drwxr-xr-x 3 root root 512 Jun 1 2021 ..
-rwxr-xr-x 1 root root 160 Nov 30 11:46 elilo.conf
-rwxr-xr-x 1 root root 238531 Jun 12 2018 elilo.efi
-rwxr-xr-x 1 root root 9320771 Nov 30 11:46 initrd.gz
-rwxr-xr-x 1 root root 7768960 Nov 27 14:58 vmlinuz
-rwxr-xr-x 1 root root 7768960 Nov 27 14:58 vmlinuz-generic-5.15.80
bash-5.1# nano elilo.conf
bash-5.1# dmesg | tail
[ 738.024857] attempt to access beyond end of device
sda1: rw=0, want=459818, limit=327680
[ 738.030749] attempt to access beyond end of device
sda1: rw=0, want=459826, limit=327680
[ 738.031871] attempt to access beyond end of device
sda1: rw=0, want=460292, limit=327680
[ 738.034008] attempt to access beyond end of device
sda1: rw=0, want=444595, limit=327680
[ 814.124089] attempt to access beyond end of device
sda1: rw=0, want=459818, limit=327680
======================
Not sure what this is trying to tell me.
At any rate, I am not sure what you meant by "df /either/location/either_file as right now it does not seem to give
me any data.
Below I mounted the EFI partition /dev/sda1 as /mnt/drv_a1 and tried to use nano and received the Input/Output Error
and after that I unmounted the /mnt/drv_a1 and tried to run nano on the /boot/efi/EFI/Slackware/elilo.conf file.
Wait, are you saying you have 2 different elilo.conf files on two different partitions? That should not be the case. Or at least your computer is going to ignore the one that is not on the EFI partition. Here is part of my partition layout (I removed parts that aren't important):
Code:
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 1.8T 0 disk
├─nvme0n1p1 259:1 0 1010M 0 part /boot/efi
├─nvme0n1p4 259:4 0 4G 0 part
│ └─cryptswap 253:1 0 4G 0 crypt [SWAP]
└─nvme0n1p5 259:5 0 1.5T 0 part
└─luksnvme0n1p5 253:0 0 1.5T 0 crypt /
$ mount
/dev/mapper/luksnvme0n1p5 on / type ext4 (rw,relatime,discard)
/dev/nvme0n1p1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro,discard)
# efibootmgr
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0004,0001,0002,0003,0009,0006,000A,000B,000C,0005
Boot0000* Slackware HD(1,GPT,09057e57-e592-455e-9a1f-c73300bb7876,0x1000,0xf8fff)/File(\EFI\SLACKWARE\ELILO.EFI)
MirrorStatus: Platform does not support address range mirror
DesiredMirroredPercentageAbove4G: 0.00
DesiredMirrorMemoryBelow4GB: false
# ls -l /dev/disk/by-partuuid/09057e57-e592-455e-9a1f-c73300bb7876
lrwxrwxrwx 1 root root 15 Nov 29 11:32 /dev/disk/by-partuuid/09057e57-e592-455e-9a1f-c73300bb7876 -> ../../nvme0n1p1
Notice how efibootmgr reports that it is using the disk with partition uuid 09057... which by examining /dev/disk/by-partuuid is nvme0n1p1. Then by looking at the output of lsblk you can see I have that mounted as /boot/efi. So my elilo.conf file is /boot/efi/EFI/Slackware/elilo.conf:
Code:
# ls -l /boot/efi/EFI/Slackware/elilo.conf
-rwxr-xr-x 1 root root 3722 Nov 30 07:57 /boot/efi/EFI/Slackware/elilo.conf*
I think you're getting confused because you have a file /boot/efi/EFI/Slackware/elilo.conf which is physically on your root (/) partition. This file means nothing to your boot loader. Before copying files to your EFI partition and modifying elilo.conf you should make sure your EFI partition is mounted at /boot/efi. Can you run all the commands I ran above and post the (non-trimmed) output?
Here's an idea that you can either use full-time or just for testing and then go back (after gaining insight) if you want. Install "rEFInd" (or Grub2 if you are more familiar with it... personally I find Grub2 overly complex for a largely simple process, but it does work) which will find all kernels and elilo.conf files and let you try them. This way you can eliminate any confusing conflicts as well as find out what works and why. My main system has at least 2 dozen bootable kernels and rEFInd made organizing and troubleshooting that mess more than merely manageable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.