From owner-freebsd-questions Mon Jun 17 7:57:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from corten2.billschoolcraft.com (adsl-63-193-247-201.dsl.snfc21.pacbell.net [63.193.247.201]) by hub.freebsd.org (Postfix) with ESMTP id 6C4CD37B425 for ; Mon, 17 Jun 2002 07:57:09 -0700 (PDT) Received: from corten8.billschoolcraft.com ([192.168.7.8]) by corten2.billschoolcraft.com with esmtp (Exim 3.22 #1 (Debian)) id 17JxwF-0002aw-00; Mon, 17 Jun 2002 07:57:03 -0700 Date: Mon, 17 Jun 2002 08:02:58 -0700 (PDT) From: Bill Schoolcraft X-X-Sender: bill@corten8 To: Heinrich Rebehn Cc: francisv@dagupan.com, Subject: Re: Correct way of calling vnconfig In-Reply-To: <3D0DE2A4.3070207@ant.uni-bremen.de> Message-ID: System-ID: [en] (I; Linux i86pc) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 At Mon, 17 Jun 2002 it looks like Heinrich Rebehn composed: > francisv@dagupan.com wrote: > > Hi, > > > > I can't figure out why this command is not working: > > > > [root@host root]# vnconfig -e vn0c /usr/local/vnodes/file \ > > mount=/usr/local/vps/mount_point > > vnconfig: mount: Device busy > > > > I can mount it if I do `vnconfig vn0 /usr/local/vnodes/file' and then `mount > > /dev/vn0c /usr/local/vps/mount_point' > > Hmm, I'm not quite sure what your initial question was but I may be able to help for I use that command to mount an ISO image in loopback so I can see it. I've put it in a script called /bin/iso so I'll just show you the script. #################_Begin_Script_#################### #!/bin/sh # /usr/sbin/vnconfig vn0 /usr/home/wiliweld/ljcd2.iso /sbin/mount_cd9660 /dev/vn0c /mnt/test/ #################_End_Script_#################### So I just type "iso" at the prompt and it mounts the iso image called "ljcd2.iso on the mount point called "/mnt/test/" -- |<--------------------------------72---------------------------------->| Bill Schoolcraft PO Box 210076 -o) San Francisco CA 94121 /\ "UNIX, A Way Of Life." _\_v http://forwardslashunix.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message