Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Feb 2012 07:55:35 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Robert Huff <roberthuff@rcn.com>
Cc:        Polytropon <freebsd@edvax.de>, "bsalinux@gmail.com" <bsalinux@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: fixating USB Storage
Message-ID:  <alpine.BSF.2.00.1202290751320.79170@wonkity.com>
In-Reply-To: <20302.11068.426551.17422@jerusalem.litteratus.org>
References:  <CAB3Sx6evad7VOWoK3AHF6DW0y0k6ZgpBwPUMSu7Ag8-dQqSJTw@mail.gmail.com> <201202040953.19456.jmc-freebsd2@milibyte.co.uk> <CABfwSFrW%2BwSacq3arxds30qs4LnkdYXkfGV0MZ7Em0fPu7P=Mg@mail.gmail.com> <201202041433.55000.jmc-freebsd2@milibyte.co.uk> <CAB3Sx6dFKweDSAjbah2TXX6WWUV0eN-dgix79XziBKXHy0REaQ@mail.gmail.com> <20120228173042.218144e7.freebsd@edvax.de> <20302.11068.426551.17422@jerusalem.litteratus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1202290751320.79170>