tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Can't mount root partition after rebuilding kernel with DKWEDGE_METHOD_MBR



Pham Ngoc-Dung <ifa26417%outlook.com.vn@localhost> writes:

> I rebuilt the kernel as you suggested. It booted up, but the Linux 
> partitions are not detected. The root and swap partitions of NetBSD, 
> however, is now on /dev/dk0 and dk1.
>
> On 9/29/22 12:50 AM, Brad Spencer wrote:
>> You also want this -> DKWEDGE_METHOD_BSDLABEL as well as (or even
>> instead of) DKWEDGE_METHOD_MBR.  That cause a wedge to be added for each
>> disklabel entry which should the system to find your root filesystem.
>> It appears that with just DKWEDGE_METHOD_MBR the system didn't notice
>> where its root fs was at.  In fact, you may need to leave out
>> DKWEDGE_METHOD_MBR and just use DKWEDGE_METHOD_BSDLABEL if your
>> disklabel contains information about all of the native NetBSD
>> filesystems and the linux ones.
>> 
>> You will have to change everything in your /etc/fstab to use /dev/dkN
>> notation rather than /dev/wd0M notation, but that isn't too hard to do.


That probably means that the disklabel does not include the Linux
filesystems... probably...  look closely at 'disklabel wd0' or whatever
your disk is called and see if anything Linux is there.
DKWEDGE_METHOD_BSDLABEL should create a wedge for every filesystem
described in the disklabel.  But...  as someone else mentioned, you
don't have to use wedges at all if the disklabel contains a description
of the Linux filesystems.  You can just mount the filesystems directly
as wd0N.


-- 
Brad Spencer - brad%anduin.eldar.org@localhost - KC8VKS - http://anduin.eldar.org


Home | Main Index | Thread Index | Old Index