From owner-freebsd-hackers Wed Jul 29 08:54:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA18703 for freebsd-hackers-outgoing; Wed, 29 Jul 1998 08:54:49 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from antipodes.cdrom.com (castles311.castles.com [208.214.167.11]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA18677 for ; Wed, 29 Jul 1998 08:54:43 -0700 (PDT) (envelope-from mike@antipodes.cdrom.com) Received: from antipodes.cdrom.com (localhost [127.0.0.1]) by antipodes.cdrom.com (8.8.8/8.8.5) with ESMTP id IAA03000; Wed, 29 Jul 1998 08:53:20 -0700 (PDT) Message-Id: <199807291553.IAA03000@antipodes.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Edwin Culp cc: Mike Smith , freebsd-hackers@FreeBSD.ORG Subject: Re: Questions about vn driver... In-reply-to: Your message of "Wed, 29 Jul 1998 09:35:08 CDT." <35BF331C.F304302D@webwizard.org.mx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 29 Jul 1998 08:53:20 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Mike Smith wrote: > > > > > > > [previously posted to freebsd-questions, to no avail...] > > > > > > Folks: > > > > > > How do you format a vn disk image as a ufs file system? I am attempting > > > to set up a 650 megabyte file for use as scratch space for assembling a > > > CD-ROM image, but cannot figure out how to format the "disk". Newfs > > > reports a pretty obvious error: there's no disktab entry for such a > > > beast. > > > > > > Here's my plan: > > > > > > 1) create ~/cdimage as a 650 megabyte file > > > 2) issue 'vnconfig /dev/vn0c ~/cdimage' > > > > That should have '-o slices' in it. Actually, that should have been '-s labels'. I was too tired. > > 2.5) 'disklabel -rw vn0 auto' > > I cannot get this to work. I get the following on my current > as of yesterday. > > disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device > disklabel: auto: unknown disk type If you got the 'vnconfig' wrong at any point, you'll have to go pick a new vn device. Are you running on a very old (pre-2.2) system? The lack of 'auto' would imply that. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message