You are not logged in.

#1 2023-06-12 20:10:13

TechWolf
Member
Registered: 2023-06-12
Posts: 3

[SOLVED] Alternating boot order

I've recently purchased a new larger ssd and migrated my ext4 grub Arch install to an encrypted btrfs filesystem with systemd-boot on the new drive. I wanted to keep an efi partition on each drive in case I wanted to nuke one drive or the other in the future. I swapped the BIOS boot order to my new larger ssd, which I assume launches the new efi partition first. The new install of Arch seems to works perfectly, except for every other boot, my system opens up grub instead of systemd-boot and launches my old installation of Arch. I've tried wiping any trace of grub from the new boot partition with no avail and couldn't find any previous posts about alternating booting order anywhere. Thanks for the help!

Last edited by TechWolf (2023-06-14 03:43:55)

Offline

#2 2023-06-13 08:47:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,923

Re: [SOLVED] Alternating boot order

If that is literally what is happening then that's a mainboard issue. UEFI should be able to mitigate this by not explicitly relying on a specific drive per se but being able to boot an NVRAM entry. What mainboard is this? And from one of the booted system what output do you get from

efibootmgr -uv

https://wiki.archlinux.org/title/List_o … n_services

Offline

#3 2023-06-14 03:30:11

TechWolf
Member
Registered: 2023-06-12
Posts: 3

Re: [SOLVED] Alternating boot order

I'm running a LG Gram 16T90P-K.AAE7U1 laptop. The strange thing is that when I swap the order to boot my 512 GB ssd, it boots up fine, its just when I swap the bios order to prefer my 1TB ssd it alternates between booting the 512 GB ssd and the 1 TB ssd. I've tried swaping the physical drive locations on the laptop motherboard, but it still alternates boot drives when the 1 TB ssd is prefered. This is the output from

 efibootmgr -uv 
BootCurrent: 0006
Timeout: 2 seconds
BootOrder: 0006,0000,2001,0004,0003,0001,0002,2002,2003
Boot0000* EFI Hard Drive (SHGP31-1000GM)        PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x0)/NVMe(0x1,FF-FF-FF-FF-FF-FF-FF-FF)/HD(1,GPT,d82c3a11-dee9-4cf2-b518-bb46d061009a,0x800,0xff800)
      dp: 02 01 0c 00 d0 41 03 0a 00 00 00 00 / 01 01 06 00 04 1c / 01 01 06 00 00 00 / 03 17 10 00 01 00 00 00 ff
ff ff ff ff ff ff ff / 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 f8 0f 00 00 00 00 00 11 3a 2c d8 e9 de f2 4c b5 18 bb 46 d0 61 00 9a 02 02 / 7f ff 04 00
    data: 52 43
Boot0001* HFM512GD3JX013N       PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/NVMe(0x1,AC-E4-2E-00-15-C1-6D-61)/HD(1,GPT,f95b285d-fa68-4e48-932d-e085955f02d0,0x800,0x82000)
      dp: 02 01 0c 00 d0 41 03 0a 00 00 00 00 / 01 01 06 00 00 1d / 01 01 06 00 00 00 / 03 17 10 00 01 00 00 00 ac
e4 2e 00 15 c1 6d 61 / 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 20 08 00 00 00 00 00 5d 28 5b f9 68 fa 48 4e 93 2d e0 85 95 5f 02 d0 02 02 / 7f ff 04 00
    data: 52 43
Boot0002* Windows Boot Manager  HD(1,GPT,f95b285d-fa68-4e48-932d-e085955f02d0,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)S
      dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 20 08 00 00 00 00 00 5d 28 5b f9 68 fa 48 4e 93 2d e0
85 95 5f 02 d0 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 13 41 01 00 00 00 10 00 00 00 04 00 00 00 7f ff 04 00
Boot0003* GRUB  HD(4,GPT,6e3a5b3a-904a-ab4a-aa71-eadf140dfc93,0xc3da800,0xfa000)/File(\EFI\GRUB\grubx64.efi)
      dp: 04 01 2a 00 04 00 00 00 00 a8 3d 0c 00 00 00 00 00 a0 0f 00 00 00 00 00 3a 5b 3a 6e 4a 90 4a ab aa 71 ea
df 14 0d fc 93 02 02 / 04 04 30 00 5c 00 45 00 46 00 49 00 5c 00 47 00 52 00 55 00 42 00 5c 00 67 00 72 00 75 00 62 00 78 00 36 00 34 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
Boot0004* arch  HD(4,GPT,6e3a5b3a-904a-ab4a-aa71-eadf140dfc93,0xc3da800,0xfa000)/File(\EFI\arch\grubx64.efi)
      dp: 04 01 2a 00 04 00 00 00 00 a8 3d 0c 00 00 00 00 00 a0 0f 00 00 00 00 00 3a 5b 3a 6e 4a 90 4a ab aa 71 ea
df 14 0d fc 93 02 02 / 04 04 30 00 5c 00 45 00 46 00 49 00 5c 00 61 00 72 00 63 00 68 00 5c 00 67 00 72 00 75 00 62 00 78 00 36 00 34 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
Boot0006* Linux Boot Manager    HD(1,GPT,d82c3a11-dee9-4cf2-b518-bb46d061009a,0x800,0xff800)/File(\EFI\systemd\systemd-bootx64.efi)
      dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 f8 0f 00 00 00 00 00 11 3a 2c d8 e9 de f2 4c b5 18 bb
46 d0 61 00 9a 02 02 / 04 04 46 00 5c 00 45 00 46 00 49 00 5c 00 73 00 79 00 73 00 74 00 65 00 6d 00 64 00 5c 00 73 00 79 00 73 00 74 00 65 00 6d 00 64 00 2d 00 62 00 6f 00 6f 00 74 00 78 00 36 00 34 00 2e 00 65 00 66 00 69 00 00
00 / 7f ff 04 00
Boot2001* EFI USB Device        
      dp: 7f ff 04 00
    data: 52 43
Boot2002* EFI DVD/CDROM 
      dp: 7f ff 04 00
    data: 52 43
Boot2003* EFI Network  
      dp: 7f ff 04 00
    data: 52 43

Offline

#4 2023-06-14 03:41:20

TechWolf
Member
Registered: 2023-06-12
Posts: 3

Re: [SOLVED] Alternating boot order

It suddenly stopped alternating, and is consistently able to boot into the new 1 TB ssd now?!?!?! All I did was keep the swapped ssds and cold booted the system. I'm gonna mark this as solved since the issue went away. Fingers crossed the issue doesn't come back.

Offline

Board footer

Powered by FluxBB