From owner-freebsd-questions@FreeBSD.ORG Mon Mar 18 12:43:15 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8F3AFF06 for ; Mon, 18 Mar 2013 12:43:15 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from eris.bzerk.org (unknown [IPv6:2001:980:18dd:1:192:168:179:45]) by mx1.freebsd.org (Postfix) with ESMTP id 1AF6B889 for ; Mon, 18 Mar 2013 12:43:14 +0000 (UTC) Received: from eris.bzerk.org (BOFH@localhost [127.0.0.1]) by eris.bzerk.org (8.14.6/8.14.5) with ESMTP id r2ICh6ZP052866 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 18 Mar 2013 12:43:07 GMT (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by eris.bzerk.org (8.14.6/8.14.6/Submit) id r2ICh4lv052865; Mon, 18 Mar 2013 12:43:04 GMT (envelope-from mail25@bzerk.org) X-Authentication-Warning: eris.bzerk.org: bulk set sender to mail25@bzerk.org using -f Date: Mon, 18 Mar 2013 12:43:04 +0000 From: Ruben de Groot To: Lowell Gilbert Subject: Re: Can an ISO file be mounted from /etc/fstab at boot? Message-ID: <20130318124303.GA51760@eris.bzerk.org> References: <44r4jgv394.fsf@lowell-desk.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44r4jgv394.fsf@lowell-desk.lan> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-11.0 required=5.0 tests=ALL_TRUSTED,AUTHD_RELAY autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eris.bzerk.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (eris.bzerk.org [127.0.0.1]); Mon, 18 Mar 2013 12:43:10 +0000 (UTC) Cc: "freebsd-questions@freebsd.org" , Oscar Hodgson X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Mar 2013 12:43:15 -0000 On Fri, Mar 15, 2013 at 04:04:23PM -0400, Lowell Gilbert typed: > Oscar Hodgson writes: > > > I'm pretty sure the answer is "no, just write a local rc script to do > > that", but thought I'd check. > > > > Can't see any hint of that capability in the handbook or fstab(5). > > > > Really just looking for a single point of management for file systems .... > > I don't see a way offhand. You need to do the mdconfig before you can > mount, and I don't think that can be done inside of fstab. > > I think that adding such a capability to mount(8) as a program option > would be a fairly minor hack. If it was a standard (UFS) filesystem image (not ISO9600) it would be possible to mount from fstab with something like this: /dev/md0 /data/mfs mfs rw,-PF/path/to/some.img,async 0 0 Ruben