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

2022-09-29 Thread Pham Ngoc-Dung
I tried dkctl. But it said "/dev/rwd0: addwedge: Device busy" every time. However, I noticed that when I booted from the installation drive, the Linux partitions appeared. Maybe dk wedges only works with drives that weren't the root drive. But that doesn't sound right since I was able to get th

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

2022-09-29 Thread Brad Spencer
Pham Ngoc-Dung 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_BSDLAB

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

2022-09-29 Thread Pham Ngoc-Dung
Hi. I looked back into the disklabel. Then I found mbrlabel(8) mentioned in this (https://silas.net.br/tech/netbsd/netbsd-tips.html). But, I didn't see this command popping up in similar questions, so I was hesitated to try, in fear that maybe I'm blindly executing it. I also made a post on

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

2022-09-29 Thread Martin Husemann
On Thu, Sep 29, 2022 at 08:25:00PM +0700, Pham Ngoc-Dung wrote: > I tried dkctl. But it said "/dev/rwd0: addwedge: Device busy" every time. > However, I noticed that when I booted from the installation drive, the Linux > partitions appeared. Try "dkctl wd0 listwedges" and see if they are already t

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

2022-09-29 Thread Pham Ngoc-Dung
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) DK

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

2022-09-28 Thread Robert Elz
This isn't really a tech-kern question, but never mind. You shouldn't need wedges at all, and I'd advise against trying to force them to work (it is probably possible, but far more work than you need to do). Go back to your original kernel, and when that's running, do disklabel wd0 On N

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

2022-09-28 Thread Martin Husemann
On Wed, Sep 28, 2022 at 04:52:43PM +, Pham Ngoc-Dung wrote: > Hi. On my hard drive (wd0, MBR), I have 3 partitions originally for Linux, > including a boot partition (ext2 formatted), and another partition with > NetBSD installed. > For a reason I wanted to mount the Linux boot partition, whi

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

2022-09-28 Thread Brad Spencer
Pham Ngoc-Dung writes: > Hi. On my hard drive (wd0, MBR), I have 3 partitions originally for Linux, > including a boot partition (ext2 formatted), and another partition with > NetBSD installed. > For a reason I wanted to mount the Linux boot partition, which should have > been easy since ext2

Can't mount root partition after rebuilding kernel with DKWEDGE_METHOD_MBR

2022-09-28 Thread Pham Ngoc-Dung
Hi. On my hard drive (wd0, MBR), I have 3 partitions originally for Linux, including a boot partition (ext2 formatted), and another partition with NetBSD installed. For a reason I wanted to mount the Linux boot partition, which should have been easy since ext2 is supported by NBSD. But except fd