Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Sep 1998 12:32:34 -0500
From:      keyser@clio.rice.edu (Kevin Keyser)
To:        kkennawa@physics.adelaide.edu.au
Cc:        questions@FreeBSD.ORG
Subject:   Re: Creating a vn filesystem
Message-ID:  <9809011732.AA14985@clio.rice.edu>

next in thread | raw e-mail | index | archive | help
> 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-questions" in the body of the message



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