From owner-freebsd-questions@FreeBSD.ORG Fri Jan 4 22:22:40 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 51592924 for ; Fri, 4 Jan 2013 22:22:40 +0000 (UTC) (envelope-from naddy@mips.inka.de) Received: from mail-in-05.arcor-online.net (mail-in-05.arcor-online.net [151.189.21.45]) by mx1.freebsd.org (Postfix) with ESMTP id 05B95C05 for ; Fri, 4 Jan 2013 22:22:39 +0000 (UTC) Received: from mail-in-16-z2.arcor-online.net (mail-in-16-z2.arcor-online.net [151.189.8.33]) by mx.arcor.de (Postfix) with ESMTP id 69CCCE44AC; Fri, 4 Jan 2013 23:22:32 +0100 (CET) Received: from mail-in-03.arcor-online.net (mail-in-03.arcor-online.net [151.189.21.43]) by mail-in-16-z2.arcor-online.net (Postfix) with ESMTP id 655FD21203D; Fri, 4 Jan 2013 23:22:32 +0100 (CET) Received: from lorvorc.mips.inka.de (dslb-188-105-086-158.pools.arcor-ip.net [188.105.86.158]) by mail-in-03.arcor-online.net (Postfix) with ESMTPS id DCE0ED877B; Fri, 4 Jan 2013 23:22:31 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-03.arcor-online.net DCE0ED877B Received: from lorvorc.mips.inka.de (localhost [127.0.0.1]) by lorvorc.mips.inka.de (8.14.5/8.14.3) with ESMTP id r04MMVAK045175; Fri, 4 Jan 2013 23:22:31 +0100 (CET) (envelope-from naddy@lorvorc.mips.inka.de) Received: (from naddy@localhost) by lorvorc.mips.inka.de (8.14.5/8.14.5/Submit) id r04MMVap045174; Fri, 4 Jan 2013 23:22:31 +0100 (CET) (envelope-from naddy) Date: Fri, 4 Jan 2013 23:22:31 +0100 From: Christian Weisgerber To: Warren Block Subject: Re: bsdinstall misaligns partitions Message-ID: <20130104222231.GA44585@lorvorc.mips.inka.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 22:22:40 -0000 Warren Block: > > * Funnily enough, the ancient BSD "dangerously dedicated" scheme > > is the only one that out of the box does not misalign partitions. > > The filesystems don't begin at the start of the slice anyway. There is > a bsdlabel there. Yes and no. If you look at the bsdlabel(8) output, the size of 'c' is exactly the same as the sum of the sizes of the other partitions, as well as exactly the size of the fdisk slice. There is no additional reserved space for the label. So where does the disklabel hide? FFS1 (FFS2) leaves 8 kB (64 kB) of space at the start of _every_ filesystem. The first 8 kB of the slice--overlapping with the start of 'c' and the start of 'a'--hold boot1, the disklabel, and boot2. If you hexdump /boot/boot2, you'll notice that the first 0x114 bytes are zeroed out; those 276 bytes are exactly where the disklabel is located on disk. See and . -- Christian "naddy" Weisgerber naddy@mips.inka.de