From owner-freebsd-stable@FreeBSD.ORG Wed Feb 23 09:11:18 2011 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 38E7310656A4 for ; Wed, 23 Feb 2011 09:11:18 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 1AC7A8FC35 for ; Wed, 23 Feb 2011 09:11:18 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id p1N9B3Sg062059 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 23 Feb 2011 01:11:03 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id p1N9B246062058; Wed, 23 Feb 2011 01:11:02 -0800 (PST) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA07459; Wed, 23 Feb 11 01:10:36 PST Date: Wed, 23 Feb 2011 01:10:12 -0800 From: perryh@pluto.rain.com To: petefrench@ingresso.co.uk, lists@c0mplx.org Message-Id: <4d64cef4.8Viwa9MksENBCcLO%perryh@pluto.rain.com> References: In-Reply-To: User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: 3TB disc and block alignment X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2011 09:11:18 -0000 Pete French wrote: > > Why may it hurt ? How may it hurt ? Which sector is written to > > by this 'gpart' command ? > > > > As far as I understand, GPT writes some stuff at the beginning > > and the end of the harddisk. > > Yup, this is true. > > > How/why will the newfs overwrite those parts ? > > Because you are also giving it the whole hard disc to write to, > instead of a partition within the hard disc, so you will end up > scribbling on what you wrote with the gpart command. Certainly the _correct_ thing to do is to create a partition, and newfs that. However, it's not entirely clear why the OP is not getting by with this mistake, because newfs (for a UFS filesystem) doesn't write anything ahead of the superblock -- unless asked to install bootblocks.