# update-grub2
sturmvogel wrote:I have a similar situation with a dualboot machine (if i understand your description right). The Mageia Grub is on the first SSD and the Tumbleweed Grub is on the second SSD. I'm using the Tumbleweed Grub to boot into Mageia (because the Mageia Grub is not working properly on this machine). Every time a new Kernel in Mageia is installed the Tumbleweed Grub doesn't point to the newest one. Thats why i have to update the Tumbleweed Grub. Either the way benmc is mentioning, or a little more complicated: Uncheck the box "Probe for other OS". Save. Check the box "Probe for other OS" again. Save. (In my case in Tumbleweed Grub, in your case in your other distros Grub). Everything works fine after that.
update-grub2
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-5.10.78-desktop-1.mga8
Found initrd image: /boot/initrd-5.10.78-desktop-1.mga8.img
Found linux image: /boot/vmlinuz-5.10.75-desktop-1.mga8
Found initrd image: /boot/initrd-5.10.75-desktop-1.mga8.img
Found linux image: /boot/vmlinuz-5.10.70-desktop-1.mga8
Found initrd image: /boot/initrd-5.10.70-desktop-1.mga8.img
Found linux image: /boot/vmlinuz-5.10.62-desktop-1.mga8
Found initrd image: /boot/initrd-5.10.62-desktop-1.mga8.img
Found linux image: /boot/vmlinuz-5.10.16-desktop-1.mga8
Found initrd image: /boot/initrd-5.10.16-desktop-1.mga8.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Found Garuda Linux on /dev/sda2
Adding boot menu entry for UEFI Firmware Settings ...
done
update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/garuda-dr460nized/theme.txt
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot: intel-ucode.img initramfs-linux-zen-fallback.img
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/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi
Found Garuda Linux on /dev/sda2
Found Mageia 8 (8) on /dev/sda3
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
Info: Separate boot partition not detected
Found snapshot: 2021-11-20 15:52:56 | timeshift-btrfs/snapshots/2021-11-20_15-52-56/@
Found snapshot: 2021-11-20 12:59:50 | timeshift-btrfs/snapshots/2021-11-20_12-59-49/@
Found snapshot: 2021-11-14 01:19:27 | timeshift-btrfs/snapshots/2021-11-14_01-19-26/@
Found snapshot: 2021-11-02 19:13:38 | timeshift-btrfs/snapshots/2021-11-02_19-13-38/@
Found snapshot: 2021-11-02 19:03:32 | timeshift-btrfs/snapshots/2021-11-02_19-03-31/@
Found 5 snapshot(s)
Unmount /tmp/grub-btrfs.dl8w4BfWWS .. Success
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
menuentry 'Mageia 8 (8) (on /dev/sda3)' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
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 1e9b30cb-b17c-4508-b15d-81ae3721a228
else
search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
linux /boot/vmlinuz-5.10.78-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
initrd /boot/initrd-5.10.78-desktop-1.mga8.img
}
submenu 'Advanced options for Mageia 8 (8) (on /dev/sda3)' $menuentry_id_option 'osprober-gnulinux-advanced-1e9b30cb-b17c-4508-b15d-81ae3721a228' {
menuentry 'Mageia (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.10.78-desktop-1.mga8--1e9b30cb-b17c-4508-b15d-81ae3721a228' {
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 1e9b30cb-b17c-4508-b15d-81ae3721a228
else
search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
linux /boot/vmlinuz-5.10.78-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
initrd /boot/initrd-5.10.78-desktop-1.mga8.img
}
menuentry 'Mageia (5.10.78-desktop-1.mga8) 8 (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.10.78-desktop-1.mga8--1e9b30cb-b17c-4508-b15d-81ae3721a228' {
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 1e9b30cb-b17c-4508-b15d-81ae3721a228
else
search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
linux /boot/vmlinuz-5.10.78-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
initrd /boot/initrd-5.10.78-desktop-1.mga8.img
}
menuentry 'Mageia (5.10.78-desktop-1.mga8) 8 (recovery mode) (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.10.78-desktop-1.mga8--1e9b30cb-b17c-4508-b15d-81ae3721a228' {
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 1e9b30cb-b17c-4508-b15d-81ae3721a228
else
search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
linux /boot/vmlinuz-5.10.78-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro failsafe
initrd /boot/initrd-5.10.78-desktop-1.mga8.img
}
menuentry 'Mageia (5.10.75-desktop-1.mga8) 8 (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.10.75-desktop-1.mga8--1e9b30cb-b17c-4508-b15d-81ae3721a228' {
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 1e9b30cb-b17c-4508-b15d-81ae3721a228
else
search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
linux /boot/vmlinuz-5.10.75-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
initrd /boot/initrd-5.10.75-desktop-1.mga8.img
}
menuentry 'Mageia (5.10.75-desktop-1.mga8) 8 (recovery mode) (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.10.75-desktop-1.mga8--1e9b30cb-b17c-4508-b15d-81ae3721a228' {
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 1e9b30cb-b17c-4508-b15d-81ae3721a228
else
search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
linux /boot/vmlinuz-5.10.75-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro failsafe
initrd /boot/initrd-5.10.75-desktop-1.mga8.img
}
menuentry 'Mageia (5.10.70-desktop-1.mga8) 8 (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.10.70-desktop-1.mga8--1e9b30cb-b17c-4508-b15d-81ae3721a228' {
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 1e9b30cb-b17c-4508-b15d-81ae3721a228
else
search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
linux /boot/vmlinuz-5.10.70-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
initrd /boot/initrd-5.10.70-desktop-1.mga8.img
}
menuentry 'Mageia (5.10.70-desktop-1.mga8) 8 (recovery mode) (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.10.70-desktop-1.mga8--1e9b30cb-b17c-4508-b15d-81ae3721a228' {
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 1e9b30cb-b17c-4508-b15d-81ae3721a228
else
search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
linux /boot/vmlinuz-5.10.70-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro failsafe
initrd /boot/initrd-5.10.70-desktop-1.mga8.img
}
menuentry 'Mageia (5.10.62-desktop-1.mga8) 8 (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.10.62-desktop-1.mga8--1e9b30cb-b17c-4508-b15d-81ae3721a228' {
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 1e9b30cb-b17c-4508-b15d-81ae3721a228
else
search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
linux /boot/vmlinuz-5.10.62-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
initrd /boot/initrd-5.10.62-desktop-1.mga8.img
}
menuentry 'Mageia (5.10.62-desktop-1.mga8) 8 (recovery mode) (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.10.62-desktop-1.mga8--1e9b30cb-b17c-4508-b15d-81ae3721a228' {
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 1e9b30cb-b17c-4508-b15d-81ae3721a228
else
search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
linux /boot/vmlinuz-5.10.62-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro failsafe
initrd /boot/initrd-5.10.62-desktop-1.mga8.img
}
menuentry 'Mageia (5.10.16-desktop-1.mga8) 8 (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.10.16-desktop-1.mga8--1e9b30cb-b17c-4508-b15d-81ae3721a228' {
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 1e9b30cb-b17c-4508-b15d-81ae3721a228
else
search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
linux /boot/vmlinuz-5.10.16-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
initrd /boot/initrd-5.10.16-desktop-1.mga8.img
}
menuentry 'Mageia (5.10.16-desktop-1.mga8) 8 (recovery mode) (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.10.16-desktop-1.mga8--1e9b30cb-b17c-4508-b15d-81ae3721a228' {
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 1e9b30cb-b17c-4508-b15d-81ae3721a228
else
search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
linux /boot/vmlinuz-5.10.16-desktop-1.mga8 root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro failsafe
initrd /boot/initrd-5.10.16-desktop-1.mga8.img
}
menuentry 'Mageia (desktop) 8 (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-desktop--1e9b30cb-b17c-4508-b15d-81ae3721a228' {
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 1e9b30cb-b17c-4508-b15d-81ae3721a228
else
search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
linux /boot/vmlinuz-desktop root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro splash quiet noiswmd resume=UUID=0ca0caec-3b79-4aa5-9096-09054eef76cd audit=0 video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1 vga=791
initrd /boot/initrd-desktop.img
}
menuentry 'Mageia (desktop) 8 (recovery mode) (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-desktop--1e9b30cb-b17c-4508-b15d-81ae3721a228' {
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 1e9b30cb-b17c-4508-b15d-81ae3721a228
else
search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
fi
linux /boot/vmlinuz-desktop root=UUID=1e9b30cb-b17c-4508-b15d-81ae3721a228 ro failsafe
initrd /boot/initrd-desktop.img
}
}
### END /etc/grub.d/30_os-prober ###
sturmvogel wrote:If you do the same command on your Garuda Linux, than it should be possible to chose in your EFI BIOS which Bootloader to use first (EFI Boot Order).
[ 0.978687] pci 0000:00:07.0: DPC: RP PIO log size 0 is invalid
/init: line 153: /user/lib/systemd-udevd: Too many levels of symbolic links
failed to send request to update environment: No such file or directory
5.10.16-desktop-1.mga8.img
sturmvogel wrote:I don't know if your high amount of kernels is the reason for this. But you could remove at least
- Code: Select all
5.10.16-desktop-1.mga8.img
and try again. Update Grub after the removal. See if you can boot in a "higher" kernel then. If yes, you can repeat this procedure with removal of the oldest kernel and Grub update until you can boot the newest on. It's only a wild guess from my side...
doktor5000 wrote:To prevent that issue in general, simply set up a chainload for e.g. your Mageia bootloader. That way you don't have to update the grub entries from the other bootloader as soon as you have a kernel update or if any of the options changes in your Mageia install.
See e.g. viewtopic.php?f=8&t=11755&p=68548
menuentry "Chainload Mageia grub in /dev/sda3" {
set root=(hd0,3)
chainloader +1
}
menuentry "Magiea" --class gnu-linux --class gnu --class os {
set root=(hd0,part_gpt3)
configfile /1e9b30cb-b17c-4508-b15d-81ae3721a228/boot/grub2/grub.cfg
}
menuentry "Mageia8" --class gnu-linux --class gnu --class os {
set root=(hd0,3)
configfile /81373c83-9fd8-0048-a11b-2deda4d065be/boot/grub2/grub.cfg
}
/boot/grubmenuentry "Mangeia /dev/sda3" {
multiboot (hd0,3) /1e9b30cb-b17c-4508-b15d-81ae3721a228/boot/grub2/grub.cfg
}
menuentry "Chainloader" {
insmod part_gpt
insmod ext2
insmod chain
set root=(hd0,3)
chainloader +1
}
menuentry "Chainload Mageia grub in /dev/sda3" {
set root=(hd0,2)
chainloader +1
menuentry "mga8_chainload" {
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
configfile /boot/grub2/grub.cfg
}
menuentry "mga8_chainload" {
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 1e9b30cb-b17c-4508-b15d-81ae3721a228
configfile /boot/grub2/grub.cfg
}
None of it worked
Sabungayam wrote: How might I remove the kernels? Using Control Center or other means?
No such EFI file or location
error: sparse file not allowed.
Press any key to continue...
[ 0.978687] pci 0000:00:07.0: DPC: RP PIO log size 0 is invalid
/init: line 153: /user/lib/systemd-udevd: Too many levels of symbolic links
failed to send request to update environment: No such file or directory
5.10.78-desktop-1.mga8
5.10.75-desktop-1.mga8
5.10.70-desktop-1.mga8
[peppermint@localhost ~]$ cat /boot/grub2/grub.conf
cat: /boot/grub2/grub.conf: No such file or directory
[peppermint@localhost ~]$ cat /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="splash quiet noiswmd resume=UUID=d2b92597-b850-413a-8738-c907d5d631a5 audit=0 vga=788"
GRUB_DEFAULT=saved
GRUB_DISABLE_OS_PROBER=false
GRUB_DISABLE_RECOVERY=false
GRUB_DISABLE_SUBMENU=n
GRUB_DISTRIBUTOR=Mageia
GRUB_ENABLE_CRYPTODISK=y
GRUB_GFXMODE=1024x768x32
GRUB_GFXPAYLOAD_LINUX=auto
GRUB_SAVEDEFAULT=true
GRUB_TERMINAL_OUTPUT=gfxterm
GRUB_THEME=/boot/grub2/themes/maggy/theme.txt
GRUB_TIMEOUT=18
[peppermint@localhost
/boot/grub2/grub.conf
Sabungayam wrote:It seems something is missing.
- Code: Select all
/boot/grub2/grub.conf
sturmvogel wrote:Could you please post the content from following Mageia files:
/boot/grub2/grub.conf
/etc/default/grub
Users browsing this forum: No registered users and 1 guest