From owner-freebsd-geom@FreeBSD.ORG Wed May 29 01:03:43 2013 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 279AC151; Wed, 29 May 2013 01:03:43 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id DEB6E9B9; Wed, 29 May 2013 01:03:42 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id r4T13gef049725; Tue, 28 May 2013 19:03:42 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id r4T13gjh049722; Tue, 28 May 2013 19:03:42 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Tue, 28 May 2013 19:03:42 -0600 (MDT) From: Warren Block To: Lev Serebryakov Subject: Re: Could gpart align MBR primary partiton at 4K? In-Reply-To: <234552188.20130529021356@serebryakov.spb.ru> Message-ID: References: <234552188.20130529021356@serebryakov.spb.ru> 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]); Tue, 28 May 2013 19:03:42 -0600 (MDT) Cc: freebsd-geom@FreeBSD.org X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2013 01:03:43 -0000 On Wed, 29 May 2013, Lev Serebryakov wrote: > Hello, Freebsd-geom. > > I'm trying to format external Extended Format drive to FAT32 under > FreeBSD 9.1-STABLE > > I've created MBR scheme, but when I try to create primary partition > I get: > >> sudo gpart add -t fat32 -a 4k da0 > da0s1 added, but partition is not aligned on 4096 bytes >> > > Why? > > According to "Using Advanced disks for old OSes like WinCP" guides it > is possible to 4K-align MBR partition, but all these guides are > windows-centric... The MBR standard specifies alignment to cylinders. gpart complies with that. It's like -a always goes to 63. Other operating systems are not as strict, which at this point makes it easier for their users. As far as I know, the only way to align MBR partitions on FreeBSD is by entering manual values to fdisk(8).