Subject: bin/24104: /sbin/init can't create mfs /dev
To: None <>
From: None <>
List: netbsd-bugs
Date: 01/15/2004 11:44:54
>Number:         24104
>Category:       bin
>Synopsis:       /sbin/init can't create mfs /dev
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 15 09:51:00 UTC 2004
>Originator:     Jorge Acereda
>Release:        NetBSD 1.6ZG
System: NetBSD 1.6ZG NetBSD 1.6ZG (LOCUS) #32: Mon Dec 22 16:41:55 CET 2003 root@locus.dlsi:/sys/arch/i386/compile/LOCUS i386
Architecture: i386
Machine: i386

/sbin/init tries to mount /dev with mount_mfs when there is no
/dev/console on the machine. I tried that and found that there isn't
enough space to create all the device nodes.


Boot on a -current system where MAKEDEV hasn't been executed.


In sbin/init/init.c, Change 

#define NINODE 896

to something like:

#define NINODE 2000

With 2000 inodes, after MAKEDEV is executed, I get a /dev filesystem
with 71% of storage used.