Date: Mon, 21 Dec 2015 23:46:48 -0800 From: Sergei G <sergeig.public@gmail.com> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: which label to use in mount? Message-ID: <5678FFE8.4070408@gmail.com> In-Reply-To: <5675574E.3060501@gmail.com> References: <CAFLLzCMQtupZX651wR35vrJdXY5Ber8qKPd%2B5EX4Dkp4iCv=vg@mail.gmail.com> <5675574E.3060501@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I think I just found the reason for different reported numbers: df -h /dev/gpt/dback 48G 2.6G 42G 6% /backup vs df -H /dev/gpt/dback 52G 2.8G 45G 6% /backup On 12/19/15 5:10 AM, Sergei G wrote: > Thank you for all the comments. I have decided to go with GPT mount. > > I rerun size checks and was not able to reproduce the difference > reported previously with or without df -H option. So, it appears to > be my bad. here is a short log: > > % sudo mount /dev/ufs/back /backup/ > % df /backup/ > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ufs/back 50778204 2403432 44312516 5% /backup > % du /backup/ > 2403432 /backup/ > > % sudo umount /backup/ > > % sudo mount /dev/gpt/dback /backup > % df /backup/ > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/gpt/dback 50778204 2403432 44312516 5% /backup > % du /backup/ > 2403432 /backup/ > > > On 12/15/15 7:37 PM, Sergei G 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? >> >> >> Thanks >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5678FFE8.4070408>