From owner-freebsd-questions Wed Sep 18 19:55:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90C2B37B401 for ; Wed, 18 Sep 2002 19:55:19 -0700 (PDT) Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54D0643E4A for ; Wed, 18 Sep 2002 19:55:19 -0700 (PDT) (envelope-from mbsd@pacbell.net) Received: from atlas ([64.160.45.6]) by mta7.pltn13.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0H2O00K850467P@mta7.pltn13.pbi.net> for freebsd-questions@freebsd.org; Wed, 18 Sep 2002 19:55:19 -0700 (PDT) Date: Wed, 18 Sep 2002 19:55:18 -0700 (PDT) From: "M.T." Subject: Re: vnconfig and VNIOCATTACH In-reply-to: <20020918163850.GD23503@lara.unibe.ch> X-X-Sender: mikko@atlas.home To: Tobias Roth Cc: freebsd-questions@freebsd.org Message-id: <20020918195404.I306-100000@atlas.home> MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 18 Sep 2002, Tobias Roth wrote: > I use the following commands to create a plain file, make a filesystem on it and mount it: > vnconfig -T -S 128m -Z -s labels -c vn0 /usr/plainfile > chmod 600 /usr/plainfile > disklabel -r -w vn0 auto > disklabel -e vn0 > newfs /dev/vn0c > mount /dev/vn0c /mnt/targetdir > > For mounting the device (for instance after a reboot): > vnconfig -e -s labels vn0 /usr/plainfile mountro=/mnt/targetdir > > And for disabling: > vnconfig -d vn0c /usr/plainfile mount=/mnt/targetdir > > 1) do I use these commands correctly? I basically just copied stuff from the manpages > 2) after disabling, when I am trying to re-enable the device, I get > vnconfig: VNIOCATTACH: Device busy > What am I doing wrong? Try "vnconfig -u vn0" to unconfigure the device. $.02, /Mikko To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message