LinuxQuestions.org
Review your favorite Linux distribution.
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-06-2024, 06:23 AM   #61
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Original Poster
Rep: Reputation: 32

If I run update-grub from Manjaro there are no errors. Maybe I should see what happens in neon?

manjaro's contents:
Code:
00_header  15_ostree     25_bli        30_uefi-firmware  41_custom      README
10_linux   20_linux_xen  30_os-prober  40_custom         60_memtest86+
neon's gets no errors in update-grub. Here the grub.d contents in it
Code:
00_header        10_linux      20_linux_xen   30_os-prober      35_fwupd   41_custom
05_debian_theme  10_linux_zfs  20_memtest86+  30_uefi-firmware  40_custom  README

But, neon is unable to boot manjaro either from it's grub menu? edit - tried to boot neon first from f12 boot sequence but choosing neon brings up ubuntu's grub menu. It is a derivative but it identifies as neon in the bios, not buntu. Manjaro not bootable from it.

Last edited by Nishtya; 02-06-2024 at 06:34 AM. Reason: added neon
 
Old 02-06-2024, 07:13 AM   #62
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
NO, don't disable everything in /etc/grub.d
Did you disable 31_uefi-firmware to see what happens?
 
Old 02-06-2024, 07:59 AM   #63
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
NO, don't disable everything in /etc/grub.d
Did you disable 31_uefi-firmware to see what happens?
I disabled it and everything was the same errors. renabled it and 40. And I still have the manjaro in 40
 
Old 02-06-2024, 09:14 AM   #64
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
Disable 35_fwupd and 40_custom.save, run update-grub
 
Old 02-06-2024, 01:46 PM   #65
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
Disable 35_fwupd and 40_custom.save, run update-grub
No error on update. But reboot (ubuntu grub menu) chose manjaro from there and the grub error: must load kernel first.

Back to where I was I guess. I can still boot manjaro if I f12 fast enough to change the boot order. There is a way to get into all at least somehow. What else to try?

Code:
$ sudo chmod -x /etc/grub.d/35_fwupd
[sudo] password for stephanie: 

stephanie@stephanie-Inspiron-5566:~$ sudo chmod -x /etc/grub.d/40_custom.save
stephanie@stephanie-Inspiron-5566:~$ update-grub
grub-mkconfig: You must run this as root
stephanie@stephanie-Inspiron-5566:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.5.0-15-generic
Found initrd image: /boot/initrd.img-6.5.0-15-generic
Found linux image: /boot/vmlinuz-6.5.0-14-generic
Found initrd image: /boot/initrd.img-6.5.0-14-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Found KDE neon 5.27 (22.04) on /dev/sda4
/usr/sbin/grub-probe: error: unknown filesystem.
Found Manjaro Linux (23.1.3) on /dev/sdb1
/usr/sbin/grub-probe: error: unknown filesystem.
Adding boot menu entry for UEFI Firmware Settings ...
done
 
Old 02-06-2024, 05:52 PM   #66
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
post the contents of ubuntu /boot/grub/grub.cfg
 
Old 02-06-2024, 05:54 PM   #67
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Original Poster
Rep: Reputation: 32
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${initrdfail}" = 2 ]; then
   set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
   set next_entry="${prev_entry}"
   set prev_entry=
   save_env prev_entry
   if [ "${next_entry}" ]; then
      set initrdfail=2
   fi
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="Ubuntu"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function initrdfail {
    if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
      if [ -z "${initrdfail}" ]; then
        set initrdfail=1
        if [ -n "${boot_once}" ]; then
          set prev_entry="${default}"
          save_env prev_entry
        fi
      fi
      save_env initrdfail
    fi; fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  dfbc7bcc-3573-4df6-8d67-1982f996a6f8
else
  search --no-floppy --fs-uuid --set=root dfbc7bcc-3573-4df6-8d67-1982f996a6f8
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 0,0,0; then
  clear
fi

color_normal=white/black

if [ -e ${prefix}/themes/kubuntu-logo/theme.txt ]; then
  insmod png
  theme=${prefix}/themes/kubuntu-logo/theme.txt
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if [ ${grub_platform} != pc ]; then
      set linux_gfx_mode=keep
    elif hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-dfbc7bcc-3573-4df6-8d67-1982f996a6f8' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  dfbc7bcc-3573-4df6-8d67-1982f996a6f8
	else
	  search --no-floppy --fs-uuid --set=root dfbc7bcc-3573-4df6-8d67-1982f996a6f8
	fi
	linux	/boot/vmlinuz-6.5.0-15-generic root=UUID=dfbc7bcc-3573-4df6-8d67-1982f996a6f8 ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-6.5.0-15-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-dfbc7bcc-3573-4df6-8d67-1982f996a6f8' {
	menuentry 'Ubuntu, with Linux 6.5.0-15-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.5.0-15-generic-advanced-dfbc7bcc-3573-4df6-8d67-1982f996a6f8' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  dfbc7bcc-3573-4df6-8d67-1982f996a6f8
		else
		  search --no-floppy --fs-uuid --set=root dfbc7bcc-3573-4df6-8d67-1982f996a6f8
		fi
		echo	'Loading Linux 6.5.0-15-generic ...'
		linux	/boot/vmlinuz-6.5.0-15-generic root=UUID=dfbc7bcc-3573-4df6-8d67-1982f996a6f8 ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.5.0-15-generic
	}
	menuentry 'Ubuntu, with Linux 6.5.0-15-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.5.0-15-generic-recovery-dfbc7bcc-3573-4df6-8d67-1982f996a6f8' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  dfbc7bcc-3573-4df6-8d67-1982f996a6f8
		else
		  search --no-floppy --fs-uuid --set=root dfbc7bcc-3573-4df6-8d67-1982f996a6f8
		fi
		echo	'Loading Linux 6.5.0-15-generic ...'
		linux	/boot/vmlinuz-6.5.0-15-generic root=UUID=dfbc7bcc-3573-4df6-8d67-1982f996a6f8 ro recovery nomodeset dis_ucode_ldr 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.5.0-15-generic
	}
	menuentry 'Ubuntu, with Linux 6.5.0-14-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.5.0-14-generic-advanced-dfbc7bcc-3573-4df6-8d67-1982f996a6f8' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  dfbc7bcc-3573-4df6-8d67-1982f996a6f8
		else
		  search --no-floppy --fs-uuid --set=root dfbc7bcc-3573-4df6-8d67-1982f996a6f8
		fi
		echo	'Loading Linux 6.5.0-14-generic ...'
		linux	/boot/vmlinuz-6.5.0-14-generic root=UUID=dfbc7bcc-3573-4df6-8d67-1982f996a6f8 ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.5.0-14-generic
	}
	menuentry 'Ubuntu, with Linux 6.5.0-14-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.5.0-14-generic-recovery-dfbc7bcc-3573-4df6-8d67-1982f996a6f8' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  dfbc7bcc-3573-4df6-8d67-1982f996a6f8
		else
		  search --no-floppy --fs-uuid --set=root dfbc7bcc-3573-4df6-8d67-1982f996a6f8
		fi
		echo	'Loading Linux 6.5.0-14-generic ...'
		linux	/boot/vmlinuz-6.5.0-14-generic root=UUID=dfbc7bcc-3573-4df6-8d67-1982f996a6f8 ro recovery nomodeset dis_ucode_ldr 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.5.0-14-generic
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/11_linux_zfs ###
### END /etc/grub.d/11_linux_zfs ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/21_memtest86+ ###
### END /etc/grub.d/21_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober_proxy ###
menuentry "Manjaro Linux (23.1.3) (on /dev/sdb1)" --class manjarolinux --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-/dev/sdb1' {
	insmod part_gpt
	linux /boot/vmlinuz-6.5-x86_64 root=UUID=a2f3ae10-b2ab-46a9-ad41-980e9d9cac13 rw quiet udev.log_priority=3
	initrd /boot/intel-ucode.img
}
submenu "Advanced options for Manjaro Linux (23.1.3) (on /dev/sdb1)"{
menuentry "Manjaro Linux (on /dev/sdb1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.5-x86_64--/dev/sdb1' {
		insmod part_gpt
		linux /boot/vmlinuz-6.5-x86_64 root=UUID=a2f3ae10-b2ab-46a9-ad41-980e9d9cac13 rw quiet udev.log_priority=3
		initrd /boot/intel-ucode.img
}
menuentry "Manjaro Linux (Kernel 6.5.13-7-MANJARO x64) (on /dev/sdb1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.5-x86_64--/dev/sdb1' {
		insmod part_gpt
		linux /boot/vmlinuz-6.5-x86_64 root=UUID=a2f3ae10-b2ab-46a9-ad41-980e9d9cac13 rw quiet udev.log_priority=3
		initrd /boot/intel-ucode.img
}
menuentry "Manjaro Linux (Kernel 6.5.13-7-MANJARO x64 - fallback initramfs) (on /dev/sdb1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.5-x86_64--/dev/sdb1' {
		insmod part_gpt
		linux /boot/vmlinuz-6.5-x86_64 root=UUID=a2f3ae10-b2ab-46a9-ad41-980e9d9cac13 rw quiet udev.log_priority=3
		initrd /boot/initramfs-6.5-x86_64-fallback.img
}
}
menuentry "KDE neon 5.27 (22.04) (on /dev/sda4)" --class neon --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-cf79ff43-f465-470d-87ab-b2f2768d6738' {
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt4'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  cf79ff43-f465-470d-87ab-b2f2768d6738
	else
	  search --no-floppy --fs-uuid --set=root cf79ff43-f465-470d-87ab-b2f2768d6738
	fi
	linux /boot/vmlinuz-6.5.0-15-generic root=UUID=cf79ff43-f465-470d-87ab-b2f2768d6738 ro quiet splash $vt_handoff
	initrd /boot/initrd.img-6.5.0-15-generic
}
submenu "Advanced options for KDE neon 5.27 (22.04) (on /dev/sda4)"{
menuentry "Neon GNU/Linux (on /dev/sda4)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.5.0-15-generic--cf79ff43-f465-470d-87ab-b2f2768d6738' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  cf79ff43-f465-470d-87ab-b2f2768d6738
		else
		  search --no-floppy --fs-uuid --set=root cf79ff43-f465-470d-87ab-b2f2768d6738
		fi
		linux /boot/vmlinuz-6.5.0-15-generic root=UUID=cf79ff43-f465-470d-87ab-b2f2768d6738 ro quiet splash $vt_handoff
		initrd /boot/initrd.img-6.5.0-15-generic
}
menuentry "Neon GNU/Linux, with Linux 6.5.0-15-generic (on /dev/sda4)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.5.0-15-generic--cf79ff43-f465-470d-87ab-b2f2768d6738' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  cf79ff43-f465-470d-87ab-b2f2768d6738
		else
		  search --no-floppy --fs-uuid --set=root cf79ff43-f465-470d-87ab-b2f2768d6738
		fi
		linux /boot/vmlinuz-6.5.0-15-generic root=UUID=cf79ff43-f465-470d-87ab-b2f2768d6738 ro quiet splash $vt_handoff
		initrd /boot/initrd.img-6.5.0-15-generic
}
menuentry "Neon GNU/Linux, with Linux 6.5.0-15-generic (recovery mode) (on /dev/sda4)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.5.0-15-generic-root=UUID=cf79ff43-f465-470d-87ab-b2f2768d6738 ro recovery nomodeset dis_ucode_ldr-cf79ff43-f465-470d-87ab-b2f2768d6738' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  cf79ff43-f465-470d-87ab-b2f2768d6738
		else
		  search --no-floppy --fs-uuid --set=root cf79ff43-f465-470d-87ab-b2f2768d6738
		fi
		linux /boot/vmlinuz-6.5.0-15-generic root=UUID=cf79ff43-f465-470d-87ab-b2f2768d6738 ro recovery nomodeset dis_ucode_ldr
		initrd /boot/initrd.img-6.5.0-15-generic
}
menuentry "Neon GNU/Linux, with Linux 6.5.0-14-generic (on /dev/sda4)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.5.0-14-generic--cf79ff43-f465-470d-87ab-b2f2768d6738' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  cf79ff43-f465-470d-87ab-b2f2768d6738
		else
		  search --no-floppy --fs-uuid --set=root cf79ff43-f465-470d-87ab-b2f2768d6738
		fi
		linux /boot/vmlinuz-6.5.0-14-generic root=UUID=cf79ff43-f465-470d-87ab-b2f2768d6738 ro quiet splash $vt_handoff
		initrd /boot/initrd.img-6.5.0-14-generic
}
menuentry "Neon GNU/Linux, with Linux 6.5.0-14-generic (recovery mode) (on /dev/sda4)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.5.0-14-generic-root=UUID=cf79ff43-f465-470d-87ab-b2f2768d6738 ro recovery nomodeset dis_ucode_ldr-cf79ff43-f465-470d-87ab-b2f2768d6738' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  cf79ff43-f465-470d-87ab-b2f2768d6738
		else
		  search --no-floppy --fs-uuid --set=root cf79ff43-f465-470d-87ab-b2f2768d6738
		fi
		linux /boot/vmlinuz-6.5.0-14-generic root=UUID=cf79ff43-f465-470d-87ab-b2f2768d6738 ro recovery nomodeset dis_ucode_ldr
		initrd /boot/initrd.img-6.5.0-14-generic
}
menuentry "Neon GNU/Linux, with Linux 5.15.0-92-generic (on /dev/sda4)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-92-generic--cf79ff43-f465-470d-87ab-b2f2768d6738' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  cf79ff43-f465-470d-87ab-b2f2768d6738
		else
		  search --no-floppy --fs-uuid --set=root cf79ff43-f465-470d-87ab-b2f2768d6738
		fi
		linux /boot/vmlinuz-5.15.0-92-generic root=UUID=cf79ff43-f465-470d-87ab-b2f2768d6738 ro quiet splash $vt_handoff
		initrd /boot/initrd.img-5.15.0-92-generic
}
menuentry "Neon GNU/Linux, with Linux 5.15.0-92-generic (recovery mode) (on /dev/sda4)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-92-generic-root=UUID=cf79ff43-f465-470d-87ab-b2f2768d6738 ro recovery nomodeset dis_ucode_ldr-cf79ff43-f465-470d-87ab-b2f2768d6738' {
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  cf79ff43-f465-470d-87ab-b2f2768d6738
		else
		  search --no-floppy --fs-uuid --set=root cf79ff43-f465-470d-87ab-b2f2768d6738
		fi
		linux /boot/vmlinuz-5.15.0-92-generic root=UUID=cf79ff43-f465-470d-87ab-b2f2768d6738 ro recovery nomodeset dis_ucode_ldr
		initrd /boot/initrd.img-5.15.0-92-generic
}
}








set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober_proxy ###

### BEGIN /etc/grub.d/31_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
### END /etc/grub.d/31_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "Windows Boot Manager (on /dev/sda1)" --class windows --class os $menuentry_id_option 'osprober-efi-89E2-26CF' {
	insmod part_gpt
	insmod fat
	set root='hd0,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  89E2-26CF
	else
	  search --no-floppy --fs-uuid --set=root 89E2-26CF
	fi
	chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry "Manjaro bootloader (on /dev/sda1)" {
	insmod part_gpt
	insmod fat
	set root='hd0,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  89E2-26CF
	else
	  search --no-floppy --fs-uuid --set=root 89E2-26CF
	fi
	chainloader /EFI/Manjaro/grubx64.efi
}
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
 
Old 02-06-2024, 06:11 PM   #68
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
The grub manjaro entry that is after the windows enrty, it should be the last one in the grub menu list, did you try that one?

Last edited by colorpurple21859; 02-06-2024 at 06:13 PM.
 
Old 02-06-2024, 06:28 PM   #69
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Original Poster
Rep: Reputation: 32
Try what where & how, could you be more specific? I believe that is what we plopped into good ol 40_custom but not sure of anything at this point? How would I go about trying it in particular if that is what you are referencing? Lay some commands on me.
 
Old 02-06-2024, 06:29 PM   #70
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
What is the the last menuentry at the grub menu when you boot the system?
 
Old 02-06-2024, 06:58 PM   #71
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Original Poster
Rep: Reputation: 32
I just tried it, the last one in the menu and it worked from ubuntu's grub! I am in manjaro now. The manjaro in second place just gives the kernel load error. How do we remove that non-working one and I wonder what the difference is. Is this going to be a problem if manjaro gets an update? I need to know what fix does what so I don't keep running for help
 
Old 02-06-2024, 07:02 PM   #72
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
The last manjaro entry will still work when manjaro gets an update. What the entry does is chainload to manjaro grub bootloader. Post the contents of /etc/grub.d/40_custom.save
 
Old 02-06-2024, 07:13 PM   #73
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Original Poster
Rep: Reputation: 32
We disabled this back around post #65 along with 31_fwupd but here are the contents of 40.save. And is there a way to list what files in there are disabled/not?

Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "Windows Boot Manager (on /dev/sda1)" --class windows --class os $menuentry_id_option 'osprober-efi-89E2-26CF' {
	insmod part_gpt
	insmod fat
	set root='hd0,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  89E2-26CF
	else
	  search --no-floppy --fs-uuid --set=root 89E2-26CF
	fi
	chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry ‘Manjaro’ {
search --no-floppy --fs-uuid --set=root <uuid of sda1>
Chainloader /EFI/manjaro/grubx64.efi
}
while waiting I have just been booting the others (except windows I can't deal with that tonight if it isn't working). Well I f12'd and it should have brought me to neon's grub menu but it loads ubuntu's. Strangest thing to me seeing how it does have its own entry In the UEFI boot order.

Last edited by Nishtya; 02-06-2024 at 07:25 PM. Reason: update
 
Old 02-06-2024, 07:26 PM   #74
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
The bad manjaro entries are generated by os-prober, I don't think you can do a whole lot about those, because any changes to /boot/grub/grub.cfg will be over-ridden the next time update-grub is run.
I think the problem with 40_custom.save is this line:
search --no-floppy --fs-uuid --set=root <uuid of sda1>

should be like this:
search --no-floppy --fs-uuid --set=root 89E2-26CF

Last edited by colorpurple21859; 02-06-2024 at 07:28 PM.
 
Old 02-06-2024, 07:40 PM   #75
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Original Poster
Rep: Reputation: 32
If 40 non-save is working can we just delete the .save one? And is there a way to remove the os-prober file with the bad manjaro?

And how if at all can I get neon's grub back? I could try removing it from BIOS setup's boot loader but I have had trouble getting it found again (I think I did it with mageia but replaced with manjaro eventually)
 
  


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 09:39 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