which label to use in mount?

Anton Sayetsky vsasjason at gmail.com
Wed Dec 16 14:27:31 UTC 2015


16 дек. 2015 г. 16:10 пользователь "Erich Dollansky" <
erichsfreebsdlist at alogt.com> написал:
>
> Hi,
>
> On Tue, 15 Dec 2015 19:37:16 -0800
> Sergei G <sergeig.public at gmail.com> wrote:
>
> > I have executed the following commands:
> >
> >   # gpart create -s GPT ada1
> >   # gpart add -t freebsd-ufs -l sback -s 50G ada1
> >   # newfs -nL back /dev/ada1p1
> >
> you allow the destruction of the GPT label by this.
You're wrong. GPT label is stored in, obviously, GPT itself, and UFS label
is stored in partition last sector. This labels are totally independent,
and one can use them both at the same time, but it just doesn't make sense.

> newfs /dev/label/sback
>
> should be the better option.
>
> > so, now I can mount it as either:
> >
> >   # mount /dev/gpt/sback /mnt
> > or
> >   # mount /dev/ufs/back /mnt
>
> This will work only until the disk became filled.
> >
> > Both seem to work.  However, command
> >
> >   df -H
> >
> > reports slightly different numbers:
> >
> > /dev/ufs/back                           52G    4.1k     48G
> > 0%    /mnt dev/gpt/dback                          48G    4.0K
> > 45G     0%    /mnt
> >
> > Which way is the correct way to mount?
> >
> Use only tyhe GPT label, but also for formatting.
>
> Erich
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list