From 509794cf665133f32ca6c5e5cf6efe1fb57d1e27 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Sat, 28 Feb 2004 14:36:24 +0000 Subject: add a few more inodes to the second stage ramdisk, got bitten by a sucking no space left on device :/ will also print available inodes when creating ramdisk so that we can see if our computing was quite good --- tools/make_mdkinst_stage2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/make_mdkinst_stage2 b/tools/make_mdkinst_stage2 index abcd65624..7af43d726 100755 --- a/tools/make_mdkinst_stage2 +++ b/tools/make_mdkinst_stage2 @@ -68,7 +68,7 @@ eval `find $STAGE2TMP | perl -MMDK::Common -lne '-l or $s += round_up(-s, 1024); mkdir -p $MNTPOINT 2>/dev/null for i in $MNTPOINT $STAGE2; do $SUDO umount $i 2>/dev/null ; done dd if=/dev/zero of=$STAGE2 bs=1k count=$[ $size + 1024 + 200 ] -$MKE2FS -N $[$inodes + 50] $STAGE2 +$MKE2FS -N $[$inodes + 200] $STAGE2 $SUDO mount -t ext2 $STAGE2 $MNTPOINT -o loop rmdir $MNTPOINT/lost+found @@ -76,6 +76,7 @@ $SUDO cp -a $STAGE2TMP/* $MNTPOINT || exit 1 $SUDO rm -rf $STAGE2TMP df $MNTPOINT +df -i $MNTPOINT $SUDO umount $STAGE2 rmdir $MNTPOINT -- cgit v1.2.1