Re:_New_kernel_doesn’t_recognize_ufs_gpt_roo t_filesystem

From: Chris <bsd-lists_at_bsdforge.com>
Date: Sun, 20 Apr 2025 05:23:10 UTC
On 2025-04-19 20:36, Warner Losh wrote:
> On Sat, Apr 19, 2025, 8:51 PM Chris <bsd-lists@bsdforge.com> wrote:
> 
>> Finally got a build world/kernel to complete. Following a
>> installkernel with a boot -s resulted in the inability
>> to mount root (/dev/gpt/FBSD15)
>> It’s a ufs2 filesystem. I booted the 15-CURRENT
>> usb stick. It recognized it. I performed fsck on
>> it. No errors.
>> An attempt to mount it from the new kernel at boot is:
>> Mounting from ufs:/dev/gpt/FBSD15 failed with error 19.
>> 
>> Can anyone suggest the best way forward please?
>> 
> 
> Maybe this is a custom kernel without the label code.
It's an upgrade. It's 15 from ~11 mos ago. Yes a custom kernel. But
I'm using the same kernconf as before. Was label removed from generic
in the last 11 mos.?

> What does '?' at
> mountroot> prompt say?
nadda, nothing.

> Does one of those work if you add 'ufs:/dev/' to the
> front of each of the geoms listed? Most likely ada0p2 or nda0p2.
Indeed. It's nda0p2. But ufs:/dev/nda0p2 returns the same error 19.
I had to move kernel to kernel.new && kernel.old to kernel to get
here to write this response.

Thanks!

--Chris
> 
> Warner
> 
> Thanks.
>> 
>> —-Chris
-- 
sent from hardware written from and running on FreeBSD