From owner-freebsd-questions@FreeBSD.ORG Sat Mar 29 02:25:51 2014 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 10AF3F4D for ; Sat, 29 Mar 2014 02:25:51 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B0ED9646 for ; Sat, 29 Mar 2014 02:25:50 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.8/8.14.8) with ESMTP id s2T2PfKc001907 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 28 Mar 2014 20:25:41 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.8/8.14.8/Submit) with ESMTP id s2T2Pelr001904; Fri, 28 Mar 2014 20:25:41 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 28 Mar 2014 20:25:40 -0600 (MDT) From: Warren Block To: "Lawrence K. Chen, P.Eng." Subject: Re: Partition alignment In-Reply-To: <53360177.60001@ksu.edu> Message-ID: References: <53333669.7000802@netfence.it> <533356EA.8020802@netfence.it> <53360177.60001@ksu.edu> 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]); Fri, 28 Mar 2014 20:25:41 -0600 (MDT) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Mar 2014 02:25:51 -0000 On Fri, 28 Mar 2014, Lawrence K. Chen, P.Eng. wrote: > On 03/26/14 17:38, Andrea Venturoli wrote: > >> Should I leave more space and start the slice at 256kB? [replying here, since I somehow missed the original response] You can, but it's important to realize that gpart will align to CHS values regardless. The only way around this at present is to use fdisk, which will allow creation of arbitrarily-aligned slices. >>> When creating the partitions, use gpart's -a option, and it will add an >>> offset so the slice is aligned: >>> >>> gpart add -t freebsd-ufs -a4k -s8g mfid0s1 >> >> So you are suggesting I could leave the slice where it is, and just move the >> partitions? Yes. The better solution is to use GPT partitions, though. >> Shouldn't I use -a256k, since that's the stripe size? That would do no harm, but if you start the first filesystem partition at 1M, and make all partitions multiples of 1M or 1G in size, they are aligned for values up to at least 1M anyway.