On Fri, 3 Jun 2005, Andy Jack wrote:

> On Fri, Jun 03, 2005 at 06:52:24PM +0200, Sch?berle D?niel wrote:
> > Hi all,
> > I'm runnig 3.7-release on i386 with a 512MB CF card acting as wd0 and
> > I'm having a strange problem with mfs mounted /var. It gets mounted
> > twice, while I have only one mfs /var line in fstab.
> [snip] 
> > > cat /etc/fstab
> > /dev/wd0a / ffs rw,noatime,softdep 1 1
> > /dev/wd0h /home ffs rw,noatime,nodev,nosuid,softdep 1 2
> > /dev/wd0g /usr ffs ro,noatime,nodev,softdep 1 2
> > #/dev/wd0e /var ffs rw,noatime,noexec,nodev,nosuid,softdep 1 2
> > /dev/wd0e /var mfs rw,-P=/dev/wd0e,noexec,nosuid,nodev 0 0
> > /dev/wd0d /tmp mfs rw,noexec,nosuid,nodev 0 0
> 
> I would suspect the /dev/wd0e line in your fstab is the culprit; all of
> the mfs examples I have seen in /etc/fstab look like:
> 
> swap /var mfs rw,-P=/dev/wd0e,noexec,nosuid,nodev 0 0
> 
> as in: http://marc.theaimsgroup.com/?l=openbsd-misc&m=111205241028217&w=2

It's a perfectly legal fstab line, as is made clear in the man page
(second paragraph).

The primary swap device is mosty often used here, but it is not wrong
to use another device, as only the disklabel parameters are read from
the device specified.

BTW, I prefer the 'noauto' solution to the OP problem.

        -Otto

Reply via email to