Subject: mkdir on EXT2 results in panic
To: None <port-cobalt@netbsd.org>
From: Adam Dickmeiss <adam@indexdata.dk>
List: port-cobalt
Date: 05/29/2002 09:39:42
Hi, 

I'm about to install NetBSD 1.5.2 on harddrive on a qube2. I've
booted via NFS and is about to make a /boot directory on EXT2 file system
on first partition. However, the mkdir results in a panic.
I can copy files to the EXT2 OK. Creating directories doesn't
work. I'm using e2fsprogs-1.19.tar.gz
(md5 ef6a339f06e6d5eb1d7fe13462a37cb8).

I'm not too familiar with NetBSD so I show some details of
partitions, disklabels, etc.

If there's an easy way to configure the Cobalt BIOS to
boot from / on first EXT2 that would solve my problem too.
Already tried to make a symbolic link "boot -> ."  but that
didn't work.

Cheers,
  Adam

qube# fdisk wd0                                                                 
NetBSD disklabel disk geometry:                                                 
cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder)            
                                                                                
BIOS disk geometry:                                                             
cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder)            
                                                                                
Partition table:                                                                
0: sysid 131 (Linux native)                                                     
    start 63, size 120000 (58 MB), flag 0x0                                     
        beg: cylinder    0, head   1, sector  1                                 
        end: cylinder  119, head   1, sector 48                                 
1: sysid 169 (NetBSD)                                                           
    start 120063, size 16000000 (7812 MB), flag 0x0                             
        beg: cylinder  119, head   1, sector 49                                 
        end: cylinder  632, head   2, sector  1                                 
2: <UNUSED>                                                                     
3: <UNUSED>                                                                     
qube# disklabel wd0
# /dev/rwd0d:
type: ESDI
disk: ST38410A        
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 16841664
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

8 partitions:
#        size   offset     fstype   [fsize bsize cpg/sgs]
  a:  1008000   120063     4.2BSD     1024  8192    16   # (Cyl.  119*- 1119*)
  b:   120960  1128063       swap                        # (Cyl. 1119*- 1239*)
  c: 16000000   120063     unused        0     0         # (Cyl.  119*- 15992*)
  d: 16841664        0     unused        0     0         # (Cyl.    0 - 16707)
  e:   120000       63 Linux Ext2        0     0         # (Cyl.    0*- 119*)
  f: 16000000   120063     unused        0     0         # (Cyl.  119*- 15992*)
qube# mke2fs -r 0 -O none /dev/wd0e
mke2fs 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
15040 inodes, 60000 blocks
3000 blocks (5.00%) reserved for the super user
First data block=1
8 block groups
8192 blocks per group, 8192 fragments per group
1880 inodes per group
Superblock backups stored on blocks: 
        8193, 16385, 24577, 32769, 40961, 49153, 57345

Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done
qube# mount /dev/wd0e /mnt
qube# mount
10.0.0.2:/nfsroot on / type nfs
/dev/wd0e on /mnt type ext2fs (local)
qube# mkdir /mnt/boot
panic: kernel diagnostic assertion "vp->v_size == ip->i_e2fs_size" failed: file 
"../../../../ufs/ext2fs/ext2fs_readwrite.c", line 343

Stopped in pid 193 (mkdir) at   0x80171480:     jr      ra
                bdslot: nop
db>