Choose style:

Author Topic: How to edit EFI Bootloader(SOLVED)  (Read 447 times)

0 Members and 1 Guest are viewing this topic.

Offline alynur

  • Trusted User
  • Veteran
  • *****
  • Posts: 1010
  • Karma: 56
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
How to edit EFI Bootloader(SOLVED)
« on: January 24, 2019, 11:21:21 am »
Hello peppermint people, I successfully installed peppermint 9R and Ubuntu 18.04 into a new SSD. They both work great, peppermint boot is about 15 seconds, wow! I don't know why, because I followed murrymints advice and installed the Ubuntu's bootloaer into it's / partition, I figured it wasn't going to show until I booted up peppermint and ran sudo update-grub. Well it definitely showed up in the efi bootloader because it is there and I can boot into it. The problem is that it, Ubuntu, is the first in line and will boot automatically which I don't want to happen. I prefer that Peppermint be the default system to boot as it was in bios mode. So how do I rearrange the boot order in the efi boot loader? 

Code: [Select]
albert@albert-desktop ~ $ efibootmgr -v
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0009,000A,0005,0006,0007
Boot0000* ubuntu HD(1,GPT,a214246a-8542-4466-9c4a-1df2c816f958,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0005* USB BBS(USB,,0x0)..GO..NO........w.G.e.n.e.r.i.c. .U.S.B. .S.D. .R.e.a.d.e.r. .1...0.0....................A.......................J..Gd-.;.A..MQ..L.G.e.n.e.r.i.c. .U.S.B. .S.D. .R.e.a.d.e.r. .1...0.0........BO..NO.........G.e.n.e.r.i.c. .U.S.B. .C.F. .R.e.a.d.e.r. .1...0.1....................A...............................J..Gd-.;.A..MQ..L.G.e.n.e.r.i.c. .U.S.B. .C.F. .R.e.a.d.e.r. .1...0.1........BO..NO.........G.e.n.e.r.i.c. .U.S.B. .S.M. .R.e.a.d.e.r. .1...0.2....................A...............................J..Gd-.;.A..MQ..L.G.e.n.e.r.i.c. .U.S.B. .S.M. .R.e.a.d.e.r. .1...0.2........BO..NO........i.G.e.n.e.r.i.c.-.S.D./.M.M.C. .1...0.0....................A.......................<..Gd-.;.A..MQ..L.G.e.n.e.r.i.c.-.S.D./.M.M.C. .1...0.0........BO..NO.........G.e.n.e.r.i.c.-.C.o.m.p.a.c.t. .F.l.a.s.h. .1...0.1....................A...............................J..Gd-.;.A..MQ..L.G.e.n.e.r.i.c.-.C.o.m.p.a.c.t. .F.l.a.s.h. .1...0.1........BO..NO.........G.e.n.e.r.i.c.-.S.M./.x.D.-.P.i.c.t.u.r.e. .1...0.2....................A...............................J..Gd-.;.A..MQ..L.G.e.n.e.r.i.c.-.S.M./.x.D.-.P.i.c.t.u.r.e. .1...0.2........BO..NO........w.G.e.n.e.r.i.c.-.M.S./.M.S.-.P.r.o. .1...0.3....................A...............................B..Gd-.;.A..MQ..L.G.e.n.e.r.i.c.-.M.S./.M.S.-.P.r.o. .1...0.3........BO..NO.........G.e.n.e.r.i.c. .U.S.B. .M.S. .R.e.a.d.e.r. .1...0.3....................A...............................J..Gd-.;.A..MQ..L.G.e.n.e.r.i.c. .U.S.B. .M.S. .R.e.a.d.e.r. .1...0.3........BO
Boot0006* CD/DVD Drive BBS(CDROM,,0x0)..GO..NO........m.A.T.A.P.I. . . .i.H.A.S.1.2.4. . . .W....................A.........................>..Gd-.;.A..MQ..L.5.3.4.2.0.6. .2.5.2.3.8.7.3.0.5.6.0.5.0........BO
Boot0007* Hard Drive BBS(HD,,0x0)..GO..NO........m.S.A.T.A. .S.S.D....................A.........................>..Gd-.;.A..MQ..L.8.1.8.0.9.0.4.2.0.0.6.2.1.7. . . . . . ........BO
Boot0009* UEFI OS HD(1,GPT,a214246a-8542-4466-9c4a-1df2c816f958,0x800,0x100000)/File(\EFI\BOOT\BOOTX64.EFI)
Boot000A* ubuntu HD(1,GPT,a214246a-8542-4466-9c4a-1df2c816f958,0x800,0x100000)/File(\EFI\UBUNTU\GRUBX64.EFI)

Can I just change; BootOrder: 0000,0009,000A,0005,0006,0007 to read
BootOrder: 0009,0000,000A,0005,0006,0007 and how and where would I make that change?  :-\
« Last Edit: January 24, 2019, 12:39:45 pm by alynur »
What was I thinking?

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3046
  • Karma: 563
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: How to edit EFI Bootloader
« Reply #1 on: January 24, 2019, 11:32:15 am »
Hi Aylnur,

The problem is ANY Ubuntu based OS will be know as Ubuntu in efibootmgr.  So if you want Peppermint to load first simply install Peppermints grub again to the SSD

Code: [Select]
sudo grub-install /dev/sda

Assuming SDA is the new SSD and leave ubuntu as the first one in the uefi boot order.  At least that is what I have found.

The way you alter the order of the efiboot manager is by using the following command  the -o  determining the order of boot

Code: [Select]
sudo efibootmgr -o 0000,0009,000A,0005,0006,0007

just change the numbering order and put the one you want to boot first.

Hope this helps

Regards Zeb...
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

Linux User #565092
P10 x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k 3840x2160 - 1 x 34" 5120x2160
P9/10 @ P9 x64 Laptop - i7-7700HQ @ 2.80GHz - 8Gb RAM - Nvidia GTX1050 4Gb - 15.6" HD 1920x1080

Online murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 1964
  • Karma: 341
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: How to edit EFI Bootloader
« Reply #2 on: January 24, 2019, 11:38:28 am »
Sorry about that, I forgot how the EFI order would work. Still, it should be easy enough to sort out, as Zeb says.

Offline alynur

  • Trusted User
  • Veteran
  • *****
  • Posts: 1010
  • Karma: 56
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: How to edit EFI Bootloader
« Reply #3 on: January 24, 2019, 12:39:16 pm »
Thanks zebedeeboss, reinstalling grub did the trick! I'm glad you jumped in, I've seen your crazy harddrive set up and I figured you're the expert.
No problems murraymint, all's well that ends well.  :)
What was I thinking?