LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-05-2024, 07:10 AM   #31
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590

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?
 
Old 02-05-2024, 09:02 AM   #32
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Original Poster
Rep: Reputation: 32
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?

Last edited by Nishtya; 02-05-2024 at 09:07 AM. Reason: reboot
 
Old 02-05-2024, 09:22 AM   #33
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
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
 
Old 02-05-2024, 09:27 AM   #34
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Another thought run this before the mv command and see what happens
Code:
sudo efibootmgr -B -b 0004
 
Old 02-05-2024, 09:32 AM   #35
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by colorpurple21859 View Post
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
 
Old 02-05-2024, 10:00 AM   #36
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Original Poster
Rep: Reputation: 32
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
?

Last edited by Nishtya; 02-05-2024 at 10:01 AM. Reason: typo
 
Old 02-05-2024, 02:20 PM   #37
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
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.

Last edited by colorpurple21859; 02-05-2024 at 02:23 PM.
 
Old 02-05-2024, 02:33 PM   #38
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Original Poster
Rep: Reputation: 32
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.

Last edited by Nishtya; 02-05-2024 at 02:45 PM. Reason: further info
 
Old 02-05-2024, 04:59 PM   #39
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
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
 
Old 02-05-2024, 05:05 PM   #40
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Original Poster
Rep: Reputation: 32
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.
 
Old 02-05-2024, 05:16 PM   #41
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Boot into Ubuntu, post the output of:
Code:
sudo ls -R /boot/efi/EFI
 
Old 02-05-2024, 05:28 PM   #42
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Original Poster
Rep: Reputation: 32
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?

Last edited by Nishtya; 02-05-2024 at 05:33 PM.
 
Old 02-05-2024, 05:33 PM   #43
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Did you add the menu entry to 40_custom?
 
Old 02-05-2024, 05:35 PM   #44
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Original Poster
Rep: Reputation: 32
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?

Last edited by Nishtya; 02-05-2024 at 05:37 PM.
 
Old 02-05-2024, 05:38 PM   #45
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Code:
sudo nano /etc/grub.d/40_custom
 
  


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
EFI System Partition: Using it as /boot versus /boot/efi MirceaKitsune Linux - General 4 04-06-2021 11:07 AM
[SOLVED] Do M.2 SSDs have have the writes issues like older sata SSDs? linux2021 Linux - Newbie 5 08-19-2020 03:35 PM
[SOLVED] Ooooy. EFI boot mmx64.efi.efi not found bulgin Linux - Newbie 12 12-20-2018 11:03 AM
resize efi question [/boot/efi] with boot flag gparted mtdew3q Fedora 4 03-19-2017 10:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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