From owner-freebsd-current Tue Jan 23 03:15:33 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id DAA00800 for current-outgoing; Tue, 23 Jan 1996 03:15:33 -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 DAA00772 for ; Tue, 23 Jan 1996 03:15:16 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id WAA18283; Tue, 23 Jan 1996 22:11:42 +1100 Date: Tue, 23 Jan 1996 22:11:42 +1100 From: Bruce Evans Message-Id: <199601231111.WAA18283@godzilla.zeta.org.au> To: freebsd-current@FreeBSD.org, j@uriah.heep.sax.de Subject: Re: cvs commit: src/sbin/disklabel disklabel.8 disklabel.c Sender: owner-current@FreeBSD.org Precedence: bulk >> > 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