From owner-freebsd-current@FreeBSD.ORG Thu Jan 1 18:22:23 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F26BCA2 for ; Thu, 1 Jan 2015 18:22:23 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AD5906D6 for ; Thu, 1 Jan 2015 18:22:23 +0000 (UTC) Received: from [93.104.13.226] (helo=unixarea.DDR.dd) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1Y6kO3-0000Nb-Vi for freebsd-current@freebsd.org; Thu, 01 Jan 2015 19:22:20 +0100 Received: from unixarea.DDR.dd (localhost [127.0.0.1]) by unixarea.DDR.dd (8.14.9/8.14.3) with ESMTP id t01IMHGl004879 for ; Thu, 1 Jan 2015 19:22:17 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by unixarea.DDR.dd (8.14.9/8.14.3/Submit) id t01IMGUn004878 for freebsd-current@freebsd.org; Thu, 1 Jan 2015 19:22:16 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: unixarea.DDR.dd: guru set sender to guru@unixarea.de using -f Date: Thu, 1 Jan 2015 19:22:15 +0100 From: Matthias Apitz To: freebsd-current@freebsd.org Subject: Re: makefs && gpart (...) Message-ID: <20150101182215.GA4834@unixarea.DDR.dd> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-current@freebsd.org References: <20150101114829.GA3196@unixarea.DDR.dd> <54A5827A.3000406@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <54A5827A.3000406@freebsd.org> X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.104.13.226 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2015 18:22:24 -0000 El día Thursday, January 01, 2015 a las 09:23:06AM -0800, Nathan Whitehorn escribió: > > On 01/01/15 03:48, Matthias Apitz wrote: > > gpart add -t freebsd-ufs ${unit} > > mdconfig -d -u ${unit} > > > > As you can see, it does makefs first, and after this it creates the > > gpart structure in the image (i.e. in its memory file system). > > Why is this in this order and where exactly starts the file system > > created by makefs? > > > This is a quirk of BSD disklabels: the first partition can start at > address 0 and the first 16 sectors of UFS2 file systems are reserved for > the label headers. It's not portable to other partition schemes. For > -CURRENT, this script has been replaced, by the way, and doesn't use BSD > labels anymore. > -Nathan I'm on -HEAD (r272526) and the script remains unchanged there. Thanks anyway for your feedback. matthias -- Matthias Apitz, guru@unixarea.de, http://www.unixarea.de/ +49-170-4527211 1989-2014: The Wall was torn down so that we go to war together again. El Muro ha sido derribado para que nos unimos en ir a la guerra otra vez. Diese Grenze wurde aufgehoben damit wir gemeinsam wieder in den Krieg ziehen.