Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Dec 2015 08:39:52 -0600
From:      Adam Vande More <amvandemore@gmail.com>
To:        Sergei G <sergeig.public@gmail.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: which label to use in mount?
Message-ID:  <CA%2BtpaK3yfkNk0haQ3Ogbc920Go4HUFaik=tWtqyNtsDmJynKLg@mail.gmail.com>
In-Reply-To: <CAFLLzCMQtupZX651wR35vrJdXY5Ber8qKPd%2B5EX4Dkp4iCv=vg@mail.gmail.com>
References:  <CAFLLzCMQtupZX651wR35vrJdXY5Ber8qKPd%2B5EX4Dkp4iCv=vg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 15, 2015 at 9:37 PM, 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
>
> so, now I can mount it as either:
>
>   # mount /dev/gpt/sback /mnt
> or
>   # mount /dev/ufs/back /mnt
>
> 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?
>

It is an arbitrary choice to use either gpt or ufs labels.  Use one or the
other, not both for a particular filesystem.  GPT are more ubiquitous since
you can use them for swap etc.  UFS labels also have their use cases.

However your output is inconsistent so I have no idea what's going on.
Likely you have misrepresented something.



-- 
Adam



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BtpaK3yfkNk0haQ3Ogbc920Go4HUFaik=tWtqyNtsDmJynKLg>