From owner-freebsd-questions@freebsd.org Tue Dec 22 07:46:48 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 714D8A14106 for ; Tue, 22 Dec 2015 07:46:48 +0000 (UTC) (envelope-from sergeig.public@gmail.com) Received: from mail-pf0-x233.google.com (mail-pf0-x233.google.com [IPv6:2607:f8b0:400e:c00::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 494CF11CE for ; Tue, 22 Dec 2015 07:46:48 +0000 (UTC) (envelope-from sergeig.public@gmail.com) Received: by mail-pf0-x233.google.com with SMTP id u7so55868291pfb.1 for ; Mon, 21 Dec 2015 23:46:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=X9M1Lt8u+YWNbk52jBH6qHFMrYNeRyeF0n3hq9rXIFs=; b=R4Vfjku/NkCanz9nhA85/tv2Zk2dLtt0d6nq+CHFw+1SjpzGE/WUf7qRm3dOpvndjT 54OYxuc+Pl5PUCcGTj1wQ5dJ8OutZCFZdDRQZHZeG0ctDgBMiu9IW1T+DIiAE2O32RA3 CAllARnD4/pEJF51sKi1AhgeAcKl1ktZm23oYImzugQiSs8UyQAvUgAVIhhAjPNbn09D bhTG/3ia9zaRl6vJh484szdchn1DE5iWTi1Ro0F6afyu8J2DPAU/fR1K7NP9D5FnoymV LnM11WpbfGD0Lw9iHY8nace2WGa8f+EvUXEtBLQcXeUtBdjFt6jt8c5gWalD1TAf/yp6 k9Jg== X-Received: by 10.98.67.74 with SMTP id q71mr32841486pfa.134.1450770407945; Mon, 21 Dec 2015 23:46:47 -0800 (PST) Received: from SergeiMBP.local (c-24-16-122-177.hsd1.wa.comcast.net. [24.16.122.177]) by smtp.googlemail.com with ESMTPSA id v17sm18813059pfi.17.2015.12.21.23.46.47 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Dec 2015 23:46:47 -0800 (PST) Subject: Re: which label to use in mount? To: FreeBSD Questions References: <5675574E.3060501@gmail.com> From: Sergei G Message-ID: <5678FFE8.4070408@gmail.com> Date: Mon, 21 Dec 2015 23:46:48 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <5675574E.3060501@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2015 07:46:48 -0000 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 >