From owner-freebsd-questions Mon Apr 22 4:28: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from axel.truedestiny.net (a185066.upc-a.chello.nl [62.163.185.66]) by hub.freebsd.org (Postfix) with ESMTP id 2814237B420 for ; Mon, 22 Apr 2002 04:27:54 -0700 (PDT) Received: by axel.truedestiny.net (Postfix, from userid 1000) id F391449ABD; Mon, 22 Apr 2002 12:49:16 +0200 (CEST) Date: Mon, 22 Apr 2002 12:49:16 +0200 From: Axel Scheepers To: Fuzzy Cc: freebsd-questions@FreeBSD.ORG Subject: Re: help with vnconfig Message-ID: <20020422124916.M82499@mars.thuis> Reply-To: Axel Scheepers References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from fuzzy@pooh.ASARian.org on Mon, Apr 22, 2002 at 03:25:43AM -0400 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 Mon, Apr 22, 2002 at 03:25:43AM -0400, Fuzzy wrote: > I'm trying to build a filesystem in a file, > something like ... > > vnconfig -v -S 650m -Z -e /dev/vn0 cdrom1 > newfs -v /dev/vn0 > mount -t ufs /dev/vn0 /cdrom Okay, Last time I did it different but hey, this works fine: # dd if=/dev/zero of=testimage bs=1m count=10 # vnconfig -s labels -c vn0 testimage or # vnconfig -v -S 10m -Z -s labels vn0 testimage Now you can: # disklabel -r -w vn0 auto and # newfs -m 0 vn0c or add some slices in the disklabel and newfs them The result can be mounted with # mount -t ufs /dev/vn0c /mnt > > it fails though. I'm sure its possible, > I just can't figure out how to tell > the utilities what I want to do. It fails on me when I don't use -s labels, which you need for creating the disklabels. (a=root part, b=swap, c=whole, d-z=user def) > > anyone know how to do the correctly? > > Fuz > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message Hope it helps, Gr, -- Axel Scheepers UNIX System Administrator email: axel@axel.truedestiny.net a.scheepers@iae.nl http://axel.truedestiny.net/~axel ------------------------------------------ Be different: conform. ------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message