disk labels (was: Re: fixating USB Storage)

illoai at gmail.com illoai at gmail.com
Wed Feb 29 16:48:22 UTC 2012


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.

-- 
--


More information about the freebsd-questions mailing list