Date: Mon, 30 Sep 1996 23:53:11 -0700 From: "Jordan K. Hubbard" <jkh@time.cdrom.com> To: Bruce Evans <bde@zeta.org.au> Cc: guido@gvr.win.tue.nl, phk@critter.tfs.com, FreeBSD-hackers@FreeBSD.org Subject: Re: disklabeling a vn device Message-ID: <23191.844152791@time.cdrom.com> In-Reply-To: Your message of "Tue, 01 Oct 1996 16:15:06 %2B1000." <199610010615.QAA15452@godzilla.zeta.org.au>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?23191.844152791>
