From owner-freebsd-questions@FreeBSD.ORG Wed Mar 28 20:48:20 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CAA6316A409 for ; Wed, 28 Mar 2007 20:48:20 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id 8301313C4AE for ; Wed, 28 Mar 2007 20:48:20 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from localhost (unknown [200.46.204.182]) by hub.org (Postfix) with ESMTP id ED06785C8DF; Wed, 28 Mar 2007 17:48:16 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 30814-10; Wed, 28 Mar 2007 17:48:16 -0300 (ADT) Received: from ganymede.hub.org (blk-89-241-126.eastlink.ca [24.89.241.126]) by hub.org (Postfix) with ESMTP id 694CE85C8E8; Wed, 28 Mar 2007 17:48:16 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id EE5C138B6E; Wed, 28 Mar 2007 17:48:16 -0300 (ADT) Date: Wed, 28 Mar 2007 17:48:16 -0300 From: "Marc G. Fournier" To: Kris Kennaway Message-ID: In-Reply-To: <20070328204126.GA27217@xor.obsecurity.org> References: <20070328204126.GA27217@xor.obsecurity.org> X-Mailer: Mulberry/4.0.7 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-questions@freebsd.org Subject: Re: Why is 'disklabel'ng a new drive so difficult? 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, 28 Mar 2007 20:48:20 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - --On Wednesday, March 28, 2007 16:41:28 -0400 Kris Kennaway wrote: > On Wed, Mar 28, 2007 at 05:26:49PM -0300, Marc G. Fournier wrote: >> >> Just bought a new WD SATA drive: WDC WD5000YS-01MPB1 09.02E09 >> >> Tried to disklabel it, and it gives me all kinds of warnings when I look at >> it after running the disklabel: >> >> >> ganymede# bsdlabel -w ad4s1 auto >> ganymede# bsdlabel ad4s1c >> # /dev/ad4s1c: >> 8 partitions: >> # size offset fstype [fsize bsize bps/cpg] >> a: 976767986 79 unused 0 0 >> c: 976768002 63 unused 0 0 # "raw" part, don't >> edit >> partition a: partition extends past end of unit >> partition c: partition extends past end of unit >> bsdlabel: partition c doesn't start at 0! >> bsdlabel: An incorrect partition c may cause problems for standard system >> utilities >> >> Even if I try to use /stand/sysinstall to do the fdisk, the end result has >> 'issues' ... >> >> So, what is the generally accepted method of label'ng a new drive? :( > > I learned a useful trick the other day: you can use abbreviations like > "1g", also '*' to mean "automatically calculate". See the manpage. Neat, that seems to do it ... but, shouldn't that be disklabel's default behaviour be for the initial -w operation? Thanks though, seems to have worked great ... - ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFGCtSQ4QvfyHIvDvMRAtCwAJ9JxiON1i8EvHjJcB4On3usQ5YGbwCbBpKv JI8xirWGrOpDdDqdytuc5pU= =MU77 -----END PGP SIGNATURE-----