LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 10-29-2019, 08:38 PM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Win10, slack-curr,FreeBSD UEFI boot order (chainload FBSD, maybe)


I finally got a UEFI installable WIN10 usb stick. Installed Win10, SLack-current UEFI w/o CMS.

installed efibootmgr how do I get it to get slack as first default boot?
every way this HP 840 g2 has its pick a sopt to try and boot uefi WINDOWS is first in order.

I have to elect the option to move down the line and find then select slacks UEFI..

when I installed this I did not install elio. I opt out and then booted again using the slack usb option to find all bootable OSes then used that to boot into the fresh install, then did this to get uefi grub
Code:
"grub-install --target=x86_64-efi /dev/sdb" 
grub-mkconfig -o /boot/grub/grub.cfg
which gives me the
[/code]
mnt/EFI/slackware-14.2+/bootx64.efi
[/code]
which I had mounted when I did that, looking at it maybe it does not need to be mounted to get to it?????
Code:
# mount /dev/sdXy -t vfat /boot/efi 
where X = drive and y = partition
# modprobe efivars
# efibootmgr -c -g -d /dev/sdX -p Y -w -L "Linux" -l '\EFI\Linux\bootx64.efi' 
assuming that the grubx64.efi file had been copied to \EFI\Linux\bootx64.efi
where I changed it to
Code:
efibootmgr -c -g -d /dev/sdb  -L "Linux" -l '\mnt\EFI\Linux\bootx64.efi'

Code:
bash-5.0# efibootmgr -v
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0001
Boot0000* PCIe/M.2 SSD Drive	BBS(HD,,0x0).......................................................................
      dp: 05 01 09 00 02 00 00 00 00 / 7f ff 04 00
    data: 00 00 00 00 00 00 1f 00 00 00 02 00 00 00 01 01 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 13 00 00 00 00 00 00 00 02 00
Boot0001* Notebook Hard Drive	BBS(HD,,0x0).......................................................................
      dp: 05 01 09 00 02 00 00 00 00 / 7f ff 04 00
    data: 01 00 00 00 00 00 1f 00 00 00 02 00 00 00 01 01 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11 00 00 00 00 00 00 00 01 00
Boot0002* Linux	HD(1,GPT,b76085ae-9dfd-46ef-982a-91fe073e973e,0x800,0x64000)/File(\EFI\\boot\efi\grub.efi)L.slackware-14.2+.mnt/EFI/slackware-14.2+/bootx64.efi....................
      dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 40 06 00 00 00 00 00 ae 85 60 b7 fd 9d ef 46 98 2a 91 fe 07 3e 97 3e 02 02 / 04 04 34 00 5c 00 45 00 46 00 49 00 5c 00 5c 00 62 00 6f 00 6f 00 74 00 5c 00 65 00 66 00 69 00 5c 00 67 00 72 00 75 00 62 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
    data: 4c 00 73 6c 61 63 6b 77 61 72 65 2d 31 34 2e 32 2b 00 6d 6e 74 2f 45 46 49 2f 73 6c 61 63 6b 77 61 72 65 2d 31 34 2e 32 2b 2f 62 6f 6f 74 78 36 34 2e 65 66 69 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Boot0003* Windows Boot Manager	HD(1,GPT,b76085ae-9dfd-46ef-982a-91fe073e973e,0x800,0x64000)/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.}...3................
      dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 40 06 00 00 00 00 00 ae 85 60 b7 fd 9d ef 46 98 2a 91 fe 07 3e 97 3e 02 02 / 04 04 46 00 5c 00 45 00 46 00 49 00 5c 00 4d 00 69 00 63 00 72 00 6f 00 73 00 6f 00 66 00 74 00 5c 00 42 00 6f 00 6f 00 74 00 5c 00 62 00 6f 00 6f 00 74 00 6d 00 67 00 66 00 77 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
    data: 57 49 4e 44 4f 57 53 00 01 00 00 00 88 00 00 00 78 00 00 00 42 00 43 00 44 00 4f 00 42 00 4a 00 45 00 43 00 54 00 3d 00 7b 00 39 00 64 00 65 00 61 00 38 00 36 00 32 00 63 00 2d 00 35 00 63 00 64 00 64 00 2d 00 34 00 65 00 37 00 30 00 2d 00 61 00 63 00 63 00 31 00 2d 00 66 00 33 00 32 00 62 00 33 00 34 00 34 00 64 00 34 00 37 00 39 00 35 00 7d 00 00 00 33 00 01 00 00 00 10 00 00 00 04 00 00 00 7f ff 04 00
bash-5.0#
I am going to post this so I do not have to write everything all over again in case this does not work, I am going to do that mgr line again.
Code:
bash-5.0# ls /boot/efi/EFI
Boot  Microsoft  slackware-14.2+

bash-5.0# ls /boot/efi/EFI/slackware-14.2+
grubx64.efi

bash-5.0# ls /boot/efi/EFI/Boot
bootx64.efi

bash-5.0# ls /boot/efi/EFI/Microsoft
Boot  Recovery
this /boot/efi/EFI/Boot/bootx64.efi
boots WIN10

Code:
bash-5.0# mount /dev/sdb1 -t vfat /boot/efi
mount: /boot/efi: /dev/sdb1 already mounted on /boot/efi.
bash-5.0# modprobe efivars
bash-5.0# efibootmgr -c -g -d /dev/sdb -p Y -w -L "Linux" -l '\EFI\Linux\bootx64.efi'
invalid numeric value Y
why is the slashes backwards?
Code:
bash-5.0# ls /boot/efi/EFI/Microsoft
Boot  Recovery
bash-5.0# efibootmgr -c -g -d /dev/sdb -w -L "Linux" -l '\EFI\Linux\bootx64.efi'
efibootmgr: ** Warning ** : Boot0002 has same label Linux
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0004,0000,0001
Boot0000* PCIe/M.2 SSD Drive	BBS(HD,,0x0).......................................................................
Boot0001* Notebook Hard Drive	BBS(HD,,0x0).......................................................................
Boot0002* Linux	HD(1,GPT,b76085ae-9dfd-46ef-982a-91fe073e973e,0x800,0x64000)/File(\EFI\\boot\efi\grub.efi)L.slackware-14.2+.mnt/EFI/slackware-14.2+/bootx64.efi....................
Boot0003* Windows Boot Manager	HD(1,GPT,b76085ae-9dfd-46ef-982a-91fe073e973e,0x800,0x64000)/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.}...3................
Boot0004* Linux	HD(1,GPT,b76085ae-9dfd-46ef-982a-91fe073e973e,0x800,0x64000)/File(\EFI\Linux\bootx64.efi)

DELETED SOME ENTRIES and added again
Code:
bash-5.0# efibootmgr -Bb 0002
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0004,0000,0001
Boot0000* PCIe/M.2 SSD Drive	BBS(HD,,0x0).......................................................................
Boot0001* Notebook Hard Drive	BBS(HD,,0x0).......................................................................
Boot0003* Windows Boot Manager	HD(1,GPT,b76085ae-9dfd-46ef-982a-91fe073e973e,0x800,0x64000)/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.}...3................
Boot0004* Linux	HD(1,GPT,b76085ae-9dfd-46ef-982a-91fe073e973e,0x800,0x64000)/File(\EFI\Linux\bootx64.efi)
bash-5.0# efibootmgr -Bb 0004
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0001
Boot0000* PCIe/M.2 SSD Drive	BBS(HD,,0x0).......................................................................
Boot0001* Notebook Hard Drive	BBS(HD,,0x0).......................................................................
Boot0003* Windows Boot Manager	HD(1,GPT,b76085ae-9dfd-46ef-982a-91fe073e973e,0x800,0x64000)/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.}...3................
bash-5.0# efibootmgr -v
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0001
Boot0000* PCIe/M.2 SSD Drive	BBS(HD,,0x0).......................................................................
      dp: 05 01 09 00 02 00 00 00 00 / 7f ff 04 00
    data: 00 00 00 00 00 00 1f 00 00 00 02 00 00 00 01 01 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 13 00 00 00 00 00 00 00 02 00
Boot0001* Notebook Hard Drive	BBS(HD,,0x0).......................................................................
      dp: 05 01 09 00 02 00 00 00 00 / 7f ff 04 00
    data: 01 00 00 00 00 00 1f 00 00 00 02 00 00 00 01 01 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11 00 00 00 00 00 00 00 01 00
Boot0003* Windows Boot Manager	HD(1,GPT,b76085ae-9dfd-46ef-982a-91fe073e973e,0x800,0x64000)/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.}...3................
      dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 40 06 00 00 00 00 00 ae 85 60 b7 fd 9d ef 46 98 2a 91 fe 07 3e 97 3e 02 02 / 04 04 46 00 5c 00 45 00 46 00 49 00 5c 00 4d 00 69 00 63 00 72 00 6f 00 73 00 6f 00 66 00 74 00 5c 00 42 00 6f 00 6f 00 74 00 5c 00 62 00 6f 00 6f 00 74 00 6d 00 67 00 66 00 77 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
    data: 57 49 4e 44 4f 57 53 00 01 00 00 00 88 00 00 00 78 00 00 00 42 00 43 00 44 00 4f 00 42 00 4a 00 45 00 43 00 54 00 3d 00 7b 00 39 00 64 00 65 00 61 00 38 00 36 00 32 00 63 00 2d 00 35 00 63 00 64 00 64 00 2d 00 34 00 65 00 37 00 30 00 2d 00 61 00 63 00 63 00 31 00 2d 00 66 00 33 00 32 00 62 00 33 00 34 00 34 00 64 00 34 00 37 00 39 00 35 00 7d 00 00 00 33 00 01 00 00 00 10 00 00 00 04 00 00 00 7f ff 04 00
bash-5.0# ls /boot/EFI
ls: cannot access '/boot/EFI': No such file or directory
bash-5.0# ls /boot/efi
EFI
bash-5.0# ls /boot/efi/EFI
Boot  Microsoft  slackware-14.2+
bash-5.0# ls /boot/efi/EFI/slackware-14.2+
grubx64.efi
bash-5.0# efibootmgr -c -g -d /dev/sdb -p -L "slackware-14.2+"     '\EFI\slackware-14.2+\grubx64.efi'
invalid numeric value -L

bash-5.0# efibootmgr -c -g -d /dev/sdb -w -L "slackware-14.2+"     '\EFI\slackware-14.2+\grubx64.efi'
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0002,0000,0001
Boot0000* PCIe/M.2 SSD Drive	BBS(HD,,0x0).......................................................................
Boot0001* Notebook Hard Drive	BBS(HD,,0x0).......................................................................
Boot0003* Windows Boot Manager	HD(1,GPT,b76085ae-9dfd-46ef-982a-91fe073e973e,0x800,0x64000)/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.}...3................
Boot0002* slackware-14.2+	HD(1,GPT,b76085ae-9dfd-46ef-982a-91fe073e973e,0x800,0x64000)/File(\EFI\\boot\efi\grub.efi)\EFI\slackware-14.2+\grubx64.efi
bash-5.0# 
bash-5.0# efibootmgr -v
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0002,0000,0001
Boot0000* PCIe/M.2 SSD Drive	BBS(HD,,0x0).......................................................................
      dp: 05 01 09 00 02 00 00 00 00 / 7f ff 04 00
    data: 00 00 00 00 00 00 1f 00 00 00 02 00 00 00 01 01 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 13 00 00 00 00 00 00 00 02 00
Boot0001* Notebook Hard Drive	BBS(HD,,0x0).......................................................................
      dp: 05 01 09 00 02 00 00 00 00 / 7f ff 04 00
    data: 01 00 00 00 00 00 1f 00 00 00 02 00 00 00 01 01 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11 00 00 00 00 00 00 00 01 00
Boot0002* slackware-14.2+	HD(1,GPT,b76085ae-9dfd-46ef-982a-91fe073e973e,0x800,0x64000)/File(\EFI\\boot\efi\grub.efi)\EFI\slackware-14.2+\grubx64.efi
      dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 40 06 00 00 00 00 00 ae 85 60 b7 fd 9d ef 46 98 2a 91 fe 07 3e 97 3e 02 02 / 04 04 34 00 5c 00 45 00 46 00 49 00 5c 00 5c 00 62 00 6f 00 6f 00 74 00 5c 00 65 00 66 00 69 00 5c 00 67 00 72 00 75 00 62 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
    data: 5c 45 46 49 5c 73 6c 61 63 6b 77 61 72 65 2d 31 34 2e 32 2b 5c 67 72 75 62 78 36 34 2e 65 66 69
Boot0003* Windows Boot Manager	HD(1,GPT,b76085ae-9dfd-46ef-982a-91fe073e973e,0x800,0x64000)/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.}...3................
      dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 40 06 00 00 00 00 00 ae 85 60 b7 fd 9d ef 46 98 2a 91 fe 07 3e 97 3e 02 02 / 04 04 46 00 5c 00 45 00 46 00 49 00 5c 00 4d 00 69 00 63 00 72 00 6f 00 73 00 6f 00 66 00 74 00 5c 00 42 00 6f 00 6f 00 74 00 5c 00 62 00 6f 00 6f 00 74 00 6d 00 67 00 66 00 77 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
    data: 57 49 4e 44 4f 57 53 00 01 00 00 00 88 00 00 00 78 00 00 00 42 00 43 00 44 00 4f 00 42 00 4a 00 45 00 43 00 54 00 3d 00 7b 00 39 00 64 00 65 00 61 00 38 00 36 00 32 00 63 00 2d 00 35 00 63 00 64 00 64 00 2d 00 34 00 65 00 37 00 30 00 2d 00 61 00 63 00 63 00 31 00 2d 00 66 00 33 00 32 00 62 00 33 00 34 00 34 00 64 00 34 00 37 00 39 00 35 00 7d 00 00 00 33 00 01 00 00 00 10 00 00 00 04 00 00 00 7f ff 04 00
bash-5.0#
I hope one can understand that..
what is this meaning.
Code:
 efibootmgr -v
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0002,0000,0001
Boot0000* PCIe/M.2 SSD Drive
bootorder, 0002 is Slack, 0003 is WIN10, Boot0001* Notebook Hard Drive, Boot0000* PCIe/M.2 SSD Drive
which 0000 is current, and I am in slack current.

(NE ways, I'm rebooting to see the damage I might have done.)


Code:
bash-5.0# ls /boot/efi/EFI/
Boot  Linux  Microsoft	slackware-14.2+
bash-5.0# ls /boot/efi/EFI/Boot
bootx64.efi
in that Boot dir i for windows 10
I copied a SLack one off the USB Stick in to it to replace it, it gave me

grub>
it don't like that. only if I travel down to this vis the boot screen , then I can boot slack .. it resideds in the same location as Windows /boot/efi/EFI/slackware-14.2+/grubx64.efi

Last edited by BW-userx; 10-29-2019 at 09:20 PM.
 
Old 10-29-2019, 08:54 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
try this:
F10 at first boot to get into your bios settings, tab over to boot order, make os boot manager first in boot order, highlight os boot manager enter, use f5 f6 keys to move linux entry to top, f10 key to save, escspe out, exit and save. It is something like that

Last edited by colorpurple21859; 10-29-2019 at 09:23 PM.
 
Old 10-29-2019, 09:27 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by colorpurple21859 View Post
try this:
F10 at first boot to get into your bios settings, tab over to boot order, make os boot manager first in boot order, highlight os boot manager enter, use f5 f6 keys to move linux entry to top, f10 key to save, escspe out, exit and save. It is something like that
I do not get that boot manager anymore,.. I am booting off the m.2 and not that 2.5..

Images should be in order of going through selections needed to boot slack uefi

1st photo, uses the /boot/efi/EFI/Boot/bootx64.efi file that is owned by Win10

if I can get it to work with SLacks bootx64.efi then vola I can switch my BIOS to not give me a wait state for multi boot in my BIOS then it will/should slip into slack grub boot that will ahve the options for slack win10

and I still have to figure out FreeBSD efi chain load, it too is having Issues with w 1080p screen. it boots 1024x768 efi boot screen


I am done for tonight, bed time. tomorrow I'll try some more Ideas.
Attached Thumbnails
Click image for larger version

Name:	IMG_20191029_212100.jpg
Views:	13
Size:	140.1 KB
ID:	31710   Click image for larger version

Name:	IMG_20191029_212107.jpg
Views:	14
Size:	135.7 KB
ID:	31711   Click image for larger version

Name:	IMG_20191029_212112_1.jpg
Views:	11
Size:	120.3 KB
ID:	31712   Click image for larger version

Name:	IMG_20191029_212113.jpg
Views:	10
Size:	120.3 KB
ID:	31713  

Last edited by BW-userx; 10-29-2019 at 09:31 PM.
 
Old 10-29-2019, 09:38 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
efibootmgr: ** Warning ** : Boot0002 has same label Linux
to prevent this
do this, you don't have to mount the efi partition for this to work
Code:
efibootmgr -c -d /dev/sdb -p 1 -l \\EFI\\slackware-14.2+\\bootx64.efi -L "Slackware"
change the sdb and 1 to match the drive and partition that /EFI/slackware-14.2+/bootx64.efi is located
use efibootmanager to change boot order then
efibootmgr -n -b xxxx to let slackware boot on the next reboot.
 
Old 10-29-2019, 09:45 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
something to check
run gdisk your drive similar to this
Code:
gdisk /dev/sda
Found valid GPT with protective MBR; using GPT.

Command (? for help): v
this will be message if this is part of the problem


Code:
Warning: The 0xEE protective partition in the MBR is marked as active. This is technically a violation of the GPT specification, and can cause some EFIs to ignore the disk, but it is required to boot from a GPT disk on some BIOS-based computers. You can clear this flag by creating a fresh protective MBR using
the 'n' option on the experts' menu.
 
Old 10-30-2019, 06:47 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by colorpurple21859 View Post
something to check
run gdisk your drive similar to this
Code:
gdisk /dev/sda
Found valid GPT with protective MBR; using GPT.

Command (? for help): v
this will be message if this is part of the problem


Code:
Warning: The 0xEE protective partition in the MBR is marked as active. This is technically a violation of the GPT specification, and can cause some EFIs to ignore the disk, but it is required to boot from a GPT disk on some BIOS-based computers. You can clear this flag by creating a fresh protective MBR using
the 'n' option on the experts' menu.
Code:
bash-5.0# gdisk /dev/sdb
GPT fdisk (gdisk) version 1.0.4

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
 
Old 10-30-2019, 06:49 AM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by colorpurple21859 View Post
to prevent this
do this, you don't have to mount the efi partition for this to work
Code:
efibootmgr -c -d /dev/sdb -p 1 -l \\EFI\\slackware-14.2+\\bootx64.efi -L "Slackware"
change the sdb and 1 to match the drive and partition that /EFI/slackware-14.2+/bootx64.efi is located
use efibootmanager to change boot order then
efibootmgr -n -b xxxx to let slackware boot on the next reboot.
there is NO bootx64.efi file in that dir. just this,
Code:
ls /boot/efi/EFI/slackware-14.2+
grubx64.efi
it's missing the bootx64.efi
 
Old 10-30-2019, 06:59 AM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
change it to grubx64.efi, I was doing copy and pasting from where I had done something similar and forgot to change it to grubx64.efi.

from you gdisk ouput, you don't have the protective mbr problem. I came across that issue after I had installed fedora in legacy mode a while back.

Last edited by colorpurple21859; 10-30-2019 at 07:04 AM.
 
Old 10-30-2019, 07:15 AM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
this is what I got so far...

because this BIOS is stupid crazy. when using the M.2 stick for the main boot, it is dev/sdb for one, and therefore not allowed the boot manager for uefi. so work around needs to be put into place.

when I installed grub efi it did not give me a bootx64.efi
I got a grubx64.efi

after figuring out that it is windows 10 that is using the ../Boot/bootx64.efi. I moved that one into a different name. then copied over grubx64.efi into ../Boot giving it that default named.
Code:
bash-5.0# ls /boot/efi/EFI/Boot
bootx64.efi  ms-win10-bootx64.efi

cp -v  /boot/efi/EFI/slackware-14.2+/grubx64.efi /boot/efi/EFI/Boot/bootx64.efi
my little wrapper to deal with this updating grub, then copying over the resutls
Code:
bash-5.0$ cat /usr/local/bin/update-grub

sudo grub-mkconfig -o /boot/grub/grub.cfg
cp -v  /boot/efi/EFI/slackware-14.2+/grubx64.efi /boot/efi/EFI/Boot/bootx64.efi
mark it executable to it runs when called.

Now on to figuring out how to chain load FreeBSD efi style. the other way no longer worked. but I will most likely make sure of that too.


so it looks to be 1/2 completed here.

Last edited by BW-userx; 10-30-2019 at 07:29 AM.
 
Old 10-30-2019, 07:37 AM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
I've seen that where the uefi bios will only boot the bootx64.efi file.
 
Old 10-30-2019, 07:55 AM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by colorpurple21859 View Post
I've seen that where the uefi bios will only boot the bootx64.efi file.
somewhere is a previous post I put where I copied in the bootx64.efi off the stick and it gave me the good ole grub> prompt. so I after a bunch of configurations figuring out what this system is doing without a boot manager due to M.2 sdb being used. I figured it was just a name switch, being that I had a grubx64.efi and bootx64.efi seemed to be doing the same thing, loading grub.

I tried symlinking it but it would not let me, so I did the move it over and rename it trick. which is working. Now I am having a hair pulling experience (not that bad, but yeah) trying to figure out how to boot FreeBSD off of Linux grub now. with the ole style 40_custom entry not working any more due to it now also being efi boot, which works off the BIOS, I just need to get it to work off of Linux (slacks) grub boot menu.
 
Old 10-30-2019, 08:28 AM   #12
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Got It!

chainload efi FreeBSD
40_custiom
Code:
menuentry "FreeBSD 12" {
   set root=(hd1,7)
   chainloader /boot/boot1.efi
}
and I found out i did not need to copy over the grubx64.efi file each time after updating grub..
 
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
[SOLVED] Slack curr is having some major issue, 4 me anyway, automount no longer working in old school wm's BW-userx Slackware 12 01-28-2019 05:16 PM
Switching from win10 to a linux distro with win10 vm kevgk Linux - Virtualization and Cloud 3 11-01-2018 05:36 AM
Lilo breaking Win10 boot (BIOS not UEFI) dalgrim Slackware 10 05-08-2016 09:57 PM
Slack curr LabRad Slackware 3 09-02-2003 10:11 AM

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

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