From owner-freebsd-questions@FreeBSD.ORG Wed Nov 23 18:52:58 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E68FA16A41F for ; Wed, 23 Nov 2005 18:52:58 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail23.sea5.speakeasy.net (mail23.sea5.speakeasy.net [69.17.117.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E47243D78 for ; Wed, 23 Nov 2005 18:52:48 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 6448 invoked from network); 23 Nov 2005 18:52:48 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail23.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 23 Nov 2005 18:52:47 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 4A6CA2841E; Wed, 23 Nov 2005 13:52:47 -0500 (EST) Sender: lowell@be-well.ilk.org To: Michael Collette References: <4384AF06.4090809@TestEquity.com> From: Lowell Gilbert Date: 23 Nov 2005 13:52:47 -0500 In-Reply-To: <4384AF06.4090809@TestEquity.com> Message-ID: <44wtiz42o0.fsf@be-well.ilk.org> Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: FreeBSD Lists Subject: Re: Automating Drive Formatting X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2005 18:52:59 -0000 Michael Collette writes: > I'm looking for some way to script together an automatic formatting of a hard > drive. Having a fair amount of difficulty locating some good information on > doing this. > > For example, let's say there's an unknown IDE drive that's at least 40G in > size. On that drive I want to create 1 partition with 3 labels. 2 of the > labels get 10G, and the 3rd gets whatever is left. > > My reason for doing this is that we've set up a couple of servers that are > running diskless, but are bogging down a bit with getting everything via NFS. > I'm trying to get a diskless box note the installed drive, check to see if > it's in the format I expect, and if not perform the bsdlabel, newfs, and all > that. > > I know the basic info is somewhere accessible, or sysinstall wouldn't have > this stuff available. Just need a shove in the right direction please. There are a *lot* of ways to roll-your-own, but have you tried "man sysinstall"?