LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-27-2023, 04:59 AM   #1
jazzi
Member
 
Registered: Mar 2006
Location: Tea Garden
Distribution: Slackware 15.0
Posts: 31

Rep: Reputation: 3
Startx failed after system upgrade - Elilo hits the wrong kernel


My OS is Slackware 15.0, after `slackpkg upgrade-all`, new kernel 5.15.94 is installed though the the kernel version booted is still 5.15.19.

So I think the problem of Startx failing is about the Elilo configuration, so I run `eliloconfig` and it shows the following error:

Quote:
EERROR: No EFI System Partition mounted on /boot/efi
But here is the /etc/fstab file

Code:
/dev/nvme0n1p3   swap    swap    defaults    0    0
/dev/nvme0n1p2   /            ext4      defaults    1     1
/dev/nvme0n1p4   /home   ext4      defaults    1     2
/dev/nvme0n1p1    /boot/efi    vfat   defaults    1    0
So I run `mount /boot/efi`

Quote:
mount: /boot/efi: unknown filesystem type 'vfat'.
And the whole /boot/efi/EFI directory is missing.

Last edited by jazzi; 04-28-2023 at 10:50 PM.
 
Old 04-27-2023, 05:04 AM   #2
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,409

Rep: Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142
What does :

Code:
# fdisk -l
give ?

and
Code:
# fsck.vfat -vat /dev/nvme0n1p1
 
Old 04-27-2023, 05:14 AM   #3
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,854

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Quote:
Originally Posted by jazzi View Post
My OS is Slackware 15.0, after `slackpkg upgrade-all`, new kernel 5.15.94 is installed though the the kernel version booted is still 5.15.19.

So I think the problem of Startx failing is about the Elilo configuration, so I run `eliloconfig`...
You should have run that eliloconfig before reboot. Now you run 5.15.19 but don't have modules for it any longer. You would still need the vfat module to mount the efi partition. You could, for example, reinstall the original kernel-modules-5.15.19-x86_64-2.txz and try again after that.
 
1 members found this post helpful.
Old 04-27-2023, 05:24 AM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
The most likely problem is the kernel in the Slackware directory on the efi partition is the old generic kernel and the modules required to mount a vfat filesystem for said kernel no longer exist in /lib/modules.

Is there another linux system and/or usb you can boot from so you can copy the new generic kernel to the efi partition and name it the same as in the elilo. conf

Last edited by colorpurple21859; 04-27-2023 at 05:45 AM.
 
Old 04-27-2023, 05:24 AM   #5
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,409

Rep: Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142
When I was using Elilo, after each kernel updates, I just :
Code:
# mount /boot/efi
# cp /boot/{vmlinux,vmlinuz-generic} /boot/efi/EFI/Slackware/
I have huge+generic in my elilo.conf

and the freshly generated initrd
Code:
# cp /boot/initrd.gz /boot/efi/EFI/Slackware/
I never used eliloconfig in that case

But, don't worry, we will soon switch to grub by default and all of these "after-kernel-updates-boot-failures" will disappear

Last edited by marav; 04-27-2023 at 05:29 AM.
 
2 members found this post helpful.
Old 04-27-2023, 05:27 AM   #6
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
Quote:
Originally Posted by jazzi View Post
My OS is Slackware 15.0, after `slackpkg upgrade-all`, new kernel 5.15.94 is installed though the the kernel version booted is still 5.15.19.

So I think the problem of Startx failing is about the Elilo configuration, so I run `eliloconfig` and it shows the following error:



But here is the /etc/fstab file

Code:
/dev/nvme0n1p3   swap    swap    defaults    0    0
/dev/nvme0n1p2   /            ext4      defaults    1     1
/dev/nvme0n1p4   /home   ext4      defaults    1     2
/dev/nvme0n1p1    /boot/efi    vfat   defaults    1    0
So I run `mount /boot/efi`



And the whole /boot/efi/EFI directory is missing.
Let's see the bright side: you are lucky that you do NOT used a HUGE kernel, because in this case you will have got a glorious kernel panic and you will have been fully locked away from your computer.

So, you boot the old kernel, BUT without modules, because they was removed when you "upgraded" the kernels like a boss. That's WHY you can't mount your ESP partition.

The solution for your problem is to put back manually the kernel modules matching your kernel version, then to repair you system. How with no modules you have certainly also no internet, I suggest you to create (for booting from) an USB dongle with LiveSlak in a working computer:

https://download.liveslak.org/

Then, you can find the needed old kernel modules package there:

https://slackware.uk/cumulative/

And for future, to avoid nasty situations like this, I will strongly recommend you to use a modern bootloader like is the GRUB2, instead of obsolete and ridiculous old technologies like is ELILO. Heck, it was abandoned 9 (NINE!) years ago by its creator, and yet you entrust your system boot to it.

Last edited by LuckyCyborg; 04-27-2023 at 07:12 AM.
 
1 members found this post helpful.
Old 04-27-2023, 05:51 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,651
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Quote:
Originally Posted by LuckyCyborg View Post
And in the future, to avoid nasty situations like this, I strongly recommend you to use a modern bootloader like GRUB2, instead of obsolete and ridiculous old technologies like ELILO. Heck, it was abandoned 9 (NINE!) years ago by its creator, and yet you entrust your system boot to it.
Elilo is a nice little program and simple in its structure, unlike GRUB! I've been using it for years without problems. What caused the problem here is that the kernel and its modules were upgraded, which naturally removed the older versions. This procedure puts you in a vulnerable position no matter what bootloader you use. For example, if the new kernel won't run properly on your system (and this did once happen to me because of a bug in the acpi firmware on my previous machine), you are stuck.

The safe way to update a kernel is to install the new versions of the two packages alongside the old ones. Then, if you can't boot the new kernel, you can boot the old one instead and fix your problem. I only remove the old kernel and modules when I know the new ones work.

Last edited by hazel; 04-27-2023 at 05:54 AM.
 
1 members found this post helpful.
Old 04-27-2023, 06:02 AM   #8
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
Quote:
Originally Posted by hazel View Post
Elilo is a nice little program and simple in its structure, unlike GRUB!
Yeah, also Slackware long time ago had a size of 100MB for a full install...

Today, it have a whooping 16GB (or more?) for a full install - and who cares?

Anyway, the biggest issue of ELILO is that it requires to copy around files (to the ESP partition). With all respect, I believe that's a ridiculous requirement for the year of 2023. And so many people has been bitten by those "copy around" plays.

Mrs. Hazel, as a wise Lady as you are, you know well that the humans are quite bad at the mechanical repetitive tasks and they DO mistakes. In the end, that's why we use computers instead of doing complex maths in mind.

Last edited by LuckyCyborg; 04-27-2023 at 06:06 AM.
 
2 members found this post helpful.
Old 04-27-2023, 06:16 AM   #9
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 676
Blog Entries: 1

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
i have this non-profensional script
installed in my system and this entry in my /etc/rc.d/rc.6
Code:
# slackup-grub
if [ -x /etc/rc.d/slackup-grub.sh ]; then
   /etc/rc.d/slackup-grub.sh
fi
with a small modification script can support eliloconfig also...
So when slackpkg upgrade-all upgrading kernel and user by mistake or other reason forgot to upgrade bootloader, before reboot or shutdown script will do it. For grub I know its working 100%...

edit: only requirement is that the first time user must run script manually ones after installation to create some "database".

Last edited by rizitis; 04-27-2023 at 06:19 AM.
 
Old 04-27-2023, 06:33 AM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,065

Rep: Reputation: Disabled
Only may be considered a Real Slacker who has been unable to boot Slackware after a kernel upgrade at least once.

Last edited by Didier Spaier; 04-27-2023 at 10:53 AM.
 
3 members found this post helpful.
Old 04-27-2023, 06:34 AM   #11
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
Quote:
Originally Posted by rizitis View Post
i have this non-profensional script
installed in my system and this entry in my /etc/rc.d/rc.6
Code:
# slackup-grub
if [ -x /etc/rc.d/slackup-grub.sh ]; then
   /etc/rc.d/slackup-grub.sh
fi
with a small modification script can support eliloconfig also...
So when slackpkg upgrade-all upgrading kernel and user by mistake or other reason forgot to upgrade bootloader, before reboot or shutdown script will do it. For grub I know its working 100%...

edit: only requirement is that the first time user must run script manually ones after installation to create some "database".
I have a better idea:

how about Slackware to stop playing with things as alive like Tutankhamen, and to push to users a modern bootloader? How about to make a proper management of kernel packages and mark and make them capable only of install/remove but NEVER upgrade? How about to make proper kernel packages who calls update-grub on install and removal?

IF myself, a geologist who earn his money looking after rocks I am capable to do this (and yes, I have already made a design like this), permit me to have a full faith that our BDFL, who's a software engineer by education and entire life work, will solve those things in an evening.

Last edited by LuckyCyborg; 04-27-2023 at 06:40 AM.
 
Old 04-27-2023, 06:39 AM   #12
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
Quote:
Originally Posted by Didier Spaier View Post
Only may be considered a Real Slacker who has be unable to boot Slackware after a kernel upgrade at least once.
Because it's a nuisance specific to Slackware - all other major Linux distributions solved the "proper upgrading" of kernels over 20 years ago.

Do you know what the people say about Slackware? That's Schrödinger's Linux, which may or may not boot, in the same time.

Or that: with Slackware you can do all what you can do with any other Linux distro, only that you should use one thousand times more complicated way.

Last edited by LuckyCyborg; 04-27-2023 at 06:52 AM.
 
1 members found this post helpful.
Old 04-27-2023, 07:03 AM   #13
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,854

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
I think the problem is that http://docs.slackware.com/slackware:beginners_guide suggests slackpkg without warning about kernel upgrades.
 
2 members found this post helpful.
Old 04-27-2023, 07:24 AM   #14
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,651
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Quote:
Originally Posted by LuckyCyborg View Post
I have a better idea:

how about Slackware to stop playing with things as alive like Tutankhamen, and to push to users a modern bootloader? How about to make a proper management of kernel packages and mark and make them capable only of install/remove but NEVER upgrade? How about to make proper kernel packages who calls update-grub on install and removal?
I don't think it has ever been the purpose of Slackware to push users into doing anything. Other distros do that; Slack gives you freedom. A GRUB package exists but you don't have to use it if you don't like GRUB. And if we are to be pushed into using a particular bootloader, why not a particular init system as well? That's certainly how other distros treat their users.

I don't know if it would even be possible to automatically convert upgrades of the kernel and kernel modules into parallel installations without greatly altering pkgtools and spoiling its beautiful simplicity. Certainly Debian distros always carry out a parallel installation for these packages, but then Debian has a very complex update manager.

Automatic GRUB updates though are easy to include. Just put a check for GRUB and a conditional GRUB update into the kernel installation script.

Last edited by hazel; 04-27-2023 at 07:29 AM.
 
3 members found this post helpful.
Old 04-27-2023, 07:27 AM   #15
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,409

Rep: Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142Reputation: 4142
Quote:
Originally Posted by hazel View Post
I don't think it has ever been the purpose of Slackware to push users into doing anything. Other distros do that; Slack gives you freedom.
I 100% agree

But upgrading a kernel and not been able to boot after a reboot, is and will always be a major issue.
In that case, it's difficult (in my opinion) to blame at 100% the user

What if, you upgrade GCC and can't compile anything ?

Last edited by marav; 04-27-2023 at 07:39 AM.
 
2 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
[SOLVED] Slackware 15.0 64 - ELILO freezes after improper upgrade via slackpkg glupa4e Slackware 12 01-05-2023 10:04 AM
can't boot huge kernel with elilo after 15.0 upgrade donflan Slackware 5 03-12-2022 10:58 AM
ELILO and Kernel Upgrade VisionIncision Slackware 7 07-11-2017 05:15 AM
[SOLVED] ELILO and kernel upgrade cgorac Slackware 3 01-26-2016 12:59 AM

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

All times are GMT -5. The time now is 02:40 PM.

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