From owner-freebsd-questions@freebsd.org Wed Dec 16 14:39:54 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 7F615A47F43 for ; Wed, 16 Dec 2015 14:39:54 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (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 1EBC81C7F for ; Wed, 16 Dec 2015 14:39:54 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id l126so42424521wml.1 for ; Wed, 16 Dec 2015 06:39:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cCx+MGie6BY6/3q6LUdTWrE21h4Yg0Zttzo6dMf3G+Q=; b=DqEi6Z+8nFLz+FROI+VBoldH3dLkvlHF3tZ6BjalVnay8+BizyREPlfc7iTaGqBmF4 sWyQssMp32Cfy0gDMjgd4pVBVcKDodbNUzVLP7Krv5MpjjC4D9SzPKZkXb5uFgYgbTpD Waxzug8bdOH1UY5y76cG79UnSKUg0Y85FWRcaAQ4m8lVhcGPQK6buRcy5IFlxFM4YwE0 tdQ22vNuJsD7a2mRFZCcP2iHco9/sza2im6dN+qheqO1Ba8/onCfQgp84uFYSpuoj29o kCTeP/vnMKBoKl6SMMWkILGir/d4/pA1iU5YhDOPJ+OaI7Yqnt0Dz1b3RhFCPj841Rhe Kcfw== MIME-Version: 1.0 X-Received: by 10.28.15.132 with SMTP id 126mr6683431wmp.80.1450276792658; Wed, 16 Dec 2015 06:39:52 -0800 (PST) Received: by 10.194.192.33 with HTTP; Wed, 16 Dec 2015 06:39:52 -0800 (PST) In-Reply-To: References: Date: Wed, 16 Dec 2015 08:39:52 -0600 Message-ID: Subject: Re: which label to use in mount? From: Adam Vande More To: Sergei G Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Wed, 16 Dec 2015 14:39:54 -0000 On Tue, Dec 15, 2015 at 9: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? > 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