Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jul 1998 11:18:04 -0700 (PDT)
From:      david.myers@Corp.Sun.COM
To:        freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG
Subject:   Questions about vn driver (More info...)
Message-ID:  <199807281818.LAA21352@concord.Corp.Sun.COM>

next in thread | raw e-mail | index | archive | help

Regarding my attempt to format a vn disk image as UFS: 

I found Keith Jones' post (Message-ID:
<19980715103538.41845@blueberry.co.uk>) in freebsd-bugs regarding a
similar issue. He created a disktab entry for an mfs file system (Ah!
MFS! Is that documented somewhere?), and used that to disklabel his
vnconfig'd device.  But following his recipe exactly, I get the
following when issuing the 'disklabel -w /dev/vn0 400M':

   disklabel: ioctl DIOCWDINFO: Operation not supported by device

I'm using FreeBSD-2.2.6 with the PAO-980430 laptop extensions.

Keith's recipe is copied below.  He apparently didn't have any problems
disklabeling his vn disk...

Any help appreciated.

-David


-------------

This is what I did:

# dd if=/dev/zero of=/usr/diskimage bs=1024 count=409600
# vnconfig -c -s labels /dev/vn0 /usr/diskimage
# disklabel -w /dev/vn0 400M
# newfs /dev/vn0a
# newfs /dev/vn0e
# newfs /dev/vn0f
# mount /dev/vn0a /mnt
# cd /mnt
# mkdir usr
# mkdir var
# mount /dev/vn0e /mnt/var
# mount /dev/vn0f /mnt/usr

The /etc/disktab entry for 400M is as follows:

400M|400M Disk:\
        :ty=mfs:se#512:nt#16:ns#32:nc#1600: \
        :pa#65536:oa#0:ta=4.2BSD:ba#4096:fa#512:\ 
        :pb#65536:ob#65536:tb=swap: \
        :pc#819200:oc#0: \ 
        :pe#61440:oe#131072:te=4.2BSD:be#4096:fe#512: \
        :pf#626688:of#192512:tf=4.2BSD:bf#4096:ff#512:




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?199807281818.LAA21352>