LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 07-21-2022, 11:41 AM   #1
Biscotty666
Member
 
Registered: Jul 2022
Distribution: Slackware 15, Arch
Posts: 33

Rep: Reputation: 0
First reboot after first upgrade fails


I installed the system and performed the following tasks. I am using the huge kernel for now. When I reboot I get an elilo screen which hangs (hard, have to press power button to reboot) after
Code:
Loading file initrd.gz...done
Ironically I created a usb boot stick at install for the first time in over a decade and when I try to boot it it fails at the same point.

I used the install dvd to chroot into the system and regenerated the initrd.gz just in case with no result. (I did generate it for the installed kernel not the running/installer kernel.) I was told to rerun lilo but I didn't since I'm using elilo. Is this the problem? It's my first experience with elilo so I'm not sure where everything "lives". Was there a command I needed to run? elilo?

If it's useful this is what I did besides installing sbopkg and brave.

Code:
slackpkg update
slackpkg upgrade-all
installed slackpkg+ and uncommented the multilib/alienbob/restricted entries
slackpkg update
installed multilib
generated an initrd.gz (I didn't think this necessary b/c using huge for now but I did it anyway.)
rebooted
I'm used to lilo and having multiple kernels set up but don't know how to do it with elilo.
 
Old 07-21-2022, 12:14 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,843

Rep: Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682
Run eliloconfig after a kernel upgrade or manually copy the initrd.gz and kernel you want to use to /boot/efi/EFI/Slackware and rename the kernel to vmlinuz.

Quote:
I'm used to lilo and having multiple kernels set up
Grub may be a better option if you are familiar with the workings of grub. Slackware comes with the grub package however doesn't use it by default during installation.

Last edited by colorpurple21859; 07-21-2022 at 12:19 PM.
 
Old 07-21-2022, 12:59 PM   #3
Biscotty666
Member
 
Registered: Jul 2022
Distribution: Slackware 15, Arch
Posts: 33

Original Poster
Rep: Reputation: 0
Thanks.

My next step is going to be to install/activate grub. I'm new to it but I'm new to elilo as well so I thought I'd go with the more common choice. I still have to figure out how to do that once I can boot my system.
 
Old 07-21-2022, 01:09 PM   #4
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,185

Rep: Reputation: Disabled
elilo is simpler than lilo as there is no need to run lilo command after editing elilo.conf
Your error (stuck at initrd) suggest an issue with initrd config (e.g. missing loaded fs module reported here before) or with kernel (link).
Changing boot loader will not solve your problems assuming that lilo worked before and now you have similar config with elilo.
 
Old 07-21-2022, 01:12 PM   #5
Biscotty666
Member
 
Registered: Jul 2022
Distribution: Slackware 15, Arch
Posts: 33

Original Poster
Rep: Reputation: 0
Running eliloconfig gives the error:

Code:
ELILO v3.16 for EFI/x86_64
.
mount: failed to read mtab: no such file or directory
ERROR: System is not running under UEFI
...which was surprising. Could it be b/c of the chroot environment?

Then I created /boot/efi/EFI/Slackware and copied vmlinuz and initrd.gz there. The directory /boot/efi already existed but not /boot/efi/EFI.

Unfortunately I run into the exact same problem as in the original post. Should I try with grub?

Last edited by Biscotty666; 07-21-2022 at 01:20 PM. Reason: added information
 
Old 07-21-2022, 01:23 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,843

Rep: Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682
If
Code:
cat /sys/firmware/efi
is a directory you are booting in uefi mode, if it doesn't exist your booting in legacy mode. what is output of
Code:
 fdisk -l
 
Old 07-21-2022, 03:28 PM   #7
Biscotty666
Member
 
Registered: Jul 2022
Distribution: Slackware 15, Arch
Posts: 33

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colorpurple21859 View Post
If
Code:
cat /sys/firmware/efi
is a directory you are booting in uefi mode, if it doesn't exist your booting in legacy mode.
I don't think I can answer that. When I boot the install iso it shows that directory. When I chroot into the installtion I don't see the directory.
Quote:
what is output of
Code:
 fdisk -l
Since I don't have a live system I am typing it all in. Can you narrow down what you are looking for b/c there is quite a bit of output? Happy to do it if you really need everything.

Thanks
 
Old 07-21-2022, 06:12 PM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,843

Rep: Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682Reputation: 1682
To chroot into the system, mount the root partition to /mnt, mount the efi partition to /mnt/boot/efi, then
Code:
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount -o bind /run /mnt/run
chroot /mnt
after fixing elilo and/or installing grub, exit and reboot

Last edited by colorpurple21859; 07-21-2022 at 06:15 PM.
 
2 members found this post helpful.
Old 07-21-2022, 06:19 PM   #9
Biscotty666
Member
 
Registered: Jul 2022
Distribution: Slackware 15, Arch
Posts: 33

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colorpurple21859 View Post
To chroot into the system, mount the root partition to /mnt, mount the efi partition to /mnt/boot/efi, then
Code:
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount -o bind /run /mnt/run
chroot /mnt
after fixing elilo and/or installing grub, exit and reboot
Forgot about that bit. I just went ahead and reinstalled since it was quick and easy and I wasn't stuck. I'm going to do things more step-wise and start by just upgrading the kernel to make sure I can reboot afterwards. Then I'll upgrade everything else.

Thanks again.
 
Old 08-01-2024, 02:12 PM   #10
Sefid par
Member
 
Registered: Jul 2013
Location: Iran, Shiraz
Distribution: Slackware
Posts: 141

Rep: Reputation: 26
Lightbulb Reinstall elilo

Quote:
Originally Posted by colorpurple21859 View Post
To chroot into the system, mount the root partition to /mnt, mount the efi partition to /mnt/boot/efi, then
...
after fixing elilo and/or installing grub, exit and reboot
Thanks colorpurple, in my experience we need to also mount /sys/firmware/efi/efivars too (ref). So the mounts will be:
Code:
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount --bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars
mount -o bind /run /mnt/run
chroot /mnt
eliloconfig

Last edited by Sefid par; 08-01-2024 at 02:14 PM.
 
  


Reply

Tags
boot error, elilo, eliloconfig


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Centos 7.3 reboot that hangs forever, fails to reboot. How to fix? lancer78 Linux - Newbie 9 04-17-2019 05:35 PM
[SOLVED] Upgrade from Wheezy to Jessie fails after apt-get dist-upgrade Angoid Debian 17 01-07-2016 02:25 AM
FreeIPA Centos7 fails after first reboot due to 389dir service crashing jessedalestacey Linux - Server 1 08-27-2015 10:15 AM
Mandriva 10.1 fails to reboot and shows "No reboot fixup found for your hardware" ROY913 Mandriva 1 12-12-2005 02:10 AM
no sound after reboot (after upgrade) Gates1026 Linux - General 8 03-11-2004 11:33 PM

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

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