View previous topic :: View next topic |
Author |
Message |
lukascobber n00b
Joined: 28 Oct 2021 Posts: 9
|
Posted: Sat May 18, 2024 2:49 pm Post subject: error: no such device: [device uuid] from non-gentoo grub |
|
|
Hello,
I am having problems with booting into Gentoo from a Manjaro Grub.
Manjaro's default isn't suitable for creating a boot entry so I generated an entry from the live-cd installation medium while chrooted and copied it into the Manjaro's grub.cfg.
The problem:
When I click enter on the Gentoo entry an error message pops up:
Code: | error: no such device: [device uuid]
error: file /boot/vmlinuz-6.6.30-gentoo' not found
|
The weirder problem:
When I boot into the Gentoo's grub directly, the same Gentoo boot entry is booting normally. (I can't use this one as the default because of some external issue not relevant for this problem).
Some information: I have no initramfs, I am using xfs, partitions look like this (from the Gentoo system's perspective):
Code: | nvme0n1
|-nvme0n1p1 vfat /efi
|-nvme0n1p2 ext4
|-nvme0n1p3 swap
`-nvme0n1p4 xfs /
|
partitions look like this (from the Manjaro's perspective):
Code: | nvme0n1
|-nvme0n1p1 vfat /boot/efi
|-nvme0n1p2 ext4 /
|-nvme0n1p3 swap [not used on manjaro]
`-nvme0n1p4 xfs
|
the boot entry:
Code: | menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ec49593a-82c5-4ab3-93e9-813348a51484' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
search --no-floppy --fs-uuid --set=root ec49593a-82c5-4ab3-93e9-813348a51484
echo 'Loading Linux 6.6.30-gentoo ...'
linux /boot/vmlinuz-6.6.30-gentoo root=PARTUUID=9b551146-a794-46e6-acbf-921fb9f725f0 ro
}
|
hardware information: ThinkPad T480 laptop with 32G RAM and i5-8350U, kernel compiled with everythink built in, and tuned for the laptop.
I have searched the internet for a solution, but none of the problems people had were this specific, and every dual boot was with Windows so I had no luck.
Thank you in advance _________________ Gentoo is awesome |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4392 Location: Bavaria
|
Posted: Sat May 18, 2024 3:07 pm Post subject: |
|
|
lukascobber wrote: | Hello,
I am having problems with booting into Gentoo from a Manjaro Grub.
Manjaro's default isn't suitable for creating a boot entry so I generated an entry from the live-cd installation medium while chrooted and copied it into the Manjaro's grub.cfg. |
This is not recommended (because the grub.cfg will be overwritten with the next grub-mkconfig) ... try to use the configuration file for grub in /etc/grub.d/40_custom (of your manjaro grub). See more here:
https://wiki.gentoo.org/wiki/GRUB#Main_configuration_file
in section: /etc/grub.d/*
->
Quote: | [...] For instance, to add menu items that couldn't be automatically generated. |
_________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1569 Location: South America
|
Posted: Sat May 18, 2024 3:36 pm Post subject: no such device: [device uuid] from non-gentoo grub |
|
|
And with respect to this error:
lukascobber wrote: | Code: | error: no such device: [device uuid]
error: file /boot/vmlinuz-6.6.30-gentoo' not found |
|
use lsblk (either from Gentoo or Manjaro) and check that the filesystem UUID in the search command inside Gentoo's GRUB menu item configuration (that is, the string after --set=root) matches that of the XFS filesystem in /dev/nvme0n1p4, i.e. Gentoo's rootfs. _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
sMueggli Guru
Joined: 03 Sep 2022 Posts: 378
|
Posted: Sat May 18, 2024 3:55 pm Post subject: |
|
|
And please post the "wrong" grub.cfg and the UUIDs or PARTUUIDs. |
|
Back to top |
|
|
lukascobber n00b
Joined: 28 Oct 2021 Posts: 9
|
Posted: Sat May 18, 2024 5:14 pm Post subject: |
|
|
pietinger wrote: | lukascobber wrote: | Hello,
I am having problems with booting into Gentoo from a Manjaro Grub.
Manjaro's default isn't suitable for creating a boot entry so I generated an entry from the live-cd installation medium while chrooted and copied it into the Manjaro's grub.cfg. |
This is not recommended (because the grub.cfg will be overwritten with the next grub-mkconfig) ... try to use the configuration file for grub in /etc/grub.d/40_custom (of your manjaro grub). See more here:
https://wiki.gentoo.org/wiki/GRUB#Main_configuration_file
in section: /etc/grub.d/*
->
Quote: | [...] For instance, to add menu items that couldn't be automatically generated. |
|
My solution was a temporary one, but this will solve it long-term. Thanks _________________ Gentoo is awesome |
|
Back to top |
|
|
lukascobber n00b
Joined: 28 Oct 2021 Posts: 9
|
Posted: Sat May 18, 2024 5:16 pm Post subject: |
|
|
sMueggli wrote: | And please post the "wrong" grub.cfg and the UUIDs or PARTUUIDs. |
The "wrong" grub.cfg is the one Manjaro created by default, and I am not using that one so I don't think it matters much. If you really want I can post it anyway if it might help. _________________ Gentoo is awesome |
|
Back to top |
|
|
lukascobber n00b
Joined: 28 Oct 2021 Posts: 9
|
Posted: Sat May 18, 2024 5:17 pm Post subject: Re: no such device: [device uuid] from non-gentoo grub |
|
|
GDH-gentoo wrote: | And with respect to this error:
lukascobber wrote: | Code: | error: no such device: [device uuid]
error: file /boot/vmlinuz-6.6.30-gentoo' not found |
|
use lsblk (either from Gentoo or Manjaro) and check that the filesystem UUID in the search command inside Gentoo's GRUB menu item configuration (that is, the string after --set=root) matches that of the XFS filesystem in /dev/nvme0n1p4, i.e. Gentoo's rootfs. |
They do match. lsblk from Gentoo:
Code: | NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
`-sda1 vfat FAT12 REFIND B28E-9C53
sdb
nvme0n1
|-nvme0n1p1 vfat FAT32 E857-C872 299M 0% /efi
|-nvme0n1p2 ext4 1.0 bc888898-01d8-4679-b8e9-ca7393e3a087
|-nvme0n1p3 swap 1 853c7f9c-763d-4647-9558-2444961579f2
`-nvme0n1p4 xfs ec49593a-82c5-4ab3-93e9-813348a51484 112.8G 8% / |
_________________ Gentoo is awesome |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1569 Location: South America
|
Posted: Sat May 18, 2024 9:03 pm Post subject: |
|
|
I'd do some checks with Manjaro's GRUB then. Reboot the computer. When GRUB's menu is showing, press c to go to the grub> prompt, and type ls. Find /dev/nvme0n1p4, in the output, which would be named something like (hdn,gpt4), where n is some number that depends on how many disks the UEFI firmware presents to GRUB.
If it's there, then:
Code: | grub> ls (hdn,gpt4) |
should show the filesystem type (XFS) and UUID that lsblk showed, and
Code: | grub> ls (hdn,gpt4)/boot |
should show the contents of Gentoo's /boot, including file vmlinuz-6.6.30-gentoo _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
|