From owner-freebsd-stable@FreeBSD.ORG Mon Mar 21 12:57:40 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53D6C16A4CE for ; Mon, 21 Mar 2005 12:57:40 +0000 (GMT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51A8743D2F for ; Mon, 21 Mar 2005 12:57:39 +0000 (GMT) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.13.1/8.13.1) with ESMTP id j2LD2elg087385; Mon, 21 Mar 2005 14:02:40 +0100 (CET) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.13.1/8.13.1/Submit) id j2LD2eOS087384; Mon, 21 Mar 2005 14:02:40 +0100 (CET) (envelope-from mail25@bzerk.org) Date: Mon, 21 Mar 2005 14:02:40 +0100 From: Ruben de Groot To: "Raphael H. Becker" Message-ID: <20050321130240.GB87158@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , "Raphael H. Becker" , freebsd-stable@freebsd.org References: <20050321114205.A95974@p-i-n.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050321114205.A95974@p-i-n.com> User-Agent: Mutt/1.4.2.1i X-Spam-Status: No, score=-2.3 required=5.0 tests=ALL_TRUSTED, FROM_ENDS_IN_NUMS autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on ei.bzerk.org cc: freebsd-stable@freebsd.org Subject: Re: Mounting a filesystem-in-a-file via fstab? (md/mfs) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 12:57:40 -0000 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