Trond Endrestøl
2006-Dec-17 01:15 UTC
tmpmfs="YES" and going from single user to multi user mode
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, After going to single user mode and back to multi user mode on a system with tmpmfs="YES" in /etc/rc.conf, I wound up with these filesystems: trond@enterprise:~>df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 9195750 3179348 5280742 38% / devfs 1 1 0 100% /dev /dev/md0 63214 14 58144 0% /tmp procfs 4 4 0 100% /proc /dev/md1 63214 20 58138 0% /tmp There should either be a shutdown script that unmounts /tmp when tmpmfs="YES" and /tmp is indeed mounted as a MFS, or the startup script should check to see if /tmp is already mounted (as a MFS) before attempting mount the MFS (again). Trond. - -- - ---------------------------------------------------------------------- Trond Endrest?l | trond@fagskolen.gjovik.no Patron of The Art of Computer Programming| FreeBSD 6.1-S & Pine 4.64 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFhQqabYWZalUoElsRAhGzAJ4/BEMeon1m/atETo6iBgMJKYV+DgCfa/Vs vIgPqhnjF6nnxRsrg12jQFc=duCI -----END PGP SIGNATURE-----
Doug Barton
2006-Dec-17 13:06 UTC
tmpmfs="YES" and going from single user to multi user mode
Trond Endrest?l wrote:> Hi, > > After going to single user mode and back to multi user mode on a > system with tmpmfs="YES" in /etc/rc.conf, I wound up with these > filesystems: > > trond@enterprise:~>df > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 9195750 3179348 5280742 38% / > devfs 1 1 0 100% /dev > /dev/md0 63214 14 58144 0% /tmp > procfs 4 4 0 100% /proc > /dev/md1 63214 20 58138 0% /tmp > > There should either be a shutdown script that unmounts /tmp when > tmpmfs="YES" and /tmp is indeed mounted as a MFS, or the startup > script should check to see if /tmp is already mounted (as a MFS) > before attempting mount the MFS (again).We look forward to your patches to implement that suggestion. You might want to ask on the freebsd-rc@ list if you need help. Good luck, Doug -- This .signature sanitized for your protection
Oliver Fromme
2006-Dec-19 04:45 UTC
tmpmfs="YES" and going from single user to multi user mode
Trond Endrest?l wrote: > After going to single user mode and back to multi user mode on a > system with tmpmfs="YES" in /etc/rc.conf, I wound up with these > filesystems: > > trond@enterprise:~>df > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 9195750 3179348 5280742 38% / > devfs 1 1 0 100% /dev > /dev/md0 63214 14 58144 0% /tmp > procfs 4 4 0 100% /proc > /dev/md1 63214 20 58138 0% /tmp > > There should either be a shutdown script that unmounts /tmp when > tmpmfs="YES" and /tmp is indeed mounted as a MFS, or the startup > script should check to see if /tmp is already mounted (as a MFS) > before attempting mount the MFS (again). That problem doesn't occur when you mount /tmp via /etc/fstab instead of tmpfs="YES" in /etc/rc.conf. I always prefer to use /etc/fstab for the above reason and others. And entry like the following will do (for a 64 MB /tmp): md /tmp mfs rw,nosuid,async,-s64m 0 0 Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "Unix gives you just enough rope to hang yourself -- and then a couple of more feet, just to be sure." -- Eric Allman