BW-userx |
10-29-2019 08:38 PM |
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
|