From owner-freebsd-stable@FreeBSD.ORG Thu Sep 11 12:47:34 2008 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7045106564A for ; Thu, 11 Sep 2008 12:47:34 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 27B568FC16 for ; Thu, 11 Sep 2008 12:47:33 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id m8BClOb5038392; Thu, 11 Sep 2008 14:47:24 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id m8BClN7i038391; Thu, 11 Sep 2008 14:47:23 +0200 (CEST) (envelope-from olli) Date: Thu, 11 Sep 2008 14:47:23 +0200 (CEST) Message-Id: <200809111247.m8BClN7i038391@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, smithi@nimnet.asn.au, kensmith@cse.Buffalo.EDU, kais.deliverymail@googlemail.com In-Reply-To: <20080909010813.L439@sola.nimnet.asn.au> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 11 Sep 2008 14:47:27 +0200 (CEST) Cc: Subject: Re: Fwd: FreeBSD 7.1 Content X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, smithi@nimnet.asn.au, kensmith@cse.Buffalo.EDU, kais.deliverymail@googlemail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2008 12:47:34 -0000 Ian Smith wrote: > % man sysinstall | tail says it all. However sysinstall has enough bits > (modules, really) that don't suck to make its presence still worthy. > > The wrappers around fdisk and bsdlabel alone are worth a lot, despite a > notion that 'real men' figure out cylinder and slice offsets themselves. It's not that bad. I agree that fdisk's "user interface" is not pretty. But the most common usage is simply "fdisk -BI" to initialize a new disk to be used by FreeBSD. This is a simple, non-interactive command, so there's no reason to use sysinstall for that. And bsdlabel (formerly disklabel) is actually quite user-friendly. In the most common cases (preparing a fresh disk or slice), you don't have to calculate anything at all. When "bsdlabel -e" drops you into your favourite editor (assuming you have set $EDITOR to something you're familiar with), just enter the partition letters that you need, and their respective sizes. Note you can use "M" and "G" suffixes for MBytes and GBytes; you don't have to calculate sector counts. You can even use percent values, so entering "50%" for the size will use half of the free space on that slice (after subtracting all fixed-size partitions), and "100%" will use all the remaining space, as does "*". Just enter "*" for all the offsets, and they will automatically allocated sequentially. Again, you don't have to calculate anything, unless you really want to. The bsdlabel tool is pretty fool-proof, it checks all data and will warn you if partitons overlap or extend beyond the end of the slice, or if the "c" partition doesn't cover the whole slice. In that case it will refuse to continue, and offer to go back to the editor. Certainly there could be a "nicer" interface for all of that (I'm not saying sade(8) is useless), but I think bsdlabel does its job pretty well, and it is _not_ difficult to use, contrary to what many people seem to believe. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I made up the term 'object-oriented', and I can tell you I didn't have C++ in mind." -- Alan Kay, OOPSLA '97