Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Feb 1996 00:22:51 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-hackers@FreeBSD.ORG, j@uriah.heep.sax.de
Cc:        karl@mcs.com
Subject:   Re: And the winner is!
Message-ID:  <199602031322.AAA15664@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> > 		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



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