Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jan 2019 10:23:55 -0700
From:      Gary Aitken <freebsd@dreamchaser.org>
To:        Polytropon <freebsd@edvax.de>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: gpart volume names in /dev?
Message-ID:  <9ad691c2-2fdd-bb91-cd0b-da7a1c3f7d56@dreamchaser.org>
In-Reply-To: <20190128045931.fdd89d9b.freebsd@edvax.de>
References:  <c2651ac5-1a03-8ab3-0dde-ab0c6589a24d@dreamchaser.org> <20190128045931.fdd89d9b.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/27/19 8:59 PM, Polytropon wrote:
> On Sun, 27 Jan 2019 19:48:02 -0700, Gary Aitken wrote:

>> How does one get gpart labels to show up in /dev?
> 
> They should show up automatically as soon as a drive's partitions
> have been labeled. When such a partition gets mounted, the label
> file in /dev will disappear, this is completely normal. I'm not
> sure, but maybe even if you use the device name for mounting,
> the label could disappear as the corresponding provider is no
> longer available for mounting.

Ah, maybe that's why I didn't see them any more.

>> Can I simply list the label as /dev/hdd-1TB-root (in the above example)
>> in fstab and it will happen automagically?
> 
> Note that depending on the _kind_ of labels, the entry in /etc/fstab
> has to be in a specific format.
> 
> Example:
> 
> 	/dev/ada1p2			<- device name
> 	/dev/gpt/hdd-1TB-root		<- label from gpart
> 	/dev/label/hdd-1TB-root		<- label from glabel
> 	/dev/ufsid/1234567890abcdef	<- UFS ID
> 
> You can find more information here:
> 
> http://www.wonkity.com/~wblock/docs/html/disksetup.html#_the_new_standard_gpt
> 
> https://www.freebsd.org/doc/handbook/geom-glabel.html

Thanks, that's what I needed.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9ad691c2-2fdd-bb91-cd0b-da7a1c3f7d56>