Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 1996 22:11:42 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-current@FreeBSD.org, j@uriah.heep.sax.de
Subject:   Re: cvs commit: src/sbin/disklabel disklabel.8 disklabel.c
Message-ID:  <199601231111.WAA18283@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> >  The magic sequence is:
>> >  
>> >  	disklabel -r -w sdX auto
>> >  	disklabel -e sdX
>> 
>> This seems to only work on dangerously 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 -r -R sdX /dev/stdin
>>   	disklabel -e sdX
>> 
>> This gives the same label as auto for the same drives that auto works on.

>Of course.  But ``disklabel ... auto'' is way more convenient if it
>comes to Usenet support.  I've simply been tired from singing the same
>prayer over and over again...

Put it in a shell script named disklabel-auto.  If the disklabel manpage
is too hard, then another magic feature in it won't help.

>I've rather hacked this since it was a ``Frequently Requested Item'',
>not since it's the cleanest solution i could ever think of.  I'm still
>in the hope that somebody feels challenged enough to wrap a nice tool
>around libdisk for adding a new disk with a better user-interaction.
>disklabel ... auto is only intended for people who do already know how
>to use disklabel(8), just to save them the dirty work.

I hoped this would be done in (a modular piece in) sysinstall.

Bruce



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