unable to mount swap backed device

Cory Bajus cbajus at mts.net
Fri Apr 16 11:40:12 PDT 2004


On Fri, Apr 16, 2004 at 11:02:45AM +0200, Mipam wrote:
[SNIP]
> >> Only the permissions ans ownership after this are like this:
> >>
> >> drwxrwxrwt   3 root    wheel
> >>
> >> every time after reboot the permissions are the same again.
> >> Anyway, to get around this?
> 
> >Sure - have a look at the -p and -w options in the mdmfs man
> >page.
> 
> I noticed these options there, only, how do i invoke these commands in
> this line in /etc/fstab: (can i do it like this?)
> 
> md    /var/amavis     mfs     rw,-s64m,-p750,-wamavis:amavis   0   0

No, you will not be able to do that.  When you use mdmfs in a
fstab entry, you are actually using the 'compatibiliy mode' for
the old mount_mfs.  As described in the mdmfs man page, you can
only use a subset of the options in compatilibity mode.

The following command should accomplish what you need:

mdmfs -s 64m -p 0750 -w amavis:amavis md /var/amavis


Cory.


More information about the freebsd-stable mailing list