Date: Mon, 22 Apr 2002 12:49:16 +0200 From: Axel Scheepers <axel@axel.truedestiny.net> To: Fuzzy <fuzzy@pooh.ASARian.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: help with vnconfig Message-ID: <20020422124916.M82499@mars.thuis> In-Reply-To: <Pine.BSF.4.44.0204220309420.60813-100000@pooh.ASARian.org>; from fuzzy@pooh.ASARian.org on Mon, Apr 22, 2002 at 03:25:43AM -0400 References: <Pine.BSF.4.44.0204220309420.60813-100000@pooh.ASARian.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020422124916.M82499>