Subject: Making distribution fails with too few inodes in fs image
To: None <port-vax@netbsd.org>
From: Olaf Seibert <rhialto@polderland.nl>
List: port-vax
Date: 11/15/2002 00:06:55
I was cross-building a VAX distribution. The building went fine, making
the distribution then stopped here:
Building tree into work
rm -rf work work.built
mkdir -m 755 work
/home/rhialto/tools.i386/bin/nbmtree -def work.spec -p work/ -UW
...
missing: ./var/run (created)
missing: ./var/log (created)
missing: ./var/spool (created)
missing: ./var/spool/lock (created)
ARCHDIR=/mnt/vol1/rhialto/cvs/src/distrib/miniroot/../vax/miniroot DISTRIBREV=16K DISTRIBVER=1.6K KERNOBJDIR=/home/rhialto/obj.vax/sys/arch/vax/compile NETBSDSRCDIR=/mnt/vol1/rhialto/cvs/src CRUNCHBIN=instbin CURDIR=/mnt/vol1/rhialto/cvs/src/distrib/miniroot DESTDIR=/home/rhialto/destdir.vax DISTRIBDIR=/mnt/vol1/rhialto/cvs/src/distrib MACHINE=vax MACHINE_ARCH=vax OBJDIR=/home/rhialto/obj.vax/distrib/miniroot TARGETDIR=/home/rhialto/obj.vax/distrib/miniroot/work awk -f /mnt/vol1/rhialto/cvs/src/distrib/common/parselist.awk -v mode=populate /mnt/vol1/rhialto/cvs/src/distrib/miniroot/list /mnt/vol1/rhialto/cvs/src/distrib/miniroot/../vax/miniroot/list /mnt/vol1/rhialto/cvs/src/distrib/common/list.sysinst | sh -e && touch work.built
Creating image into miniroot.fs...
rm -f miniroot.fs miniroot.fs.tmp
/home/rhialto/tools.i386/bin/nbmakefs -t ffs -B le -s 7m -F work.spec -N /mnt/vol1/rhialto/cvs/src/etc -o bsize=4096,fsize=512 -o optimization=space,minfree=0,nsectors=1,ntracks=128 -o density=5k miniroot.fs.tmp work && mv -f miniroot.fs.tmp miniroot.fs
Calculated size of `miniroot.fs.tmp': 7340032 bytes, 1457 inodes
miniroot.fs.tmp: 14336 sectors in 112 cylinders of 128 tracks, 1 sectors
7.0MB in 1 cyl groups (153 c/g, 9.56MB/g, 1408 i/g)
super-block backups (for fsck -b #) at:
32,nbmakefs: Image file `miniroot.fs.tmp' has 1406 free inodes; 1457 are required.
nbmakefs: Image file `miniroot.fs.tmp' not created.
*** Error code 1
Stop.
I have tried to find where these parameters were set, but I got a bit
lost in several Makefiles. For instance, I saw instances of use of vnd,
(in cvs/src/distrib/vax/inst-common/Makefile.inc) which I thought was
phased-out in favour of the current method which does not require root
permissions.
So, where and how do I adjust the number of inodes?
-Olaf.
--
___ Olaf 'Rhialto' Seibert - rhialto@ -- Woe betide the one who feels
\X/ polderland.nl -- remorse without sin - Tom Poes, "Het boze oog", 4444.