Date: Thu, 1 Jan 2015 19:22:15 +0100 From: Matthias Apitz <guru@unixarea.de> To: freebsd-current@freebsd.org Subject: Re: makefs && gpart (...) Message-ID: <20150101182215.GA4834@unixarea.DDR.dd> In-Reply-To: <54A5827A.3000406@freebsd.org> References: <20150101114829.GA3196@unixarea.DDR.dd> <54A5827A.3000406@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150101182215.GA4834>
