From owner-freebsd-questions@FreeBSD.ORG Tue Sep 16 19:58:09 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D61B77E for ; Tue, 16 Sep 2014 19:58:09 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8477E315 for ; Tue, 16 Sep 2014 19:58:09 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id s8GJvwpZ095130 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 16 Sep 2014 13:57:58 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id s8GJvw8t095127; Tue, 16 Sep 2014 13:57:58 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Tue, 16 Sep 2014 13:57:58 -0600 (MDT) From: Warren Block To: Gary Aitken Subject: Re: gpart -- label an ntfs partition on usb stick? In-Reply-To: <54187221.9030500@dreamchaser.org> Message-ID: References: <54187221.9030500@dreamchaser.org> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Tue, 16 Sep 2014 13:57:58 -0600 (MDT) Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2014 19:58:09 -0000 On Tue, 16 Sep 2014, Gary Aitken wrote: > I'm trying to reformat a USB stick to take large files. It was my understanding > that gpart could do this, and that the proper file type was ntfs. It seems to > work with no label, but when I attempt to label the partition, it objects. I > thought the label was part of the partitioning scheme, and as such should be > independent of the partition type. What am I missing? > > # gpart show -l da0 > => 1 125031679 da0 MBR (59G) > 1 31 - free - (15k) > 32 125031648 1 (null) (59G) > > # gpart delete -i 1 da0 > da0s1 deleted > # gpart show -l da0 > => 1 125031679 da0 MBR (59G) > 1 125031679 - free - (59G) > > # gpart add -t ntfs -l ntfs da0 > gpart: Invalid argument > # gpart add -t ntfs da0 > da0s1 added > # gpart show -l da0 > => 1 125031679 da0 MBR (59G) > 1 62 - free - (31k) > 63 125031564 1 (null) (59G) > 125031627 53 - free - (26k) With GPT, labels are part of the partition scheme. But MBR does not support partition labels. glabel(8) suggests that NTFS supports volume labels.