Subject: LFS on root
To: None <current-users@NetBSD.org>
From: Yoshito Komatsu <ykomatsu@akaumigame.org>
List: current-users
Date: 01/29/2006 22:58:40
Hello,

I am trying to use LFS on root partition.
I use NetBSD current i386 (GENERIC) 2006/01/28.

First, I installed NetBSD on FFS partition temporarily.
And I booted NetBSD from FFS partition
and I made LFS partition and installed NetBSD
into LFS partition.
At that time, no kernel panic occurred.

But when I was booting NetBSD from the LFS partition,
I always got a kernel panic.

uvm_fault(0xc088a4c0, 0, 0, 2) -> 0xe
kernel: supervisor trap page fault, code=0
Stopped in pid 15.1 (ioflush) at        netbsd:getnewbuf+0xe7:  movl 
%edx,0(%
eax)
db>
db> trace
getnewbuf(0,0,0,0,c2f06000) at netbsd:getnewbuf+0xe7
getblk(cc52df18,115e16,0,400,0) at netbsd:getblk+0x176
lfs_writeinode(c2f06000,ccf63f68,cc52eed8,1,400) at 
netbsd:lfs_writeinode+0xf7
lfs_segwrite(c2f08000,5,c080dce4,c2a1dd00,206) at netbsd:lfs_segwrite+0x24c
lfs_sync(c2f08000,3,cc520f6c,cc52b7bc,ffffffff) at netbsd:lfs_sync+0x4f
sync_fsync(ccefbf14,0,ccefbf3c,c0404aa4,c0650020) at netbsd:sync_fsync+0x8e
VOP_FSYNC(ccf368a0,cc520f6c,8,0,0) at netbsd:VOP_FSYNC+0x4c
sched_sync(cc52b7bc,961000,96a000,0,c0100321) at netbsd:sched_sync+0x1b3
db>
getnewbuf(0,0,0,0,c2f06000) at netbsd:getnewbuf+0xe7
getblk(cc52df18,115e16,0,400,0) at netbsd:getblk+0x176
lfs_writeinode(c2f06000,ccf63f68,cc52eed8,1,400) at 
netbsd:lfs_writeinode+0xf7
lfs_segwrite(c2f08000,5,c080dce4,c2a1dd00,206) at netbsd:lfs_segwrite+0x24c
lfs_sync(c2f08000,3,cc520f6c,cc52b7bc,ffffffff) at netbsd:lfs_sync+0x4f
sync_fsync(ccefbf14,0,ccefbf3c,c0404aa4,c0650020) at netbsd:sync_fsync+0x8e
VOP_FSYNC(ccf368a0,cc520f6c,8,0,0) at netbsd:VOP_FSYNC+0x4c
sched_sync(cc52b7bc,961000,96a000,0,c0100321) at netbsd:sched_sync+0x1b3
db>

/etc/fstab:

/dev/wd0a / lfs rw 0 0
/dev/wd0b none swap sw 0 0
/kern /kern kernfs rw 0 0

Could you tell me how to fix this?

Regards,
-- 
Yoshito Komatsu <ykomatsu@akaumigame.org>