From owner-freebsd-hackers Sat Feb 3 05:26:37 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA28776 for hackers-outgoing; Sat, 3 Feb 1996 05:26:37 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id FAA28769 for ; Sat, 3 Feb 1996 05:26:24 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id AAA15664; Sun, 4 Feb 1996 00:22:51 +1100 Date: Sun, 4 Feb 1996 00:22:51 +1100 From: Bruce Evans Message-Id: <199602031322.AAA15664@godzilla.zeta.org.au> To: freebsd-hackers@FreeBSD.ORG, j@uriah.heep.sax.de Subject: Re: And the winner is! Cc: karl@mcs.com Sender: owner-hackers@FreeBSD.ORG Precedence: bulk >> > and the companion "I want to add a disk and not do a disktab >> > by hand -- since I have a ZBR disk and don't KNOW the right >> >> That's still kind of rough, yes. >Not as smooth as `disksetup' (presumably -- i've never been using it), >but you've got it more convenient, without vamping a disktab entry. >In -current, you could do: > disklabel -Brw sdX auto > disklabel -e sdX >If people find it useful (and there are no further objections than the >single one i've seen by now), i could also move this functionality >into -stable. I still object :-). `auto' only works for dedicated disks, and labelling those is easy using standard features: disklabel /dev/rsdX | sed -e s'/interleave: 0$/interleave: 1/' \ -e s'/rpm: 0$/rpm: 3600/' \ -e s'/^[1-7] partitions/8 partitions/' | disklabel -B -r -R sdX /dev/stdin disklabel -e sdX The sed command and `auto' do the same fixups for the incomplete label on /dev/rsdX. Bruce