From owner-freebsd-hackers Mon Sep 30 23:54:08 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA01553 for hackers-outgoing; Mon, 30 Sep 1996 23:54:08 -0700 (PDT) Received: from time.cdrom.com (time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id XAA01535 for ; Mon, 30 Sep 1996 23:54:06 -0700 (PDT) Received: from time.cdrom.com (localhost [127.0.0.1]) by time.cdrom.com (8.7.6/8.6.9) with ESMTP id XAA23194; Mon, 30 Sep 1996 23:53:11 -0700 (PDT) To: Bruce Evans cc: guido@gvr.win.tue.nl, phk@critter.tfs.com, FreeBSD-hackers@FreeBSD.org Subject: Re: disklabeling a vn device In-reply-to: Your message of "Tue, 01 Oct 1996 16:15:06 +1000." <199610010615.QAA15452@godzilla.zeta.org.au> Date: Mon, 30 Sep 1996 23:53:11 -0700 Message-ID: <23191.844152791@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > See /usr/src/release/doFS.sh for how to do it. Gak! NOT. It edits Nobody will be offended if you feel compelled to change any of that script for the better. However, the picture is still not quite so rosy as you paint it: > dd if=/dev/zero of=vnfile bs=1024k count=4 > vnconfig -c -s labels /dev/rvn0 vnfile This spews: vn0: invalid primary partition table: no magic Rather annoyingly on the console and can be fixed as Poul-Henning has done in doFS.sh by doing instead: dd if=/dev/zero of=vnfile bs=1024k count=4 awk 'BEGIN {printf "%c%c", 85, 170}' | \ dd of=vnfile obs=1 seek=510 conv=notrunc 2>/dev/null vnconfig -c -s labels /dev/rvn0 vnfile And: > disklabel /dev/rvn0 | disklabel -R -r vn0 /dev/stdin Produces: disklabel: /dev/rvn0c: Undefined error: 0 :-( Jordan