Adding GRUB entry for another distro

Hello everyone!

I'm learning new things and for now I'm trying to add new GRUB entry for Nobara Linux in Garuda GRUB.
I tried various configs and so far I had no luck to make it actually work.

I'm seeing the new GRUB entry but when I choosing it I am keeping to receive the following error:

error: file '/boot/vmlinuz-6.3.9-200.fsync.fc38.x86_64' not found.
error: you need to load kernel first.

My current setup is:

  • Garuda boot partition is on /dev/sda1
  • Garuda root partition is on /dev/sda2
  • Nobara boot partition is on /dev/sda3
  • Nobara root partition is on /dev/sda4

Here is my current /etc/grub.d/40_custom config:

GNU nano 7.2                                                                /etc/grub.d/40_custom
#!/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 "Nobara Linux Boot" {
set root=(hd0,3)
linux /boot/vmlinuz-6.3.9-200.fsync.fc38.x86_64  root=UUID=baa9e24f-6422-44e5-b929-c0e9d2802c7c rw
initrd /boot/initramfs-6.3.9-200.fsync.fc38.x86_64.img
}

The UUID above is UUID for /dev/sda3 (where boot partition of Nobara is located).

I suppose I choose the right files from /dev/sda3, it contains this:

efi
grub2
loader
lost+found
.vmlinuz-6.3.9-200.fsync.fc38.x86_64.hmac
config-6.3.9-200.fsync.fc38.x86_64
elf-memtest86+-5.31
initramfs-0-rescue-b8b31546bc7f4702964e6c1de29e6aac.img
initramfs-6.3.9-200.fsync.fc38.x86_64.img
initramfs-freebsd.img
memtest86+-5.31
symvers-6.3.9-200.fsync.fc38.x86_64.gz -> /lib/modules/6.3.9-200.fsync.fc38.x86_64/symvers.gz
System.map-6.3.9-200.fsync.fc38.x86_64
vmlinuz-0-rescue-b8b31546bc7f4702964e6c1de29e6aac
vmlinuz-6.3.9-200.fsync.fc38.x86_64

So I can't figure out how to basically force the Garuda bootloader to use a kernel from another partition.

Also here is my garuda-inxi:

System:
Kernel: 6.3.9-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=d7813217-50b5-4ea5-bfb2-90984f4d37aa rw rootflags=subvol=@
quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
ibt=off nobara
Desktop: KDE Plasma v: 5.27.6 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 2
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: Micro-Star product: GS65 Stealth Thin 8RF v: REV:1.0
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: Micro-Star model: MS-16Q2 v: REV:1.0 serial: <superuser required>
UEFI: American Megatrends v: E16Q2IMS.112 date: 05/21/2019
Battery:
ID-1: BAT1 charge: 80.3 Wh (100.0%) condition: 80.3/80.3 Wh (100.0%)
volts: 16.8 min: 15.2 model: MSI BIF0_9 type: Li-ion serial: N/A
status: full
CPU:
Info: model: Intel Core i7-8750H bits: 64 type: MT MCP arch: Coffee Lake
gen: core 8 level: v3 note: check built: 2018 process: Intel 14nm family: 6
model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xF2
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
L3: 9 MiB desc: 1x9 MiB
Speed (MHz): avg: 3098 high: 4101 min/max: 800/4100 scaling:
driver: intel_pstate governor: performance cores: 1: 4100 2: 4038 3: 4016
4: 4001 5: 3390 6: 2200 7: 2200 8: 2200 9: 2200 10: 2200 11: 4101 12: 2532
bogomips: 52799
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Micro-Star MSI
driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
ports: active: eDP-1 empty: DP-1,HDMI-A-1 bus-ID: 00:02.0
chip-ID: 8086:3e9b class-ID: 0300
Device-2: NVIDIA GP104M [GeForce GTX 1070 Mobile] vendor: Micro-Star MSI
driver: nvidia v: 535.54.03 alternate: nouveau,nvidia_drm non-free: 530.xx+
status: current (as of 2023-05) arch: Pascal code: GP10x
process: TSMC 16nm built: 2016-21 pcie: gen: 1 speed: 2.5 GT/s lanes: 16
link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0 chip-ID: 10de:1ba1
class-ID: 0300
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2
compositor: kwin_x11 driver: X: loaded: modesetting,nvidia unloaded: nouveau
alternate: fbdev,intel,nv,vesa dri: iris gpu: i915 display-ID: :0
screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
s-diag: 582mm (22.93")
Monitor-1: eDP-1 model: AU Optronics 0x80ed built: 2017 res: 1920x1080
hz: 144 dpi: 142 gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 394mm (15.5")
ratio: 16:9 modes: 1920x1080
API: OpenGL v: 4.6 Mesa 23.1.3 renderer: Mesa Intel UHD Graphics 630 (CFL
GT2) direct-render: Yes
Audio:
Device-1: Intel Cannon Lake PCH cAVS vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl
bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0403
Device-2: NVIDIA GP104 High Definition Audio driver: snd_hda_intel
v: kernel pcie: speed: Unknown lanes: 63 link-max: gen: 6 speed: 64 GT/s
bus-ID: 01:00.1 chip-ID: 10de:10f0 class-ID: 0403
Device-3: JMTek LLC. USB PnP Audio Device
driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
lanes: 1 mode: 1.1 bus-ID: 1-2:2 chip-ID: 0c76:161f class-ID: 0300
API: ALSA v: k6.3.9-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: alsactl,alsamixer,amixer
Server-1: PipeWire v: 0.3.72 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel
bus-ID: 00:14.3 chip-ID: 8086:a370 class-ID: 0280
IF: wlo1 state: up mac: <filter>
Device-2: Qualcomm Atheros Killer E2500 Gigabit Ethernet
vendor: Micro-Star MSI driver: alx v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: 3000 bus-ID: 3d:00.0 chip-ID: 1969:e0b1 class-ID: 0200
IF: enp61s0 state: down mac: <filter>
IF-ID-1: virbr0 state: down mac: <filter>
Bluetooth:
Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) driver: btusb
v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-14:6
chip-ID: 8087:0aaa class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
Local Storage: total: 2.29 TiB used: 979.84 GiB (41.9%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
model: SSD 970 EVO Plus 2TB size: 1.82 TiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
fw-rev: 2B2QEXM7 temp: 39.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Kingston model: RBUSNS8180S3512GJ
size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: 61D1 scheme: GPT
Partition:
ID-1: / raw-size: 383.02 GiB size: 383.02 GiB (100.00%)
used: 254 GiB (66.3%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 17.6 MiB (5.9%) fs: vfat dev: /dev/sda1 maj-min: 8:1
ID-3: /home raw-size: 383.02 GiB size: 383.02 GiB (100.00%)
used: 254 GiB (66.3%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-4: /var/log raw-size: 383.02 GiB size: 383.02 GiB (100.00%)
used: 254 GiB (66.3%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-5: /var/tmp raw-size: 383.02 GiB size: 383.02 GiB (100.00%)
used: 254 GiB (66.3%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.47 GiB used: 12.5 MiB (0.1%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 48.0 C pch: 41.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 365 Uptime: 4m wakeups: 5 Memory: available: 15.47 GiB
used: 4.01 GiB (25.9%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 13.1.1 Packages: 1928 pm: pacman pkgs: 1910
libs: 554 tools: aura,octopi,paru pm: flatpak pkgs: 11 pm: snap pkgs: 7
Shell: fish v: 3.6.1 running-in: konsole inxi: 3.3.27
Garuda (2.6.16-1):
System install date:     2022-12-26
Last full system update: 2023-07-02
Is partially upgraded:   No
Relevant software:       snapper NetworkManager mkinitcpio nvidia-dkms
Windows dual boot:       Probably (Run as root to verify)
Failed units:

Any suggestions are highly appreciated. Thanks.

Check

sudo micro /etc/default/grub

about os prober. Update grub or use custom.cfg :slight_smile:

???

Seems all correct:

GRUB_CMDLINE_LINUX_DEFAULT="quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3 ibt=off nobara"

And prober:

GRUB_DISABLE_OS_PROBER=false

Also here is update-grub:

Generating grub configuration file ...
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/nvme0n1p2@/efi/Microsoft/Boot/bootmgfw.efi
Found Nobara Linux 38 (KDE Plasma) on /dev/sda4
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
Found snapshot: 2023-07-03 01:30:18 | @/.snapshots/25/snapshot   | post   | lib32-harfbuzz lib32-icu lib32-libxml2 lib32-sdl2 linux-zen linux-zen-he |
Found snapshot: 2023-07-03 01:27:50 | @/.snapshots/24/snapshot   | pre    | pacman -Su                                                               |
Found snapshot: 2023-07-02 12:32:38 | @/.snapshots/23/snapshot   | post   | snapd tgpt-bin yandex-browser                                            |
Found snapshot: 2023-07-02 12:32:34 | @/.snapshots/22/snapshot   | pre    | pacman -U /var/cache/pacman/pkg/snapd-2.60-1-x86_64.pkg.tar.zst /var/cac |
Found snapshot: 2023-07-02 12:30:46 | @/.snapshots/21/snapshot   | post   | xwaylandvideobridge-bin                                                  |
Found snapshot: 2023-07-02 12:30:45 | @/.snapshots/20/snapshot   | pre    | pacman -R xwaylandvideobridge-bin                                        |
Found snapshot: 2023-07-02 12:26:17 | @/.snapshots/19/snapshot   | post   | a2ps alacritty alsa-card-profiles apparmor at-spi2-core bison bluez blue |
Found snapshot: 2023-07-02 12:26:08 | @/.snapshots/18/snapshot   | pre    | pacman -Su                                                               |
Found snapshot: 2023-06-29 10:12:16 | @/.snapshots/17/snapshot   | post   | garuda-settings-manager garuda-settings-manager-kcm webkit2gtk webkit2gt |
Found snapshot: 2023-06-29 10:12:14 | @/.snapshots/16/snapshot   | pre    | pacman -Su                                                               |
Found snapshot: 2023-06-29 03:56:19 | @/.snapshots/15/snapshot   | post   | expac                                                                    |
Found snapshot: 2023-06-29 03:56:18 | @/.snapshots/14/snapshot   | pre    | pacman -S expac                                                          |
Found snapshot: 2023-06-21 09:15:34 | @/.snapshots/1/snapshot    | single | Its_Fine                                                                 |
Found snapshot: 2023-04-03 04:17:24 | @_backup_20232806233658048 | N/A    | N/A                                                                      |
Found snapshot: 2023-03-31 03:13:43 | @_backup_20230304041724107 | N/A    | N/A                                                                      |
Found snapshot: 2023-02-14 13:38:19 | @_backup_20233103031343409 | N/A    | N/A                                                                      |
Found snapshot: 2023-02-14 13:21:12 | @_backup_20231402133819106 | N/A    | N/A                                                                      |
Found snapshot: 2023-02-14 13:18:17 | @_backup_20231402132112617 | N/A    | N/A                                                                      |
Found snapshot: 2022-12-27 05:12:33 | @_backup_20231402131817397 | N/A    | N/A                                                                      |
Found 19 snapshot(s)
Unmount /tmp/grub-btrfs.I3J9khL2mK .. Success
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
1 Like

Did you search :wink: ?

Maybe I do not check your problem? Sorry :slight_smile:

Yup, but I don't need to boot from ISO.
And yes, I tried to change it to /dev/sda4 with the same result. :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.