Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 1998 08:53:20 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Edwin Culp <eculp@webwizard.org.mx>
Cc:        Mike Smith <mike@smith.net.au>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Questions about vn driver... 
Message-ID:  <199807291553.IAA03000@antipodes.cdrom.com>
In-Reply-To: Your message of "Wed, 29 Jul 1998 09:35:08 CDT." <35BF331C.F304302D@webwizard.org.mx> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807291553.IAA03000>