From owner-freebsd-questions@FreeBSD.ORG Wed Nov 23 18:06:41 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 B151316A422 for ; Wed, 23 Nov 2005 18:06:38 +0000 (GMT) (envelope-from Michael.Collette@TestEquity.com) Received: from mta11.adelphia.net (mta11.adelphia.net [68.168.78.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A3CA43DBA for ; Wed, 23 Nov 2005 18:06:07 +0000 (GMT) (envelope-from Michael.Collette@TestEquity.com) Received: from [24.75.146.34] by mta11.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051123180549.YVWO15290.mta11.adelphia.net@[24.75.146.34]> for ; Wed, 23 Nov 2005 13:05:49 -0500 Message-ID: <4384AF06.4090809@TestEquity.com> Date: Wed, 23 Nov 2005 10:03:50 -0800 From: Michael Collette Organization: TestEquity Inc User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051114) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Lists Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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:06:41 -0000 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. Thanks, -- Michael Collette IT Manager TestEquity Inc Michael.Collette@TestEquity.com http://www.testequity.com/