Thread View: linux.gentoo.user
15 messages
15 total messages
Started by Peter Humphrey
Sun, 29 Nov 2026 21:10
[gentoo-user] Grub can't boot my second kernel
Author: Peter Humphrey
Date: Sun, 29 Nov 2026 21:10
Date: Sun, 29 Nov 2026 21:10
21 lines
1732 bytes
1732 bytes
Greetings, I've always had a small secondary Gentoo installation on my machine - well, for 30 years or so, I call it a Rescue system, but I use it mainly for backing-up the main system to external USB once a week. On earlier machines, it was easy to set up the choice of kernel to boot, using systemd-boot, but I can't get that to work at all on this machine, so I have to use grub. Installing grub on the main system seems to go well, giving it os-prober to find the rescue system - which it does, and includes it in the boot options. The problem is that, on trying to boot the rescue system, grub complains that it can't find amd-uc.img in /boot, even though it's there. What am I missing? -- Regards, Peter.
Re: [gentoo-user] Grub can't boot my second kernel
Author: Darren Kirby
Date: Sun, 29 Nov 2026 22:50
Date: Sun, 29 Nov 2026 22:50
86 lines
4758 bytes
4758 bytes
--nextPartdk9wKHNWQeeTrEkdxEW7Xw
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Darren Kirby <darren@dragonbyte.ca>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Grub can't boot my second kernel
Date: Sun, 29 Nov 2026 15:46:15 -0700
Message-ID: <HGPeQJdsQ7yq42SJARhrXA@dragonbyte.ca>
In-Reply-To: <sxKSRGVcRVqAZ-LV-6oRuA@prh.myzen.co.uk>
References: <sxKSRGVcRVqAZ-LV-6oRuA@prh.myzen.co.uk>
MIME-Version: 1.0
On Sunday, 29 November 2026 09:03:49 MST Peter Humphrey wrote:
> Greetings,
>
> I've always had a small secondary Gentoo installation on my machine - well,
> for 30 years or so, I call it a Rescue system, but I use it mainly for
> backing-up the main system to external USB once a week.
>
> On earlier machines, it was easy to set up the choice of kernel to boot,
> using systemd-boot, but I can't get that to work at all on this machine, so
> I have to use grub.
>
> Installing grub on the main system seems to go well, giving it os-prober to
> find the rescue system - which it does, and includes it in the boot options.
>
> The problem is that, on trying to boot the rescue system, grub complains
that
> it can't find amd-uc.img in /boot, even though it's there.
>
> What am I missing?
Hi Peter,
The firmware image file is in /boot on both systems?
It may be worth trying to boot the rescue system from the Grub prompt
directly. Instructions are here [0] if you've never done this. If nothing
else, it will tell you if the issue is due to Grub's config, or something
wider.
I don't use os-prober on any of my systems, so I'm unsure exactly how it
writes the config for the kernels it finds.
Another option is to forego os-prober and just write the config manually in /
etc/grub.d/40_custom (on the main system) and see if that works. That would
look something like:
menuentry "Rescue system" {
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 4fa3f246-e7ac-4577-b384-
e71da2cfe2d4
linux /boot/vmlinuz-7.1.8 root=PARTUUID=2cc28e47-9deb-4bdc-b4b8-
c4ef1294fbe6 ro
# add line for initrd if you use one:
# initrd /boot/initrd-7.1.8
}
HTH,
Darren
[0] https://www.linuxfoundation.org/blog/blog/classic-sysadmin-how-to-rescue-a-non-booting-grub-2-on-linux
--nextPartdk9wKHNWQeeTrEkdxEW7Xw
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit
-----BEGIN PGP SIGNATURE-----
iQHPBAABCAA5FiEE1402jAdqhwYiTHMAIEFTe6YbkTsFAmsMqzcbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyAAoJECBBU3umG5E7B28L/3Fhemujjxwhpa4zJMTL
31zmBroICUYYpL9a70lLmy1OBDivk0ZJG20hgXX9LjpZ4dL4cUGESReZ0ctGS05R
HmWaNVZ10UWLdBDbYuGIHpNdLODd/wDV9LE/RbZG/NPZugptuydWw8Vq1EozcMg0
oZP32QD3Kb4EzjXcAtLYz+4gVXb54rfSbjG8vwk1gKwYgS7hFKJ1tH4M+Def0qKn
jAQU03VWchGTWQ89qeGtMnf6RrndxJ0UnA5CWov10Nu5L1LKG5NSsikA3BuptbrU
VBWXGxo0mVKPbQ9r2eJ4xg48aVQrb6eZPbr/qD3zMMTDt9V1ABcYolP4+4DXPoFn
4MztnDvZYA4CCmMigDjhP6ImcB+fGnJbj98ec9JcLvzDuBixQJbxhWlephWv4c9p
FLxxTrd0sptb0vr+JzWSDv8+yCr+f56A+IFJIhV+XfOURcetBCEYJmMIf8DRo5xN
G2g/Dk9/GL1cFb7eRJPZUA9Lc++dhP8J3Tr7CVnKgB/wfQ==
=adfG
-----END PGP SIGNATURE-----
--nextPartdk9wKHNWQeeTrEkdxEW7Xw--
Re: [gentoo-user] Grub can't boot my second kernel
Author: Peter Humphrey
Date: Mon, 30 Nov 2026 10:30
Date: Mon, 30 Nov 2026 10:30
39 lines
2251 bytes
2251 bytes
On Sunday, 29 November 2026 22:46:15 Greenwich Mean Time Darren Kirby
wrote:
> The firmware image file is in /boot on both systems?
Both systems mount the same /boot partition, so yes.
> It may be worth trying to boot the rescue system from the Grub prompt
> directly. Instructions are here [0] if you've never done this. If nothing
> else, it will tell you if the issue is due to Grub's config, or something
> wider.
Good idea. I'll give it a go.
> Another option is to forego os-prober and just write the config manually in
> / etc/grub.d/40_custom (on the main system) and see if that works. That
> would look something like:
>
> menuentry "Rescue system" {
> insmod part_gpt
> insmod ext2
> search --no-floppy --fs-uuid --set=root 4fa3f246-e7ac-4577-b384-
> e71da2cfe2d4
What is that number? I don't recognise its 8-4-4-4-12 form.
> linux /boot/vmlinuz-7.1.8 root=PARTUUID=2cc28e47-9deb-4bdc-b4b8-
> c4ef1294fbe6 ro
> # add line for initrd if you use one:
> # initrd /boot/initrd-7.1.8
> }
>
> HTH,
Indeed. Thanks.
--
Regards,
Peter.
[gentoo-user] Re: Grub can't boot my second kernel
Author: Nuno Silva
Date: Mon, 30 Nov 2026 11:10
Date: Mon, 30 Nov 2026 11:10
46 lines
2647 bytes
2647 bytes
On 2026-11-30, Peter Humphrey wrote:
> On Sunday, 29 November 2026 22:46:15 Greenwich Mean Time Darren Kirby
> wrote:
>
>> The firmware image file is in /boot on both systems?
>
> Both systems mount the same /boot partition, so yes.
Maybe Grub2 (which is what tends to be referred to as "Grub" these days)
operates differently, but if both systems mount a partition at /boot,
then the firmware image file won't be under /boot, it'll be under / of
the partition that would get mounted at /boot?
>> It may be worth trying to boot the rescue system from the Grub prompt
>> directly. Instructions are here [0] if you've never done this. If nothing
>> else, it will tell you if the issue is due to Grub's config, or something
>> wider.
>
> Good idea. I'll give it a go.
>
>> Another option is to forego os-prober and just write the config manually in
>> / etc/grub.d/40_custom (on the main system) and see if that works. That
>> would look something like:
>>
>> menuentry "Rescue system" {
>> insmod part_gpt
>> insmod ext2
>> search --no-floppy --fs-uuid --set=root 4fa3f246-e7ac-4577-b384-
>> e71da2cfe2d4
>
> What is that number? I don't recognise its 8-4-4-4-12 form.
>
>> linux /boot/vmlinuz-7.1.8 root=PARTUUID=2cc28e47-9deb-4bdc-b4b8-
>> c4ef1294fbe6 ro
>> # add line for initrd if you use one:
>> # initrd /boot/initrd-7.1.8
>> }
>>
>> HTH,
>
> Indeed. Thanks.
--
Nuno Silva
Re: [gentoo-user] Grub can't boot my second kernel
Author: Michael
Date: Mon, 30 Nov 2026 13:10
Date: Mon, 30 Nov 2026 13:10
74 lines
5901 bytes
5901 bytes
--nextPart5KU7B24ISUWtHCrBFWy2eg
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Reply-To: confabulate@kintzios.com
Subject: Re: [gentoo-user] Grub can't boot my second kernel
Date: Mon, 30 Nov 2026 13:02:07 +0000
Message-ID: <RW6-niMISf-BFPz1chu8Bg@kintzios.com>
In-Reply-To: <BqCR-ovTQ6-qfp4DYA-wKQ@prh.myzen.co.uk>
MIME-Version: 1.0
On Monday, 30 November 2026 10:23:42 Greenwich Mean Time Peter Humphrey
wrote:
> On Sunday, 29 November 2026 22:46:15 Greenwich Mean Time Darren Kirby
>
> wrote:
> > The firmware image file is in /boot on both systems?
>
> Both systems mount the same /boot partition, so yes.
>
> > It may be worth trying to boot the rescue system from the Grub
> > prompt
> > directly. Instructions are here [0] if you've never done this. If
> > nothing else, it will tell you if the issue is due to Grub's
> > config, or something wider.
>
> Good idea. I'll give it a go.
>
> > Another option is to forego os-prober and just write the config
> > manually in / etc/grub.d/40_custom (on the main system) and see if
> > that works. That would look something like:
> >
> > menuentry "Rescue system" {
> >
> > insmod part_gpt
> > insmod ext2
> > search --no-floppy --fs-uuid --set=root 4fa3f246-e7ac-4577-b384-
> >
> > e71da2cfe2d4
>
> What is that number? I don't recognise its 8-4-4-4-12 form.
It's the '--fs-uuid' GRUB is asked to search for (all provided in the
same line above). You can find the appropriate UUID with:
lsblk -o +UUID
or the blkid command.
--nextPart5KU7B24ISUWtHCrBFWy2eg
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit
-----BEGIN PGP SIGNATURE-----
iQJPBAABCAA5FiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmsNc88bFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyAAoJELHqqvbClWcZkkoP/jmk+fFunKlTKOKuOTka
DXEOcnw4Myd3a+yeRfcym0tzxdH8i4sGiO7gSuwnaQGYia7tG+s7L5tcU7vsAngs
Sm5wOwWKSPMZUezsIg/bcL8uMeYV1HJafZ89yeC3wwXVJ/vsIgvSzmcgrg9I2stB
YxFLg+SCoNM/IGPcxej/DN6Y4WeoR7qfQDTKxn+ypOQGp2LeeRKILULl03zRm8TP
C7z5X9DWgPC3+QEjCJ9bt/XWAu56/mM7j4/xSCgXUMiVbcZ1xEqqi9TPg9aSYUL2
jmSu3pbnWEVUdcSyVMNxfBKN7JIoI4kcUdZozvQfVi2ZLx2ULFqhx5O5TTANf5D0
gJ8FkYB1cJ2fIhrbbAOO4IDxdqeUmOIrmoay8Kz6bLBbUl9wfLACFGkz92fM79d1
1ykzTKwkXLeweo05fV6C97D+ZjZcVJfk5GuaNZYKYchiAUE+gXlgWdgfSAAjj6Vk
r7nZKbm5yZwsl2CINch4mxWONeUv0j8wvWDnEhOtaALInh2DMGBNoY5JqD9UNQCt
XszwZOd9uIg5F8cNxWjpdCQLMcckKK3z0TqirHGuXdXQZVtBb+Oi3Byeft0X0z5l
6jY0O3g6f3o17bhkq2tRT5NamslFMl8wUDB2ZjFD2MqQ9pH39w6NQpcgHsYa0p/o
B/EnbeaIDNmGbTQpjhGPdD/G
=DJpS
-----END PGP SIGNATURE-----
--nextPart5KU7B24ISUWtHCrBFWy2eg--
Re: [gentoo-user] Grub can't boot my second kernel
Author: Peter Humphrey
Date: Mon, 30 Nov 2026 15:00
Date: Mon, 30 Nov 2026 15:00
48 lines
2747 bytes
2747 bytes
On Monday, 30 November 2026 13:02:07 Greenwich Mean Time Michael wrote:
> On Monday, 30 November 2026 10:23:42 Greenwich Mean Time Peter
Humphrey
>
> wrote:
> > On Sunday, 29 November 2026 22:46:15 Greenwich Mean Time Darren
Kirby
> >
> > wrote:
> > > The firmware image file is in /boot on both systems?
> >
> > Both systems mount the same /boot partition, so yes.
> >
> > > It may be worth trying to boot the rescue system from the Grub
> > > prompt
> > > directly. Instructions are here [0] if you've never done this. If
> > > nothing else, it will tell you if the issue is due to Grub's
> > > config, or something wider.
> >
> > Good idea. I'll give it a go.
> >
> > > Another option is to forego os-prober and just write the config
> > > manually in / etc/grub.d/40_custom (on the main system) and see if
> > > that works. That would look something like:
> > >
> > > menuentry "Rescue system" {
> > >
> > > insmod part_gpt
> > > insmod ext2
> > > search --no-floppy --fs-uuid --set=root 4fa3f246-e7ac-4577-b384-
> > >
> > > e71da2cfe2d4
> >
> > What is that number? I don't recognise its 8-4-4-4-12 form.
>
> It's the '--fs-uuid' GRUB is asked to search for (all provided in the
> same line above). You can find the appropriate UUID with:
>
> lsblk -o +UUID
>
> or the blkid command.
Is that the /boot partition (i.e. grub's "root") or the root of the rescue
partition?
--
Regards,
Peter.
Re: [gentoo-user] Grub can't boot my second kernel
Author: Peter Humphrey
Date: Mon, 30 Nov 2026 15:30
Date: Mon, 30 Nov 2026 15:30
23 lines
1828 bytes
1828 bytes
On Sunday, 29 November 2026 16:03:49 Greenwich Mean Time I wrote: > The problem is that, on trying to boot the rescue system, grub complains > that it can't find amd-uc.img in /boot, even though it's there. I'd better show what it actually says, rather than my interpretation of what I remembered after booting the main system. This is typed from a photo of the boot screen when I tried to boot the rescue system: ---- error: /var/tmp/portage/sys-boot/grub-2.16-r2/work/grub-2.16/grub-core/fs/ fshelp.c:find_file:260:file '/boot/amd-uc.img' not found. Press any key to continue... ---- Now I'm more confused than ever. :-( $ emerge -ec grub [I] sys-boot/grub (2.16-r2(2/2.16-r2)@29/11/26): GNU GRUB boot loader -- Regards, Peter.
Re: [gentoo-user] Re: Grub can't boot my second kernel
Author: Peter Humphrey
Date: Mon, 30 Nov 2026 15:40
Date: Mon, 30 Nov 2026 15:40
31 lines
2301 bytes
2301 bytes
On Monday, 30 November 2026 11:02:18 Greenwich Mean Time Nuno Silva wrote: > Maybe Grub2 (which is what tends to be referred to as "Grub" these days) > operates differently, but if both systems mount a partition at /boot, > then the firmware image file won't be under /boot, it'll be under / of > the partition that would get mounted at /boot? I thought I understood that, but I don't. "The partition that would get mounted at /boot" is indeed /boot, partition 2, labelled BOOT. # parted -l Model: ADATA LEGEND 860 (nvme) Disk /dev/nvme0n1: 2000GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 1075MB 1074MB fat32 boot, esp 2 1075MB 4296MB 3221MB fat32 bios_grub 3 4296MB 73.0GB 68.7GB linux-swap(v1) swap 4 73.0GB 127GB 53.7GB ext4 5 127GB 213GB 85.9GB ext4 --->8 Partition 4 is the rescue system, 5 the main. -- Regards, Peter.
Re: [gentoo-user] Re: Grub can't boot my second kernel
Author: Sergey Filatov
Date: Mon, 30 Nov 2026 17:00
Date: Mon, 30 Nov 2026 17:00
34 lines
2890 bytes
2890 bytes
My bet is that os-prober just finds the partition 4, looks what's inside of it in a /boot dir, sees the kernel and adds it to the list. But somehow thinks that you have a microcode (by the main system, as it is in your partition 2) and adds it to those entries. Try to run the rescue system (in grub press E, remove the part with /boot/amd-uc.img inclusion and press ctrl+x). The system should boot. Then try: umount /boot ls -la /boot If you'll see the kernel files and no amd-uc.img - that's probably what GRUB actually tries to load. The older kernel leftover without a microcode. If that's the case, guess there are two ways to fix it: 1. If you only have two systems - disable os-prober in /etc/default/grub and write /etc/grub.d/ script to generate the entries for the rescue system yourself. Just a simple script that creates the manual entry for a rescue kernel. Like this: https://wiki.gentoo.org/wiki/GRUB#Enabling_or_disabling_configuration_scripts 2. Ditch the idea to have a single boot partition for two systems, update the kernel for the rescue system (or just copy it from the main system, assuming the configuration is the same), copy amd-uc.img to (partition4)/boot and call it a day. Might be safer actually, since you'll have a fully working system with working kernel, less chance to be broken by a faulty kernel update of the main system. On 30.11.2026 19:30, Peter Humphrey wrote: > I thought I understood that, but I don't. "The partition that would get > mounted at /boot" is indeed /boot, partition 2, labelled BOOT.
Re: [gentoo-user] Re: Grub can't boot my second kernel
Author: Michael
Date: Mon, 30 Nov 2026 17:40
Date: Mon, 30 Nov 2026 17:40
93 lines
7187 bytes
7187 bytes
--nextParttRkTFaayTkiX0YlwRd-HCg Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Michael <confabulate@kintzios.com> To: gentoo-user@lists.gentoo.org Reply-To: confabulate@kintzios.com Subject: Re: [gentoo-user] Re: Grub can't boot my second kernel Date: Mon, 30 Nov 2026 17:31:05 +0000 Message-ID: <VUTjTwO2T9mm9RRxipa0lw@kintzios.com> In-Reply-To: <c30d5c97-da8f-425c-bd41-36e32ac06583@raxp.ru> MIME-Version: 1.0 On Monday, 30 November 2026 16:51:50 Greenwich Mean Time Sergey Filatov wrote: > My bet is that os-prober just finds the partition 4, looks what's > inside of it in a /boot dir, sees the kernel and adds it to the list. > But somehow thinks that you have a microcode (by the main system, as > it is in your partition 2) and adds it to those entries. > > Try to run the rescue system (in grub press E, remove the part with > /boot/amd-uc.img inclusion and press ctrl+x). The system should boot. > > Then try: > > umount /boot > ls -la /boot > > If you'll see the kernel files and no amd-uc.img - that's probably > what GRUB actually tries to load. The older kernel leftover without a > microcode. > > If that's the case, guess there are two ways to fix it: > > 1. If you only have two systems - disable os-prober in > /etc/default/grub and write /etc/grub.d/ script to generate the > entries for the rescue system yourself. Just a simple script that > creates the manual entry for a rescue kernel. Like this: > https://wiki.gentoo.org/wiki/GRUB#Enabling_or_disabling_configuration_ > scripts > > 2. Ditch the idea to have a single boot partition for two systems, > update the kernel for the rescue system (or just copy it from the main > system, assuming the configuration is the same), copy amd-uc.img to > (partition4)/boot and call it a day. Might be safer actually, since > you'll have a fully working system with working kernel, less chance > to be broken by a faulty kernel update of the main system. You should try what Sergey recommended above, to understand what partition your Rescue OS /efi (boot) mountpoint is really mounted on. As far as I recall the UUID in grub's configuration is of the OS root fs. The error you are getting is pointing to the temporary build-time fs of portage. To state the obvious, this shouldn't be mentioned anywhere in grub's configuration path(s). Assuming you have mounted the correct FAT32 partition as /efi while you are running your Rescue OS, or while you have chrooted into it, you can then re-emerge/update sys-boot/grub if you need to, reinstall grub, and update its configuration file: grub-install --efi-directory=/efi grub-mkconfig -o /efi/EFI/Gentoo/grub.cfg PS. You can build the AMD microcode and any other firmware you need in the kernel itself, by specifying it in CONFIG_EXTRA_FIRMWARE="..." --nextParttRkTFaayTkiX0YlwRd-HCg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQJPBAABCAA5FiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmsNstkbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMiwyAAoJELHqqvbClWcZNwYQALUkVRkZQi02/w70yjfD q/oE0RZ9c2INlQhOLp4TR4fD0cySl/rSsASfy/4onGvtmL5/o/C0/I8OGdMm7XyF QtnnMUf/F0InYUVp72xk2ULOY6pyuBrOQEnbBgOAzHfUHd557tC/cXS4b4aLe8iA sI+Wh0TKha5XIrgdhYSk9h+hrC0G85w/L2sILuLW3xxRlB2ZTgTNN0wLX48Nm2de nvgjoOX6Yd5PK4Amea6M0PoIZqERdyzTILRDeNjLV4AHjWi3AGcR971EGM+JtOS+ aAifMjykX9Yz5kOvK9qDUwPY6u4uuTUyd1BID0c7S9zjR2jqnZljxD/Sz7ed8yAK ULd8Yn+REAFWEBe86/FL7lMZy4E6zbd3fek+i27rLJdkTqQOs2cibnrQZCJIWaEJ yWNXwv62OGj4Vui17GNUpATdGPtqQvOorJSctq7/gnjMwXiWw8fvK+78tFDFKRF1 mDl9keB1LVxCp+9aNZkEfNE3ZfEevP0LpXJa+YqfWboJPZoywDdfEeZiP4m1+Q/u rU71G+pddQTzxA822rDt2EB5fDBp7sLR2A0q0K73H+5NJzmnC1THLldPpJIZTfQK 3w8XQucEWhhXRQZhspaIXjUZ6CjCSR8fNeGv80I+cGb9eZt14hQlAoNhLenskx6F CAONgDWmxEGsyxV+uPEveY9w =V2fF -----END PGP SIGNATURE----- --nextParttRkTFaayTkiX0YlwRd-HCg--
Re: [gentoo-user] Grub can't boot my second kernel
Author: Dale
Date: Mon, 30 Nov 2026 18:50
Date: Mon, 30 Nov 2026 18:50
98 lines
7525 bytes
7525 bytes
On 11/30/26 9:20 AM, Peter Humphrey wrote: > On Sunday, 29 November 2026 16:03:49 Greenwich Mean Time I wrote: > >> The problem is that, on trying to boot the rescue system, grub complains >> that it can't find amd-uc.img in /boot, even though it's there. > I'd better show what it actually says, rather than my interpretation of what I > remembered after booting the main system. This is typed from a photo of the > boot screen when I tried to boot the rescue system: > > ---- > error: /var/tmp/portage/sys-boot/grub-2.16-r2/work/grub-2.16/grub-core/fs/ > fshelp.c:find_file:260:file '/boot/amd-uc.img' not found. > Press any key to continue... > ---- > > Now I'm more confused than ever. :-( > > $ emerge -ec grub > [I] sys-boot/grub (2.16-r2(2/2.16-r2)@29/11/26): GNU GRUB boot loader > I'm not 100& sure what you are confused about but I noticed something that I've done in the past myself and it drove me nuts. I think I got help from this list to figure it out. Maybe this will clear up some confusion. Maybe. Here it is. You ever put files on what you think is a mounted partition but later realize, you forgot to mount it? Those files are on the file system that you normally mount to and if you mount the partition, they get covered up. They can't be seen because another file system is on top of them. If you unmount that file system, the files are visible again. I did this with /boot once so I can relate. I've done it countless times with external drives and such. At one time, not sure about now, it was recommended to not mount /boot unless you were updating the kernel or something. Therefore, if you need to put a new kernel, init thingy or anything else on /boot, you had to mount it first. Since that was different from my usual process, I'd forget. Sure, grub would see the kernel that is technically on the /, root, file system where I just put it because it's there. However, when I would go to boot, it wouldn't because it is looking for it on the boot partition not the root partition where I stuck it while /boot was not mounted. Another way to look at this. Take a sheet of paper, in your head is fine, and write something on it. Now take another sheet of paper and put it on top of the paper you wrote on. The first sheet of paper is the root file system. The second is the /boot partition. When /boot is not mounted, that's where files go to in /boot on the root partition, the first sheet of paper you wrote on. Where grub expects them to be is in /boot tho. When you look, you see the files on the root partition since /boot is not mounted. Even the script that creates the config sees it. However, when you boot up, grub is told to look on the boot partition but the kernel and other files are on the root partition in /boot. Basically, grub is looking at the top sheet of paper but the files are on the other sheet of paper for root. Go into one of your OS installs and see if /boot is mounted. If it is, then do a ls for /boot and see what is there. Now unmount /boot. Do a ls for /boot again. If you have two installs, you need to do that for both. It could be that only one is being updated while /boot is not mounted. The other may be mounted and work correctly. Another method if nothing else works. In a worst case situation, you can do this. Boot a rescue media, USB stick or something, create two mount points somewhere, /mnt for this email. Mount one OS's root partition to /mnt/os1. Then mount the second OS root partition to /mnt/os2. Make sure you know which is which tho. Do not mount any /boot file system, only the root ones. Then do a ls for /mnt/os1/boot and /mnt/os2/boot. See what you get. I bet one of those has files that should be on your intended /boot partition that is shared between the two OSs. If you want, you can also mount your shared boot partition somewhere, /mnt/boot for example, and see what is in there. Pictures with a camera might help to refer back to later. This is a bit chatty but I'm trying to explain in different ways and give two different ways to see what files are where. It comes down to this, you have three places that /boot files can be located. One is the intended boot partition. The other two is inside /boot on each OS root partition if /boot isn't mounted when files are copied over. If you have anything in the boot directory on either OS root partition and you have not mounted /boot, that's gonna be a problem. That will cause all sorts of confusion. I hope this will make a light bulb go off. Me explaining in different ways should increase the chances if this is the problem and what is so confusing. Like I mentioned, I've done this before. It can drive you nuts trying to figure out why something isn't working when you think a file system is mounted but it isn't. As some may recall, I use scripts to moount most of the backups and other file systems. At the end of every script is a dfc command that greps that mount point. I do that so I can see that it is for sure mounted. Hope this helps. Imagine typing this all in and keeping things straight myself. ROFL Dale :-) :-)
Re: [gentoo-user] Re: Grub can't boot my second kernel
Author: Ben Knoble
Date: Mon, 30 Nov 2026 19:00
Date: Mon, 30 Nov 2026 19:00
13 lines
2756 bytes
2756 bytes
> Le 30 nov. 2026 à 12:31, Michael <confabulate@kintzios.com> a écrit : > The error you are getting is pointing to the temporary build-time fs of > portage. To state the obvious, this shouldn't be mentioned anywhere in > grub's configuration path(s). Off-topic: I think that’s just embedded FILE macro (or whatever it is in C) in the warning string. So it’s saying that C source is responsible for the warning, not that GRUB is using that path for, say, configuration or loading?
[gentoo-user] Re: Grub can't boot my second kernel
Author: Nuno Silva
Date: Tue, 01 Dec 2026 00:20
Date: Tue, 01 Dec 2026 00:20
43 lines
2720 bytes
2720 bytes
On 2026-11-30, Peter Humphrey wrote: > On Monday, 30 November 2026 11:02:18 Greenwich Mean Time Nuno Silva > wrote: > >> Maybe Grub2 (which is what tends to be referred to as "Grub" these days) >> operates differently, but if both systems mount a partition at /boot, >> then the firmware image file won't be under /boot, it'll be under / of >> the partition that would get mounted at /boot? > > I thought I understood that, but I don't. "The partition that would get > mounted at /boot" is indeed /boot, partition 2, labelled BOOT. No, it's not "/boot". That's a mountpoint where it gets mounted in some system. The "boot" directory doesn't exist in it. Unless the file can actually be accessed as "/boot/boot/amd-uc.img" when mounted that way. The path to the file you access as "/boot/amd-uc.img" in that partition is "/amd-uc.img". How is the kernel image itself specified? > > # parted -l > Model: ADATA LEGEND 860 (nvme) > Disk /dev/nvme0n1: 2000GB > Sector size (logical/physical): 512B/512B > Partition Table: gpt > Disk Flags: > > Number Start End Size File system Name Flags > 1 1049kB 1075MB 1074MB fat32 boot, esp > 2 1075MB 4296MB 3221MB fat32 bios_grub > 3 4296MB 73.0GB 68.7GB linux-swap(v1) swap > 4 73.0GB 127GB 53.7GB ext4 > 5 127GB 213GB 85.9GB ext4 > --->8 > > Partition 4 is the rescue system, 5 the main. -- Nuno Silva
Re: [gentoo-user] Re: Grub can't boot my second kernel
Author: Peter Humphrey
Date: Tue, 01 Dec 2026 12:50
Date: Tue, 01 Dec 2026 12:50
20 lines
1925 bytes
1925 bytes
On Tuesday, 1 December 2026 00:12:09 Greenwich Mean Time Nuno Silva wrote: > No, it's not "/boot". That's a mountpoint where it gets mounted in some > system. The "boot" directory doesn't exist in it. Unless the file can > actually be accessed as "/boot/boot/amd-uc.img" when mounted that way. Let me attempt to settle this. I showed the output of 'parted -l', in which you can see nvme0n1p1 and p2. The former is mounted on /efi, the latter on / boot, in whichever system is booted. Nothing I've said so far is wrong, as far as I can see. > How is the kernel image itself specified? To what? I think I'll follow Sergey's suggestions. -- Regards, Peter.
[gentoo-user] Re: Grub can't boot my second kernel
Author: Nuno Silva
Date: Tue, 01 Dec 2026 23:10
Date: Tue, 01 Dec 2026 23:10
38 lines
2758 bytes
2758 bytes
On 2026-12-01, Peter Humphrey wrote: > On Tuesday, 1 December 2026 00:12:09 Greenwich Mean Time Nuno Silva wrote: > >> No, it's not "/boot". That's a mountpoint where it gets mounted in some >> system. The "boot" directory doesn't exist in it. Unless the file can >> actually be accessed as "/boot/boot/amd-uc.img" when mounted that way. > > Let me attempt to settle this. I showed the output of 'parted -l', in which > you can see nvme0n1p1 and p2. The former is mounted on /efi, the latter on / > boot, in whichever system is booted. Nothing I've said so far is wrong, as far > as I can see. This is as it is mounted on a/the system you've booted. The filesystem itself has no notion of /boot (unless it has a symbolic link /boot->/, that is), and, unless grub2 operates differently here, it has no idea how are the partitions mounted on the booted system. You have to specify a partition with a filesystem where it looks for files, like the kernel and the initrd, and that is the root, as far as grub is concerned. So no /boot there. > >> How is the kernel image itself specified? > > To what? To grub. There ought to be a configuration directive telling the name of the kernel image in the grub install (unless, again, grub2 operates significantly differently, I think with grub2 it's sometimes automatically generated from other files, but it still exists?). Now is that line referring to /boot/kernelimagename or just /kernelimagename? > I think I'll follow Sergey's suggestions. -- Nuno Silva
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads