mounting /var/run as mfs
From: Igor Sobrado (sobrado_at_string1.ciencias.uniovi.es)
Date: 10/31/03
- Next in thread: Brian A. Seklecki: "Re: mounting /var/run as mfs"
- Reply: Brian A. Seklecki: "Re: mounting /var/run as mfs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 31 Oct 2003 17:54:32 +0100
Hello.
I have read some useful articles about the layout of the NetBSD
filesystems. I specially like the next one, written by Grey Wolf:
http://ezine.daemonnews.org/200209/diskpartnbsd.html
Now, I have a question about mounting /var/run as a mfs filesystem
(in the same way it is a tmpfs in Solaris). Let us suppose that
a NetBSD machine has this fstab(5):
/dev/wd0a / ffs rw,softdep 1 1
/dev/wd0b none swap sw 0 0
/dev/wd0e /stand ffs rw,softdep 1 2
/dev/wd0f /var ffs rw,softdep 1 2
/dev/wd0g /usr ffs rw,softdep 1 2
/dev/wd0h /usr/contrib ffs rw,softdep 1 2
/dev/wd0i /usr/obj ffs rw,softdep 1 2
/dev/wd0j /usr/pkg ffs rw,softdep 1 2
/dev/wd0k /usr/pkgsrc ffs rw,softdep 1 2
/dev/wd0l /usr/src ffs rw,softdep 1 2
/dev/wd0m /dump ffs rw,softdep 1 2
/dev/wd0n /home ffs rw,softdep 1 2
swap /var/run mfs rw,-s=1m 0 0 <- /var/run entry
swap /tmp mfs rw,-s=16m 0 0
kernfs /kern kernfs rw 0 0
procfs /proc procfs rw 0 0
With this configuration, we will have problems when shutting down
the computer, that will not shut down cleanly.
How can we set up a mfs filesystem for /var/run? From Grey Wolf's
article, it looks possible. I like running /var/run as a memory
filesystem, as in recent Solaris releases (well, it is a tmpfs
in Solaris since Rel. 8).
Thanks in advance for any help on this issue!
Igor.
-- Igor Sobrado, UK34436 - sobrado@acm.org
- Next in thread: Brian A. Seklecki: "Re: mounting /var/run as mfs"
- Reply: Brian A. Seklecki: "Re: mounting /var/run as mfs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]