From owner-freebsd-questions Wed Sep 18 9:38:59 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 7B8E437B401 for ; Wed, 18 Sep 2002 09:38:58 -0700 (PDT) Received: from mailhub.unibe.ch (mailhub.unibe.ch [130.92.9.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C34343E3B for ; Wed, 18 Sep 2002 09:38:56 -0700 (PDT) (envelope-from roth@iam.unibe.ch) Received: from CONVERSION-DAEMON.mailhub.unibe.ch by mailhub.unibe.ch (PMDF V6.1 #40086) id <0H2N005017KR0R@mailhub.unibe.ch> for freebsd-questions@freebsd.org; Wed, 18 Sep 2002 18:38:52 +0200 (MEST) Received: from iam.unibe.ch (asterix.unibe.ch [130.92.64.4]) by mailhub.unibe.ch (PMDF V6.1 #40086) with ESMTP id <0H2N00FMZ7KRIT@mailhub.unibe.ch> for freebsd-questions@freebsd.org; Wed, 18 Sep 2002 18:38:51 +0200 (MEST) Received: from lara.unibe.ch (lara [130.92.65.56]) by iam.unibe.ch (8.11.6+Sun/8.11.6) with ESMTP id g8IGco715318 for ; Wed, 18 Sep 2002 18:38:50 +0200 (MET DST) Received: (from roth@localhost) by lara.unibe.ch (8.9.3+Sun/8.9.3) id SAA23573 for freebsd-questions@freebsd.org; Wed, 18 Sep 2002 18:38:50 +0200 (MET DST) Date: Wed, 18 Sep 2002 18:38:50 +0200 From: Tobias Roth Subject: vnconfig and VNIOCATTACH To: freebsd-questions@freebsd.org Message-id: <20020918163850.GD23503@lara.unibe.ch> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4i X-Operating-System: SunOS lara 5.7 Generic_106541-10 sun4u sparc SUNW,Ultra-5_10 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 Hi 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? thanks in advance To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message