From owner-freebsd-questions@FreeBSD.ORG Sat Nov 16 14:05:14 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C4B621DD for ; Sat, 16 Nov 2013 14:05:14 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7A4B622A5 for ; Sat, 16 Nov 2013 14:05:14 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id rAGE57Sm041807; Sat, 16 Nov 2013 07:05:07 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id rAGE57l5041804; Sat, 16 Nov 2013 07:05:07 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sat, 16 Nov 2013 07:05:07 -0700 (MST) From: Warren Block To: Shane Ambler Subject: Re: gpart, to -a 4k or to -b 1M In-Reply-To: <528704C7.9050103@ShaneWare.Biz> Message-ID: References: <528704C7.9050103@ShaneWare.Biz> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Sat, 16 Nov 2013 07:05:07 -0700 (MST) Cc: FreeBSD Questions , aurfalien X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Nov 2013 14:05:14 -0000 On Sat, 16 Nov 2013, Shane Ambler wrote: > On 16/11/2013 10:46, Warren Block wrote: >> On Fri, 15 Nov 2013, aurfalien wrote: >>> >>> Curious, for best practice in ensuring 4K alignment, should one do; >>> >>> gpart add ... -b 1M >>> >>> or >>> >>> gpart add ... -a 4k >>> >>> Thank in advance, >> >> They do different things. '-b 1M' starts the added partition at 1M but >> does not force it to be a multiple of 4K in size. >> >> '-a 4k' forces the added partition to start at the next 4K-aligned >> block, and forces the size to be a multiple of 4K. >> >> I recommend both for the first filesystem partition, and '-a 4k' for >> later ones. > > I believe it was related to windows co-existence but I heard a while > back that -a 1M is a good option to use. It doesn't hurt anything. By rounding both starting location and length to 1M multiples, it still forces 4K alignment.