From owner-freebsd-hackers Tue Jul 28 11:20:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA07979 for freebsd-hackers-outgoing; Tue, 28 Jul 1998 11:20:25 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA07743; Tue, 28 Jul 1998 11:19:19 -0700 (PDT) (envelope-from dcmyers@concord.Corp.Sun.COM) Received: from Corp.Sun.COM ([129.145.35.78]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id LAA06432; Tue, 28 Jul 1998 11:18:10 -0700 Received: from concord.Corp.Sun.COM by Corp.Sun.COM (SMI-8.6/SMI-5.3) id LAA19382; Tue, 28 Jul 1998 11:18:10 -0700 Received: from concord.corp.sun.com by concord.Corp.Sun.COM (SMI-8.6/SMI-SVR4) id LAA21352; Tue, 28 Jul 1998 11:18:04 -0700 Message-Id: <199807281818.LAA21352@concord.Corp.Sun.COM> Date: Tue, 28 Jul 1998 11:18:04 -0700 (PDT) From: david.myers@Corp.Sun.COM Subject: Questions about vn driver (More info...) To: freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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-hackers" in the body of the message