disk labels (was: Re: fixating USB Storage)

Warren Block wblock at wonkity.com
Wed Feb 29 19:37:21 UTC 2012


On Wed, 29 Feb 2012, Robert Huff wrote:

>
> Warren Block writes:
>> > 	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
>
> 	I did this, and nothing exploded.  :-)
> 	When (and where) should I expect to see these appear under
> /dev?  Immediately?  After rebooting?  I want to edit fstab, but
> want to be clear on how.

They will be in /dev/gpt/.  Labels created with glabel are in 
/dev/label/, and filesystem labels go in directories named for the 
filesystem like /dev/ufs/.


More information about the freebsd-questions mailing list