🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.user
Article #250

Re: [gentoo-user] Grub can't boot my second kernel

#250
From: Dale
Date: Mon, 30 Nov 2026 18:50
98 lines
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

:-)  :-)
Technical Details
Message-ID: <O5eBQ-faE4-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <O4UjL-eZs1-5@gated-at.bofh.it> <O5buh-f8QE-7@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Dale <rdalek1967@gmail.com>
Newsgroups: linux.gentoo.user
Subject: Re: [gentoo-user] Grub can't boot my second kernel
Date: Mon, 30 Nov 2026 19:50:02 +0100
Message-ID: <O5eBQ-faE4-5@gated-at.bofh.it>
References: <O4UjL-eZs1-5@gated-at.bofh.it> <O5buh-f8QE-7@gated-at.bofh.it>
X-Original-To: gentoo-user@lists.gentoo.org
X-Gm-Message-State: APuU4Z89u8A2tTgJ4Ed0Gcz2IrAR7EJ7yv2iP6EzRDAKKAaWCNMTOUOm
	MG50qemXHzUeE/fdSOu/eiFI2zDgwzhif8DKca71xd1OixCEwBVzsygMfLK1Ew==
X-Gm-Gg: AZFdTZc1wxSipTgDCjibangg7j7aFhz+ed18yZdJYmT44UvyBMY9b65RlQcxFe80rQs
	l+lfWI2ru7Pnftx5WUr7YZIMmsoAOyvtRiUpzk1Fqjxf7SuUr95ePR2KQIX7574MWAQLvgFdtlO
	iwkcOqhDD9dsTzfuxWk6xFxNMwuv/2ZrUSG3VbqOInLptZohoeB9mINIUEAzV1xKVk62+60fNw3
	a9kRCcvP9P1LNG9kblvJrqbjfN5FlyDjiI9Jrk59VHJ2CFrvmqXZLAiqKlIc+XKH7IFPjRtw8Vi
	xg7KyeLBIWxwfssTm57v7gS5mzsIe0r0abK9eVKIk9PTwXwnuSgwx0pO81NOU+K7XZ/gA442/u7
	LM+SoK1h85ZZmEES/yyQf3W3u2XpzJBhzSijbKmBIsY5E+ymY3pJboGYGPVmYNre/e3KuAWJRR8
	OvBwDkUb/xF5wswX6QBMOFWNE1m7hc2+3J3tvaIFYjkH6VFk8HTHl6BhcAIag+K6UoQERv07Qec
	infWYGLqJ4qr+J5AAnRDbuML2dAsHk16D3mOZ6NUDGsQAJ343Yy4rVRbdFw1YD7nWAAR52QCwtF
	SiBfCqUrLc5QGAsZPt8vtqxbGwpLXMXS6o5z3wM0aH/Bk7o=
X-Received: by 2002:a05:6122:62b1:b0:5ea:c330:7802 with SMTP id 71dfb90a1353d-5ee8adf12e2mr22605807e0c.2.1796064224682;
        Mon, 30 Nov 2026 10:43:44 -0800 (PST)
List-ID: Gentoo Linux mail <gentoo-user.gentoo.org>
Reply-To: gentoo-user@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Approved: robomod@news.nic.it
Lines: 98
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 30 Nov 2026 12:43:43 -0600
X-Original-Message-ID: <73ed3a94-b7f7-4be2-91c3-b684de077778@gmail.com>
X-Original-References: <sxKSRGVcRVqAZ-LV-6oRuA@prh.myzen.co.uk>
 <yK7lrF82RkKCLb5m-5kDoA@prh.myzen.co.uk>