[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.
I do not mind using my Gparted disk and reformating /dev/sda1 (EF00 Partition) as long as that does not force me to
have to reformat or reload the /dev/sdb1 which is my root drive. That has a lot of data I really can't lose right
now as that has my virtual machine (Windows and CAD programs)...
At any rate, the efibootmgr reports Windows, however this machine has had no version of Windows since I purchased it
about two years ago and I thought removed all vestiages of Windows when I ran Gparted and reformated the drives and
loaded Slackware.
I can reformat the EF00 partition and I don't care if about old Windows 10 files that are/were there.
I have made a USB Stick with a folder and I created a new elilo.conf file, copied the elilo-x86_64.efi there and
renamed that elilo.efi, copied the initrd.gz there and also the vmlinuz-generic-5.15.80. Only file I believe I am
missing is the "vmlinuz" and not sure where to get that from. When I try to copy that from the /dev/sdb1/boot I
get error about sim link.
That is why I tried to create this (except for the vmlinuz file) on a usb stick
According to the output of mount and lsblk /boot/efi/EFI/Slackware is on /dev/sda1, because /dev/sda1 is mounted on /boot/efi. It's your /dev/sda1 partition that is corrupt.
But anyway, don't worry about the contents of /boot/efi/EFI/Slackware - everything there will be recreated when running eliloconfig. This is how the Slackware installer works, by the way. After installing all the packages it asks if you want to run eliloconfig to configure the boot loader. eliloconfig takes care of copying the required files to /boot/efi/EFI/Slackware and then registering the files with the UEFI boot manager on your computer.
vmlinuz-generic-5.15.80 is part of the kernel-generic-5.15.80-x86_64-1 package:
Code:
$ cat /var/lib/pkgtools/packages/kernel-generic-5.15.80-x86_64-1
PACKAGE NAME: kernel-generic-5.15.80-x86_64-1
COMPRESSED PACKAGE SIZE: 8.1M
UNCOMPRESSED PACKAGE SIZE: 13M
PACKAGE LOCATION: kernel-generic-5.15.80-x86_64-1.txz
PACKAGE DESCRIPTION:
kernel-generic: kernel-generic (a general purpose SMP Linux kernel)
kernel-generic:
kernel-generic: This is a Linux kernel with built-in support for most disk
kernel-generic: controllers. To use filesystems, or to load support for a SCSI or
kernel-generic: other controller, then you'll need to load one or more kernel
kernel-generic: modules using an initial ramdisk, or initrd. For more information
kernel-generic: about creating an initrd, see the README.initrd file in the /boot
kernel-generic: directory.
kernel-generic:
kernel-generic: SMP is "Symmetric multiprocessing", or multiple CPU/core support.
kernel-generic:
FILE LIST:
./
boot/
boot/System.map-generic-5.15.80
boot/config-generic-5.15.80.x64
boot/vmlinuz-generic-5.15.80
install/
install/doinst.sh
install/slack-desc
That package also creates the symlinks /boot/vmlinuz-generic and /boot/vmlinuz (as long as it is installed AFTER kernel-huge-5.15.80-x86_64-1 - both packages kernel-generic and kernel-huge create the symlink /boot/vmlinuz and clobber the preexisting one.).
If you created an initrd and it exists as /boot/initrd.gz then eliloconfig will take care of that, too. See this comment from /usr/sbin/eliloconfig:
Code:
# This script installs the elilo boot loader, the kernel, and optionally
# an initrd into the EFI System Partition. A boot menu entry can also be
# installed using efibootmgr. The kernel used will be whatever the symlink
# /boot/vmlinuz points to, and if /boot/initrd.gz exists, that will be
# installed as the initrd.
#
# The EFI System Partition is expected to be mounted on /boot/efi before
# running this script.
So, since you've confirmed that you don't care about the Windows EFI files, you can just follow the advice that's already been given:
Destroy and recreate /dev/sda1 as an EFI partition. Then mount it as /boot/efi. Then run eliloconfig. Then you should be good to go.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.