Mounting a filesystem-in-a-file via fstab? (md/mfs)

Ruben de Groot mail25 at bzerk.org
Mon Mar 21 04:57:40 PST 2005


On Mon, Mar 21, 2005 at 11:42:05AM +0100, Raphael H. Becker typed:
> 
> Hi *,
> 
> I recently tried to move my newsspool into a seperate filesystem in a
> flatfile and mounted it as a md device. Works perfectly with hands-on, 
> but there doesn't seem to exist a proper way to do this during startup
> (/etc/fstab).
> 
> Actually I have this line in /etc/fstab, but everytime that filesystem
> is mounted via fstab, it will be formatted using newfs:
> 
> md  /var/spool/news   mfs   rw,-F/data/spool_news.ufs,-U  0  0
> 
> How do I disable the newfs from mount_mfs?
> 
> Is there any proper way in the bootscripts, to set up md-devices and
> mount them automatically? It should even destroy /dev/md${n} on umount.
> 
> Any solutions? TIA.

There's a PR (and patch) on this issue. It was about to be committed 
somewhere in November, but unfortunately not yet.

http://www.freebsd.org/cgi/query-pr.cgi?pr=57641

Ruben



More information about the freebsd-stable mailing list