From owner-freebsd-questions@FreeBSD.ORG Wed Feb 29 14:55:38 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECBB51065674 for ; Wed, 29 Feb 2012 14:55:38 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id A371C8FC13 for ; Wed, 29 Feb 2012 14:55:38 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q1TEtZ36079193; Wed, 29 Feb 2012 07:55:35 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id q1TEtZWe079190; Wed, 29 Feb 2012 07:55:35 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 29 Feb 2012 07:55:35 -0700 (MST) From: Warren Block To: Robert Huff In-Reply-To: <20302.11068.426551.17422@jerusalem.litteratus.org> Message-ID: References: <201202040953.19456.jmc-freebsd2@milibyte.co.uk> <201202041433.55000.jmc-freebsd2@milibyte.co.uk> <20120228173042.218144e7.freebsd@edvax.de> <20302.11068.426551.17422@jerusalem.litteratus.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Wed, 29 Feb 2012 07:55:35 -0700 (MST) Cc: Polytropon , "bsalinux@gmail.com" , freebsd-questions@freebsd.org Subject: Re: fixating USB Storage X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Feb 2012 14:55:39 -0000 On Wed, 29 Feb 2012, Robert Huff wrote: > > Polytropon writes: > >> Label the drives and use labels instead of device names. >> >> Get some inspiration from Warren's excellent article here: >> http://www.wonkity.com/~wblock/docs/html/disksetup.html > > Good piece, but it doesn't explicitly cover one case and "man" > provides no example. > I have a disk - ad1 - with a partition - p2 - that was > (obviously) created by gpart ... but no label was attached. > Can I add a label to that partition later? "man gpart" only > shows a label being added when the partition is created, (untested) # gpart modify -i 2 -l mylabel ada0 There's also http://www.wonkity.com/~wblock/docs/html/labels.html , which talks about filesystem labels. UFS labels can be added later with tunefs(8). I really need to do a combined article that covers all the different types of labels. It's on the list.