Date: Thu, 3 Sep 1998 00:02:52 +0930 (CST) From: Kris Kennaway <kkennawa@physics.adelaide.edu.au> To: current@FreeBSD.ORG Subject: Creating a vn filesystem (fwd) Message-ID: <Pine.OSF.3.90.980902230452.27341B-100000@bragg>
next in thread | raw e-mail | index | archive | help
When I try the commands below (which apparently work on 2.2.6) I get the
following error:
[morden|root] 23:03 ~ disklabel /dev/rvn1 | disklabel -R -r vn1 /dev/stdin
disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device
sector size 0
vn1 is being used because vn0 is used as a swap device.
My kernel has the following:
pseudo-device vn 2 #Vnode driver (turns a file into a device)
and is up-to-date with -current.
Any ideas?
Kris
---------- Forwarded message ----------
Date: Tue, 1 Sep 1998 12:32:34 -0500
From: Kevin Keyser <keyser@clio.rice.edu>
To: kkennawa@physics.adelaide.edu.au
Cc: questions@freebsd.org
Subject: Re: Creating a vn filesystem
> I'm trying to create a vn filesystem on my -current box, using the following:
>
> [morden|root] 0:13 ~ dd if=/dev/zero of=/d/bigfile bs=1024 count=204800
> 204800+0 records in
> 204800+0 records out
> 209715200 bytes transferred in 59.543914 secs (3522026 bytes/sec)
> [morden|root] 0:15 ~ vnconfig -c /dev/vn1 /d/bigfile
> (/dev/vn0 is being used as a swap file, hence /dev/vn1)
> [morden|root] 0:17 ~ disklabel -e /dev/vn1
> (dumps me in vi with the following)
>
{ normal looking disklabel }
>
> This seems okay to me - but upon writing and quitting, I get
>
> disklabel: Operation not supported by device
> re-edit the label? [y]:
The following works for me on 2.2.6R:
dd if=/dev/zero of=vn0.file bs=1m count=200
vnconfig -c /dev/vn0 vn0.file
disklabel /dev/rvn0 | disklabel -R -r vn0 /dev/stdin
disklabel -r -e vn0
newfs /dev/rvn0a
Maybe there's an easier way though...
> Thanks,
>
> Kris
Kevin
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.90.980902230452.27341B-100000>
