Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Feb 2012 11:48:20 -0500
From:      "illoai@gmail.com" <illoai@gmail.com>
To:        Robert Huff <roberthuff@rcn.com>
Cc:        "bsalinux@gmail.com" <bsalinux@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: disk labels (was: Re: fixating USB Storage)
Message-ID:  <CAHHBGkr0rQ8AsSCqh_%2B16sNiFgvveO=v-ddfzEEP%2BMHKgfkNfQ@mail.gmail.com>
In-Reply-To: <20302.17725.515279.964152@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> <alpine.BSF.2.00.1202290751320.79170@wonkity.com> <20302.17725.515279.964152@jerusalem.litteratus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 29 February 2012 10:33, Robert Huff <roberthuff@rcn.com> wrote:
>
> Warren Block writes:
>> =A0> =A0 =A0I have a disk - ad1 - with a partition - p2 - that was
>> =A0> (obviously) created by gpart ... but no label was attached.
>> =A0> =A0 =A0Can I add a label to that partition later? =A0"man gpart" on=
ly
>> =A0> shows a label being added when the partition is created,
>>
>> =A0(untested)
>> =A0# gpart modify -i 2 -l mylabel ada0
>
> =A0 =A0 =A0 =A0I did this, and nothing exploded. =A0:-)
> =A0 =A0 =A0 =A0When (and where) should I expect to see these appear under
> /dev? =A0Immediately? =A0After rebooting? =A0I 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.

--=20
--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHHBGkr0rQ8AsSCqh_%2B16sNiFgvveO=v-ddfzEEP%2BMHKgfkNfQ>