Subject: misc/6578: mounting local filesystems in /etc/rc
To: None <gnats-bugs@gnats.netbsd.org>
From: None <bgrayson@ece.utexas.edu>
List: netbsd-bugs
Date: 12/13/1998 13:44:07
>Number: 6578
>Category: misc
>Synopsis: Mounting /home etc could be smarter
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Dec 13 11:50:01 1998
>Last-Modified:
>Originator: Brian Grayson
>Organization:
Parallel and Distributed Systems
Electrical and Computer Engineering
The University of Texas at Austin
>Release: Dec. 11, 1998
>Environment:
>Description:
My /, /var, and /usr partitions are near full, so I made
/var/crash a symlink to /home, which has .5Gig free. I
also put a large swapfile on /home. With the current
/etc/rc setup, crashdumps will not be saved, nor will
swapping be turned on, because local non-critical
filesystems aren't yet mounted at those times.
The patch below mounts all local ffs filesystems from
/etc/fstab right after mounting all ``critical''
filesystems. I could just make /home ``critical,'' but
is there any good reason to delay mounting local ffs
filesystems at that point in /etc/rc?
>How-To-Repeat:
>Fix:
--- rc.dist Sun Dec 13 13:26:26 1998
+++ rc Sun Dec 13 13:27:59 1998
@@ -118,6 +118,9 @@
)
done
+## Mount any remaining local filesystems.
+mount -a -t ffs >/dev/null 2>&1
+
# Network Address Translation...
if checkyesno ipnat && [ -f /etc/ipnat.conf ]; then
echo 'installing NAT rules ... '
>Audit-Trail:
>Unformatted: