LinuxQuestions.org
Visit Jeremy's Blog.
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 01-12-2024, 12:17 PM   #16
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,408

Original Poster
Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338

Quote:
Originally Posted by Petri Kaukasoina View Post
To check whether Secure Boot is enabled, run:

Code:
mokutil --sb-state
Does it reply “Secure Boot enabled” ?
Secure boot is disabled - my bad. I'm in "Setup Mode," whatever that is.

I can set up a Slackware entry, and get it to place it in order. But that doesn't hold over a reboot.
Code:
dec@Ebony:~$ sudo efibootmgr -v
[sudo] password for dec: 
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0000,0002,0003
Boot0000* Windows Boot Manager	HD(1,GPT,5e0a4df4-b065-41f1-b1a5-8ce98d4fbe2e,0x800,0x32000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...M................
Boot0002* debian	HD(1,GPT,5e0a4df4-b065-41f1-b1a5-8ce98d4fbe2e,0x800,0x32000)/File(\EFI\DEBIAN\GRUBX64.EFI)..BO
Boot0003* Hard Drive	BBS(HD,,0x0)..GO..NO........u.T.O.S.H.I.B.A. .M.Q.0.4.A.B.F.1.0.0....................A.................................>..Gd-.;.A..MQ..L. . . . . . . . . . .Z. .J.8.C.Y.J.K.T.1........BO..NO........s.I.N.T.E.L. .S.S.D.P.E.K.N.W.5.1.2.G.8....................A.......................................6..Gd-.;.A..MQ..L.B.T.N.H.2.0.3.5.0.U.3.Z.5.1.2.A........BO

dec@Ebony:~$ sudo efibootmgr -c -d /dev/nvme0n1 --part=6 -L Slackware -l \\EFI\\Slackware\\elilo.efi
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0001,0000,0002,0003
Boot0000* Windows Boot Manager
Boot0002* debian
Boot0003* Hard Drive
Boot0001* Slackware

dec@Ebony:~$ sudo efibootmgr -v
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0001,0000,0002,0003
Boot0000* Windows Boot Manager	HD(1,GPT,5e0a4df4-b065-41f1-b1a5-8ce98d4fbe2e,0x800,0x32000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...M................
Boot0001* Slackware	HD(6,GPT,0852f4b5-918b-4424-9963-8a2dee122a79,0x1fd66800,0x7800000)/File(\EFI\Slackware\elilo.efi)
Boot0002* debian	HD(1,GPT,5e0a4df4-b065-41f1-b1a5-8ce98d4fbe2e,0x800,0x32000)/File(\EFI\DEBIAN\GRUBX64.EFI)..BO
Boot0003* Hard Drive	BBS(HD,,0x0)..GO..NO........u.T.O.S.H.I.B.A. .M.Q.0.4.A.B.F.1.0.0....................A.................................>..Gd-.;.A..MQ..L. . . . . . . . . . .Z. .J.8.C.Y.J.K.T.1........BO..NO........s.I.N.T.E.L. .S.S.D.P.E.K.N.W.5.1.2.G.8....................A.......................................6..Gd-.;.A..MQ..L.B.T.N.H.2.0.3.5.0.U.3.Z.5.1.2.A........BO
dec@Ebony:~$
Am I missing a bit of the process to store? Does my entry look complete? I thought I had to store something in the m/b Bios, but I don't know much about this, and this is my first box where efi is not nobbled. When I reboot, the Slackware entry won't show and won't be present in efibootmgr as it isn't at the top of the quoted 'code'.

Last edited by business_kid; 01-12-2024 at 12:22 PM.
 
Old 01-12-2024, 04:29 PM   #17
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
post the output of:
sudo parted -l
 
Old 01-12-2024, 11:33 PM   #18
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,797

Rep: Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436
It might be helpful and instructive to try the F-Key to Boot Menu to see if the drive/partition containing Slackware remains there. In my Asus Z490 board booting some alternative systems will deselect an entry from the main "Boot" tab of BIOS Setup which can either be reinstated by clicking the arrow to the right of each entry and manually selecting it back or by accessing the F-Key Boot menu option. The selection process might be board specific but once efibootmgr successfully creates an entry it is encoded in firmware and must be manually deleted to no longer exist as an entry.

In short, "Boot0001* Slackware" entry can't just disappear without your action. It's still there.

Last edited by enorbet; 01-12-2024 at 11:34 PM.
 
Old 01-13-2024, 09:06 AM   #19
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,408

Original Poster
Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
OK - sorted. Posting this from Slackware64-15.0.

The key breakthrough was to realise that on this box or on these BIOS, efibootmgr isn't actually working. With the exception of the timeout, I haven't successfully modified anything on these B-550M based motherboards. So things like 'efibootmgr -o <stuff>' to change the bootorder does nothing. The cure is deletion, efibootmgr -O {deletes boot order} followed by efibootmgr -o {write new bootorder}.

So I deleted the Slackware entry, and recreated it in the form
Code:
sudo efibootmgr -c -d /dev/nvme0n1 --part=1 -L Slackware -l \\EFI\\Slackware\\elilo.efi
EDIT: 19 posts to get to the bottom of this - far too many. Thanks for all the rapid replies and I'll try to be more succinct next time.

I wrote that out, because that was the line that worked. After grub, lilo, & friends we automatically associate the root partition with each OS in my case /dev/nvme0n1p6. But efibootmgr wants the efi partition, and doesn't care about where the OS actually is. That threw me for a while.

I deleted the Boot order and stuck in a preferable one but I think this may not take too many changes together. Very weird. At time of writing, I'm still defaulting to windows. But I'll fix that. The good news is that I can boot Slackware.

EDIT: Hey, the desired boot order actually stuck. So Slackware (0001 in the boot order) takes precedence over Windows. I had to delete, and then recreate. My boot order is

* Slackware 0001
* Debian 0002
* Windows 0000

Last edited by business_kid; 01-13-2024 at 12:09 PM.
 
2 members found this post helpful.
Old 01-13-2024, 01:38 PM   #20
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,797

Rep: Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436
Congratz!!!
 
Old 01-14-2024, 12:34 AM   #21
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 business_kid View Post
The key breakthrough was to realise that on this box or on these BIOS, efibootmgr isn't actually working. With the exception of the timeout, I haven't successfully modified anything on these B-550M based motherboards. So things like 'efibootmgr -o <stuff>' to change the bootorder does nothing. The cure is deletion, efibootmgr -O {deletes boot order} followed by efibootmgr -o {write new bootorder}.
My UEFI works in exactly the same way. Changes to boot order or deactivation of an entry are registered in nvram and can be displayed (so efibootmgr is working as it should) but they are not actually obeyed. Only deletion of unwanted entries works.

Last edited by hazel; 01-14-2024 at 01:58 AM.
 
1 members found this post helpful.
Old 01-14-2024, 01:15 AM   #22
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,979

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Very good news indeed. I knew you'd get there. Very informative thread.
 
Old 01-16-2024, 09:04 AM   #23
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,408

Original Poster
Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
Well, I thought things were too good to be true. They were. A few days after I wrote my last post, the BIOS decided to throw a spanner in the works.

I guess there's some sanity checking going on in the Asrock BIOS. It failed. I have the EFI partition backed up somewhere, but it points at a non-existent version of Windows. Never Mind, thought the BIOS, existence is only a minor detail. So this non-existent Windows was started by default, puked, and started asking me what I had done . I could still reboot, select Slackware using F11. efibootmgr was powerless (again) to deal with the reality of this imaginary windows being pushed to the forefront of the boot options.

In the Asrock BIOS, I eventually found a boot menu that I eventually figured how to manipulate. I disabled out the imaginary windows, assigned the real one it's suitably insignificant place in the boot order, and defaulted to Slackware.

I actually wonder why there is a boot order. If option #1 doesn't work, you're shafted, aren't you? Your only option is to press F11 and get ALL the boot options. So it's either option #1, or one of the rest, and the order is meaningless.
 
  


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
error: unknown filesystem. entering rescue mode. ..grub rescue> Celsiusrising Linux - Newbie 7 06-29-2018 11:51 AM
How to rescue Linux rescue using Live CD LittleMaster Linux - Newbie 5 02-09-2014 04:25 PM
How to Rescue a System with Automation Script in Rescue Mode Neron.L Linux - Server 1 12-13-2012 12:12 PM
how to rescue linux with rescue cd farooqnasim Red Hat 12 08-11-2009 06:24 AM
Linux Rescue script question, in rescue mode vijay_aras Linux - General 1 01-09-2008 05:03 PM

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

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