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 10-20-2023, 02:24 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
EFI reconstruction


I backed up my main box today. I obviously should have gone nowhere near any pc in my present state, but it felt like any other day. When I tried to restart after, I got a mutinous and overbearing windows 11 as the default install and all other options deleted. I obviously am having a terrible day. We're under weather alerts with Storm Babet in this part of the world.

The box is running on a liveslak usb atm, and that has mokutil, but not the efi boot manager, which I have access on the nvme of the main box. The entry is still there in the EFI partition. I just need to import it again, as the BIOS seems not to have them as options. That probably means it's thrown out the key.

Can somebody point me at a howto, and the slackware key, or am I better going through the 15.0 install dvd process?

Last edited by business_kid; 10-20-2023 at 02:37 PM.
 
Old 10-20-2023, 04:46 PM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,474
Blog Entries: 7

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
Ah Microsoft. Still pulling the same old stunts after ~30 years...

Does running eliloconfig from the liveslak USB help? Have you disabled "secure boot"?
 
Old 10-21-2023, 03:49 AM   #3
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 597

Rep: Reputation: Disabled
I thought I remember that efibootmgr is present in all those Live ISOs, no?
 
Old 10-21-2023, 04:16 AM   #4
MDKDIO
Member
 
Registered: Mar 2004
Location: Sweden
Distribution: Slackware 15
Posts: 521

Rep: Reputation: 187Reputation: 187
Quote:
Originally Posted by Windu View Post
I thought I remember that efibootmgr is present in all those Live ISOs, no?
It is, according to the liveslak.log
efibootmgr-20191011_e8ce9fe-x86_64-4: tool to modify UEFI boot entries . [ 120K]
 
Old 10-21-2023, 02:15 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Original Poster
Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Quote:
Originally Posted by rkelsen View Post
Ah Microsoft. Still pulling the same old stunts after ~30 years...

Does running eliloconfig from the liveslak USB help? Have you disabled "secure boot"?
Thank you all for the replies. I'm back running on my system now. Yes, @rkelsen M$ are still doing it for maybe 40 years!

My elilo.conf was there. If eliloconfig has some power over UEFI, I missed the significance of that advice, and went a longer road.

I have the XFCE Liveslak iso from December 2022, and efibootmgr wasn't there. If it had been there, it wouldn't be trivial to delete it.But I could access off the / drive without issues. Slackware was wiped out of the boot order.

So I burned a 15.0 install dvd, reinstalled the "A" packages, let the install usb set up elilo and am back able to boot the thing. I have overwritten stuff that I've updated, but if you remember what started this, I have a backup from yesterday . Wine still works the one program it needs to work. So this is solved.

I have an MSI B550M Bazooka m/b, and if memory serves, linux needs to be first in the boot order, at number 0000. But I'll sort that out, as well as updating glibc preferably with the Multilib version.
 
Old 10-24-2023, 07:22 PM   #6
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
rEFInd has saved my bacon many times and there's enough info at the website to solve most EFI problems
https://www.rodsbooks.com/refind/
if you are willing to study a bit. Microsoft does still specialize in $uckage but i have two
windows11 partitions in my box and some old and new linuces as a kind of toolbox.
Wine never helped me much, just gives me a headache.
 
Old 10-25-2023, 05:40 AM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,396

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Quote:
So I burned a 15.0 install dvd, reinstalled the "A" packages, let the install usb set up elilo
If it happens again with a windows update(Imagine that}:

Assuming you ran setup, and selected not to format at the target stage, you can cancelled out of the source selection go straight to configure and skip/cancel out of the other items.

The other option is to manually mount the root partition to /mnt and the efi parition to /mnt/boot/efi, mount --bind /dev /proc /sys to /mnt/dev /mnt/proc /mnt/sys respectively, chroot /mnt and run eliloconfig

Last edited by colorpurple21859; 10-25-2023 at 05:45 AM.
 
Old 10-25-2023, 02:21 PM   #8
_peter
Member
 
Registered: Sep 2014
Location: paris
Distribution: slackware
Posts: 314

Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
The other option is to manually mount the root partition to /mnt and the efi parition to /mnt/boot/efi, mount --bind /dev /proc /sys to /mnt/dev /mnt/proc /mnt/sys respectively, chroot /mnt and run eliloconfig
that is a great one-line summary. having fell in that elilo trap multiple times, i have completed a cheat-sheet that you can correct of any typos.
https://docs.slackware.com/howtos:sl...edia#chrooting
eliloconfig instead of manual files copying feel safer for me.
 
3 members found this post helpful.
Old 10-26-2023, 09:52 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Original Poster
Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Quote:
Originally Posted by _peter
eliloconfig instead of manual files copying feel safer for me.
Does eliloconfig do any reordering of the boot order?

EDIT: I couldn't get that docs.skackware<etc> link in the last post. Will try again later.

Last edited by business_kid; 10-26-2023 at 09:54 AM.
 
Old 10-26-2023, 02:13 PM   #10
_peter
Member
 
Registered: Sep 2014
Location: paris
Distribution: slackware
Posts: 314

Rep: Reputation: Disabled
https://www.linuxquestions.org/quest...6/#post6441678

Code:
cat << EOF > $T_PX/boot/efi/EFI/Slackware/elilo.conf
Quote:
# 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.
 
Old 10-26-2023, 04:29 PM   #11
fourtysixandtwo
Member
 
Registered: Jun 2021
Location: Alberta
Distribution: Slackware...mostly
Posts: 328

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by _peter View Post
that is a great one-line summary. having fell in that elilo trap multiple times, i have completed a cheat-sheet that you can correct of any typos.
https://docs.slackware.com/howtos:sl...edia#chrooting
eliloconfig instead of manual files copying feel safer for me.
eliloconfig is not safer, it overwrites any changes to elilo.conf. It should only be used the first time and then copy the new kernel and initrd manually...that is the safer way.

Last edited by fourtysixandtwo; 10-26-2023 at 04:32 PM.
 
1 members found this post helpful.
Old 11-24-2023, 11:24 AM   #12
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
The overwriting of elilo.conf can be avoided by added this if test to eliloconfig:

Code:
if [ ! -f /boot/efi/EFI/Slackware/elilo.conf ]; then
cat << EOF > $T_PX/boot/efi/EFI/Slackware/elilo.conf
...
fi
Note that the eliloconfig script is writing to elilo.conf in three places.
 
  


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] Ooooy. EFI boot mmx64.efi.efi not found bulgin Linux - Newbie 12 12-20-2018 11:03 AM
[SOLVED] Can't find /boot/efi/EFI/Slackware/vmlinuz kernel configuration ironQiu Slackware 4 02-09-2015 06:21 AM
boot efi disk with without a non-efi bios pc... masavini Programming 1 11-12-2013 08:48 PM
EFI main GPT overwritten everytime (when windows 7 runs) - structure of EFI masuch Linux - Newbie 2 07-20-2012 02:49 PM

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

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