From owner-freebsd-questions@freebsd.org Wed Dec 16 14:27:31 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 D105FA448FE for ; Wed, 16 Dec 2015 14:27:31 +0000 (UTC) (envelope-from vsasjason@gmail.com) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (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 6E78A139A for ; Wed, 16 Dec 2015 14:27:31 +0000 (UTC) (envelope-from vsasjason@gmail.com) Received: by mail-wm0-x235.google.com with SMTP id p187so3623766wmp.1 for ; Wed, 16 Dec 2015 06:27:31 -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=l71TkMdZyCA6n3zw6zJu62Knz5dLbZuQtfqZcEcc/yo=; b=wmN4knjH0keaeJuXlTODzIaM76gGa7oadSoYre6wRJjN/xZWTQYHVUlhLD9IMcZYYQ qaH64ltAxATsABzVpViT3sF8hooFQaQ4XcWaX1KmU481XdKthmmb31ejHolE/uYGscbb 5yNUEQKcy6hXZxbYsiwe2HOSXgQkj3XpZHfEjXenTo6UUz1zkl3dVpfk+i0SjJRnktKw CvskglPSshbqHHSMpB4ze8N9aTZQY0TTYfA3Lu3++4EOZcOtNHKxWQK3/aN7v/aWis7J 3g2MVEqDrDluT3zVOlkQ3yyUXa0aJ3utocRk5S2z15D523r774KPaF0efAlIXF7CC/5B J+7A== MIME-Version: 1.0 X-Received: by 10.28.85.129 with SMTP id j123mr12921127wmb.77.1450276049962; Wed, 16 Dec 2015 06:27:29 -0800 (PST) Received: by 10.194.76.207 with HTTP; Wed, 16 Dec 2015 06:27:29 -0800 (PST) Received: by 10.194.76.207 with HTTP; Wed, 16 Dec 2015 06:27:29 -0800 (PST) In-Reply-To: <20151216134418.696fa994@X220.alogt.com> References: <20151216134418.696fa994@X220.alogt.com> Date: Wed, 16 Dec 2015 17:27:29 +0300 Message-ID: Subject: Re: which label to use in mount? From: Anton Sayetsky To: Erich Dollansky Cc: FreeBSD Questions , Sergei G Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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:27:31 -0000 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 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"