LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   2 SSDs each with EFI boot - 4 OS installs - why internal doesn't boot first? (https://www.linuxquestions.org/questions/linux-software-2/2-ssds-each-with-efi-boot-4-os-installs-why-internal-doesnt-boot-first-4175733516/)

colorpurple21859 02-05-2024 07:10 AM

Skip the last suggestion it was a bad idea, it amounted to installing the ubuntu bootloader to the external drive. Boot the system with the usb plugged in, doesn't matter which distro:
Code:

sudo efibootmgr -n 0001
Reboot with the usb plugged in, what happens?

Nishtya 02-05-2024 09:02 AM

this is the result of the command with usb plugged in:
Code:

BootNext: 0001
BootCurrent: 0004
Timeout: 2 seconds
BootOrder: 0001,0000,0002,0004,0005
Boot0000* Windows Boot Manager
Boot0001* ubuntu
Boot0002* neon
Boot0004* Manjaro
Boot0005* UEFI: Lexar SSD NS100 256GB, Partition 1

and I understand I am to keep it plugged in and reboot. Here goes, rebooted with USB plugged in and it went to manjaro menu with ubuntu selected (it was last booted I think that it how its been working).

Nothing left but to wipe off that manjaro and its EFI partition? This is working fine with the usb unplugged it shouldn't make it worse? I would need to update grub in ubuntu as manjaro will be gone and then remove manjaro from the boot sequence in setup, right?

colorpurple21859 02-05-2024 09:22 AM

One other thing to try, boot into manjaro
Code:

sudo mv /boot/efi/EFI/BOOT/Bootx64.efi /boot/efi/EFI/BOOT/oldbootx64
Not sure about the capitalization

reboot. I still think the issue is a setting in the bios. You may just have a flaky bios

colorpurple21859 02-05-2024 09:27 AM

Another thought run this before the mv command and see what happens
Code:

sudo efibootmgr -B -b 0004

Nishtya 02-05-2024 09:32 AM

Quote:

Originally Posted by colorpurple21859 (Post 6481536)
Another thought run this before the mv command and see what happens
Code:

sudo efibootmgr -B -b 0004

ok below is output. Do I try the mv now? or reboot first?

Code:

BootCurrent: 0004
Timeout: 2 seconds
BootOrder: 0001,0000,0002,0005
Boot0000* Windows Boot Manager        HD(1,GPT,837bc813-8438-41e7-ba6b-f2af19d3949f,0x800,0x113000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d0000002c000100000010000000040000007fff0400
Boot0001* ubuntu        HD(1,GPT,837bc813-8438-41e7-ba6b-f2af19d3949f,0x800,0x113000)/File(\EFI\ubuntu\shimx64.efi)
Boot0002* neon        HD(1,GPT,837bc813-8438-41e7-ba6b-f2af19d3949f,0x800,0x113000)/File(\EFI\neon\shimx64.efi)
Boot0005* UEFI: Lexar SSD NS100 256GB, Partition 1        HD(1,GPT,3de1a57a-f04e-4771-b896-09c935589e6b,0x800,0x113000)/File(EFI\Microsoft\Boot\bootmgfw.efi)0000424f


Nishtya 02-05-2024 10:00 AM

complications in boot
 
OK, I tried rebooting before mv and it goes straight to windows. I had to unplug external and it booted to ubuntu grub menu. I don't care about the manjaro install on the external.

How do I clean up here in ubuntu now? Once it windows and neon all booting nice I will format that external deleting the efi and manjaro partition. But I want to make sure I am cleaned up in good order internal including BIOs here before I wipe the external. Help appreciated. I have a cheat sheet that goes like this for a previous disaster and I booted a live USB to rescue it- would it be suitable in this situation? Other times the below has just given me errors, it only worked once actually

Code:

sudo mount /dev/sda3 /mnt
sudo mount /dev/sda1 /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sda
update-grub

?

colorpurple21859 02-05-2024 02:20 PM

before deleting anything, remove the esp flag from the external drive efi partition and see if that changes anything. If you want to keep manjaro, manually create a menu entry in ubuntu grub menu to call manjaro grub.cfg once we get the external drive from taking control of the boot process.

Nishtya 02-05-2024 02:33 PM

Well a little too late. As all were fine as long as external wasn't plugged in (at boot time). I removed manjaro and zapped away that efi partition. All fine on the internal. Tried installing manjaro cinnamon, installer wanted to create an boot on the external but I told it no to use sda1. Did so. But I have a bad wifi here at nursing home and much trouble trying to update the install.

LSS - the only way I can boot the new manjaro is f12 to one-time-boot and move it up ahead. Update-grub in ubuntu did add manjaro to it's grub but it unbootable from there - grub error can't find kernel. Got into manjaro tried and update grub there but it not installed so I installed it now I am trying to get ubuntu grub back in charge (top of the boot) and make the entry for manjaro in its grub menu bootable. Let me know what you want me to get outputs of from where.

External drive no longer in control. I think it is a BIOS thing - plug in a removable that is bootable and machine gonna boot it. But the external is not bootable but manjaro runs on it fine when I change f12 boot order and choose it.

What we want to do now is get manjaro choice working in the ubuntu grub. The error if I choose it there is it can find vm...blah blah kernel not found blah (obviously doing this from memory) and it doesn't stay there it bounces back to grub menu so I pick ubuntu. And here I am.

colorpurple21859 02-05-2024 04:59 PM

to change boot order
Code:

sudo efibootmgr -o xxxxx xxxxx xxxxx xxxxx
or do as in post 34 to remove manjaro from the boot order. Manjaro number may not be 0004 after reinstalling.
Boot into Ubuntu, add this to /etc/grub.d/40_custom
Code:

menuentry ‘Manjaro’ {
search --no-floppy --fs-uuid --set=root <uuid of sda1>
Chainloader /EFI/manjaro/grubx64.efi
}

Run update-grub

Nishtya 02-05-2024 05:05 PM

I am confused, I just can't get to manjaro from ubuntus grub menu without a grub error. I don't think I need efi changes as it is working fine in the order I want, but everytime I want manjaro I have to change the boot sequence hitting f12 on the dell menu. I need to fix manjaro entry in ubuntu grub.cfg I guess but not sure how and where.

colorpurple21859 02-05-2024 05:16 PM

Boot into Ubuntu, post the output of:
Code:

sudo ls -R /boot/efi/EFI

Nishtya 02-05-2024 05:28 PM

Code:

/boot/efi/EFI:
Boot              debian  mageia  Microsoft  pclinuxos
com.solus-project  Dell    Manjaro  neon      ubuntu

/boot/efi/EFI/Boot:
bootx64.efi  fbx64.efi  mmx64.efi

/boot/efi/EFI/com.solus-project:
bootloaderx64.efi  initrd-com.solus-project.current.6.6.12-271
BOOTX64.CSV        kernel-com.solus-project.current.6.6.12-271
grubx64.efi        mmx64.efi

/boot/efi/EFI/debian:
BOOTX64.CSV  fbx64.efi  grub.cfg  grubx64.efi  mmx64.efi  shimx64.efi

/boot/efi/EFI/Dell:
logs

/boot/efi/EFI/Dell/logs:
diags_current.xml  diags_previous.xml

/boot/efi/EFI/mageia:
grubx64.efi

/boot/efi/EFI/Manjaro:
grubx64.efi

/boot/efi/EFI/Microsoft:
Boot  Recovery

/boot/efi/EFI/Microsoft/Boot:
BCD          en-GB  kd_02_10df.dll      ko-KR        sk-SK
BCD.LOG      en-US  kd_02_10ec.dll      lt-LT        sl-SI
BCD.LOG1      es-ES  kd_02_1137.dll      lv-LV        sr-Latn-RS
BCD.LOG2      es-MX  kd_02_14e4.dll      memtest.efi  sv-SE
bg-BG        et-EE  kd_02_15b3.dll      nb-NO        tr-TR
bootmgfw.efi  fi-FI  kd_02_1969.dll      nl-NL        uk-UA
bootmgr.efi  Fonts  kd_02_19a2.dll      pl-PL        winsipolicy.p7b
BOOTSTAT.DAT  fr-CA  kd_02_1af4.dll      pt-BR        zh-CN
boot.stl      fr-FR  kd_02_8086.dll      pt-PT        zh-TW
cs-CZ        hr-HR  kd_07_1415.dll      qps-ploc
da-DK        hu-HU  kd_0C_8086.dll      Resources
de-DE        it-IT  kdnet_uart16550.dll  ro-RO
el-GR        ja-JP  kdstub.dll          ru-RU

/boot/efi/EFI/Microsoft/Boot/bg-BG:
bootmgfw.efi.mui  bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/cs-CZ:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/da-DK:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/de-DE:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/el-GR:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/en-GB:
bootmgfw.efi.mui  bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/en-US:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/es-ES:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/es-MX:
bootmgfw.efi.mui  bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/et-EE:
bootmgfw.efi.mui  bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/fi-FI:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/Fonts:
chs_boot.ttf  malgun_boot.ttf  msjh_boot.ttf  segmono_boot.ttf
cht_boot.ttf  malgunn_boot.ttf  msjhn_boot.ttf  segoen_slboot.ttf
jpn_boot.ttf  meiryo_boot.ttf  msyh_boot.ttf  segoe_slboot.ttf
kor_boot.ttf  meiryon_boot.ttf  msyhn_boot.ttf  wgl4_boot.ttf

/boot/efi/EFI/Microsoft/Boot/fr-CA:
bootmgfw.efi.mui  bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/fr-FR:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/hr-HR:
bootmgfw.efi.mui  bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/hu-HU:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/it-IT:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/ja-JP:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/ko-KR:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/lt-LT:
bootmgfw.efi.mui  bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/lv-LV:
bootmgfw.efi.mui  bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/nb-NO:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/nl-NL:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/pl-PL:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/pt-BR:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/pt-PT:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/qps-ploc:
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/Resources:
bootres.dll  en-US

/boot/efi/EFI/Microsoft/Boot/Resources/en-US:
bootres.dll.mui

/boot/efi/EFI/Microsoft/Boot/ro-RO:
bootmgfw.efi.mui  bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/ru-RU:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/sk-SK:
bootmgfw.efi.mui  bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/sl-SI:
bootmgfw.efi.mui  bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/sr-Latn-RS:
bootmgfw.efi.mui  bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/sv-SE:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/tr-TR:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/uk-UA:
bootmgfw.efi.mui  bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/zh-CN:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/zh-TW:
bootmgfw.efi.mui  bootmgr.efi.mui  memtest.efi.mui

/boot/efi/EFI/Microsoft/Recovery:
BCD  BCD.LOG  BCD.LOG1  BCD.LOG2

/boot/efi/EFI/neon:
BOOTX64.CSV  grub.cfg  grubx64.efi  mmx64.efi  shimx64.efi

/boot/efi/EFI/pclinuxos:
grubx64.efi

/boot/efi/EFI/ubuntu:
BOOTX64.CSV  grub.cfg  grubx64.efi  mmx64.efi  shimx64.efi

BTW why are old installs in there? mageia, pclos but not others like watt and bunsen?

colorpurple21859 02-05-2024 05:33 PM

Did you add the menu entry to 40_custom?

Nishtya 02-05-2024 05:35 PM

I don't recall you tell me to this time around. I will check through the threads or do you remember how?
edit - looked back at that post but really didn't understand it. I don't want to remove manjaro I just want to add it to 40 custom, would it still be the same one even if it a different flavor?

colorpurple21859 02-05-2024 05:38 PM

Code:

sudo nano /etc/grub.d/40_custom


All times are GMT -5. The time now is 06:11 AM.