Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Nov 1997 00:57:14 +1100 (EST)
From:      Andrew Cagney <cagney@tpgi.com.au>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   conf/5127: Can't mount mfs file system larger than 38mb from fstab
Message-ID:  <199711221357.AAA27390@b1.tpgi.com.au>
Resent-Message-ID: <199711221400.GAA06840@hub.freebsd.org>

index | next in thread | raw e-mail


>Number:         5127
>Category:       conf
>Synopsis:       Can't mount mfs file system larger than 38mb from fstab
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 22 06:00:00 PST 1997
>Last-Modified:
>Originator:     Andrew Cagney
>Organization:
>Release:        FreeBSD 2.2.5-RELEASE i386
>Environment:

	Almost vanila 2.2.5 - Kernel configured with:

	options		CHILD_MAX=128
	options		OPEN_MAX=128
	options		"MAXDSIZ=(256*1024*1024)"
	options		"DFLDSIZ=(256*1024*1024)"

	A 500mb swap partition.

>Description:

Given the /etc/fstab entries:

/dev/wd1b                     	/tmp            mfs     rw 0 0
/dev/wd1b                     	/mnt            mfs     rw,noauto 0 0

then, afer booting, mounting /mnt gives a very large (256mb) MFS /mnt.
However /tmp's file system (mounted during boot) is only 38MB.
Remounting the file system sorts out the problem (assming nothing is
using /tmp :-)

>How-To-Repeat:

	Reboot the system with the above kernel and FSTAB changes.
	Make /dev/wd1b >= 256mb.
	
>Fix:
	
Add/edit the lines below to /etc/rc after the edited line:

mount -a -t nonfs,mfs
if [ $? != 0 ]; then
	echo "Filesystem mount failed, startup aborted"
	exit 1
fi

# Add mfs file systems now that all the swap is available
( ulimit -d unlimited && mount -a -t mfs )
if [ $? != 0 ]; then
	echo "Memory Filesystem mount failed, startup aborted"
	exit 1
fi

>Audit-Trail:
>Unformatted:


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711221357.AAA27390>