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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to