Date: Mon, 10 May 2010 23:36:20 +0200 From: Demelier David <demelier.david@gmail.com> To: Roland Smith <rsmith@xs4all.nl> Cc: freebsd-questions@freebsd.org Subject: Re: glabel nor tunefs save my labels Message-ID: <20100510213620.GA1593@Melon.malikania.fr> In-Reply-To: <20100510210830.GD67087@slackbox.erewhon.net> References: <20100510202618.GA1748@Melon.malikania.fr> <20100510210830.GD67087@slackbox.erewhon.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 10, 2010 at 11:08:30PM +0200, Roland Smith wrote: > On Mon, May 10, 2010 at 10:26:18PM +0200, Demelier David wrote: > > Hi, > > I was trying to follow this guide to make labels : > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-glabel.html > > > > It does not work here, I boot single user and ran these commands : > > glabel label usr /dev/ad0s1f > > Do not use this on an already existing filesystem! Use tunefs instead; > > tunefs ‐L usr /dev/ad0s1f > I tried this and in single-user mode there were root root(a|e|b|d|f) usr tmp var and I typed exit, it boots, and then no more entries in /dev/ufs ! And now there is only tmp and var in /dev/vol. I'm so confused now. > If you really want to use glabel, do it on an empty disk or partition. What > you must understand is that 'glabel label' uses the last sector of the > provider to store its metadata. So if you were to do e.g. > > glabel label ‐v usr /dev/da2 > > A labeled device /dev/label/usr would be created. This is one sector smaller > than /dev/da2! If you were to use newfs on /dev/da2 instead of on > /dev/label/usr, the label would be destroyed once the last sector is overwritten! > So that was why entries were removed each time I boot. Thanks for your support. -- Demelier David
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100510213620.GA1593>