disk labels (was: Re: fixating USB Storage)
Warren Block
wblock at wonkity.com
Wed Feb 29 19:46:46 UTC 2012
On Wed, 29 Feb 2012, illoai at gmail.com wrote:
> On 29 February 2012 10:33, Robert Huff <roberthuff at rcn.com> 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.
>>
>
> The label(s) should be accessible immediately, HOWEVER:
> if the filesystem is mounted rw they'll be lost on reboot. So
> you probably want to do the labelling from single-user mode.
With filesystem labels, yes. Should not be a problem with gpart labels
on a partition. (Just tried it.)
More information about the freebsd-questions
mailing list