Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Dec 2015 17:27:29 +0300
From:      Anton Sayetsky <vsasjason@gmail.com>
To:        Erich Dollansky <erichsfreebsdlist@alogt.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>, Sergei G <sergeig.public@gmail.com>
Subject:   Re: which label to use in mount?
Message-ID:  <CAA2O=b8g73-FLev0z=LyeZ0VaYEPVnHoiDMxUmKOY6vwdZ9J8w@mail.gmail.com>
In-Reply-To: <20151216134418.696fa994@X220.alogt.com>
References:  <CAFLLzCMQtupZX651wR35vrJdXY5Ber8qKPd%2B5EX4Dkp4iCv=vg@mail.gmail.com> <20151216134418.696fa994@X220.alogt.com>

next in thread | previous in thread | raw e-mail | index | archive | help
16 =D0=B4=D0=B5=D0=BA. 2015 =D0=B3. 16:10 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=
=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Erich Dollansky" <
erichsfreebsdlist@alogt.com> =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:
>
> Hi,
>
> On Tue, 15 Dec 2015 19:37:16 -0800
> Sergei G <sergeig.public@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@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAA2O=b8g73-FLev0z=LyeZ0VaYEPVnHoiDMxUmKOY6vwdZ9J8w>