LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-26-2023, 11:02 AM   #61
anticapitalista
antiX
 
Registered: May 2005
Location: Greece
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 631

Rep: Reputation: 190Reputation: 190

@hazel - if you decide to install antiX on UEFI, make sure you do this first.

Quote:
Known issues.

IMPORTANT IF INSTALLING GRUB TO UEFI/ESP

Before installing
sudo apt update && sudo apt dist-upgrade
This will update the gui and cli installers and bring in missing efivar and efibootmgr

Alternatively,
sudo apt update && sudo apt install efivar efibootmgr
https://antixlinux.com/antix-23-released/
 
1 members found this post helpful.
Old 10-26-2023, 11:13 AM   #62
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660

Original Poster
Blog Entries: 19

Rep: Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482
Thank you, that's worth knowing. I already checked for efibootmgr and found it was absent. But what I would like to know is if the installer will register my new ESP with the UEFI chip when it installs grub there. Because I think that's the nub of the problem.
 
Old 10-26-2023, 12:35 PM   #63
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,856
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
Quote:
Originally Posted by hazel View Post
If I install AntiX with GRUB included, passing the correct ESP partition to the installer, will that fix the problem?
First thing to do if you haven't already is to eradicate the old UEFI boot entry, either within BIOS setup, or using efibootmgr (my preference). With os-prober enabled in AntiX, you should be able to boot every installation present that has a validly configured directory on the ESP. Whether this assumption holds true for elilo rather than grub, I can't more than guess, so won't. Neither do I use os-prober. I've never used elilo, and I boot from custom.cfg with entirely scratch mcedit composed stanzas, rather from grub directly.
 
Old 10-26-2023, 01:53 PM   #64
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,856
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
Given what you've already done, you may need only efibootmgr to solve this. These are two specific commands previously used here (two different computers, two different times, neither using secure boot):
Code:
efibootmgr -c -L "opensusetw" -d /dev/nvme0n1 -l '\EFI\opensusetw\grubx64.efi'
efibootmgr -c -L "opensuse153" -l '\EFI\opensusetw\grubx64.efi'
In the first, more than one internal storage device was present, in the second, not. You don't need to be running the installed system to do this, any efibootmgr should suffice. The -L strings are directly correlated to the computed value of /etc/default/grub/s GRUB_DISTRIBUTOR= string, which is also equal to the applicable directory name in /boot/efi/EFI/. Where elilo sources the directory name I don't know, but shouldn't matter. It's the directory name on the ESP you need. It's just that you can control the applicable directory name via GRUB_DISTRIBUTOR=, since in multiboot environments, additional installations of same name distros will overwrite those already existing - not a troublemaker one wants or needs.

This is an example of removing an existing entry.
 
Old 10-27-2023, 12:16 AM   #65
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660

Original Poster
Blog Entries: 19

Rep: Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482
Quote:
Originally Posted by mrmazda View Post
Given what you've already done, you may need only efibootmgr to solve this. These are two specific commands previously used here (two different computers, two different times, neither using secure boot):
Code:
efibootmgr -c -L "opensusetw" -d /dev/nvme0n1 -l '\EFI\opensusetw\grubx64.efi'
efibootmgr -c -L "opensuse153" -l '\EFI\opensusetw\grubx64.efi'
Thanks. I think the equivalent on my machine would be
Code:
efibootmgr -c -p 2 -L "Elilo" -l '\EFI\Slackware\elilo.efi'
I shall need to specify the partition number as well since, according to the man page, it defaults to 1.

Last edited by hazel; 10-27-2023 at 12:24 AM.
 
Old 10-27-2023, 08:48 AM   #66
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660

Original Poster
Blog Entries: 19

Rep: Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482
So I used efibootmgr to create a new UEFI menu entry for elilo and rebooted. It doesn't quite work properly yet. The UEFI keeps defaulting to the old entry even though I used the internal interface to raise the new entry above it. But I was able to reach it via the F12 alternatives menu and boot it. Maybe if I delete the old entry, it will boot the new one then.

I am posting this out of graphical links in LFS, which is a great step forward.
 
1 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
Redirected to my router while browsing, should I be worried, what should I do? M$ISBS Linux - Security 7 05-04-2012 08:05 PM
Was looking through my logs... should I be worried? markstevens Linux - Security 9 09-23-2004 11:17 PM
Should I be worried?? 3inone Linux - Security 1 08-20-2003 04:23 PM
New to Linux - How worried should I be? Harimwakairi Linux - Security 5 07-22-2003 04:13 PM
Should I be worried about the NBNS broadcasts _LR_ Linux - Networking 3 05-21-2003 09:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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