From owner-freebsd-questions@FreeBSD.ORG Sat Nov 16 05:38:18 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 12A16D09 for ; Sat, 16 Nov 2013 05:38:18 +0000 (UTC) Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [IPv6:2001:44b8:8060:ff02:300:1:6:6]) by mx1.freebsd.org (Postfix) with ESMTP id 94B1D2DA8 for ; Sat, 16 Nov 2013 05:38:17 +0000 (UTC) Received: from ppp118-210-21-210.lns20.adl2.internode.on.net (HELO leader.local) ([118.210.21.210]) by ipmail06.adl6.internode.on.net with ESMTP; 16 Nov 2013 16:08:16 +1030 Message-ID: <528704C7.9050103@ShaneWare.Biz> Date: Sat, 16 Nov 2013 16:08:15 +1030 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Warren Block , aurfalien Subject: Re: gpart, to -a 4k or to -b 1M References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions 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 05:38:18 -0000 On 16/11/2013 10:46, Warren Block wrote: > On Fri, 15 Nov 2013, aurfalien wrote: > >> Hi, >> >> 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.