From owner-freebsd-questions@freebsd.org Mon Jan 28 17:25:04 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C56CC14B9B50 for ; Mon, 28 Jan 2019 17:25:04 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9AAB76EF1E for ; Mon, 28 Jan 2019 17:25:03 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id x0SHOskv054838; Mon, 28 Jan 2019 10:24:54 -0700 (MST) (envelope-from freebsd@dreamchaser.org) Reply-To: freebsd@dreamchaser.org Subject: Re: gpart volume names in /dev? To: Polytropon Cc: FreeBSD Mailing List References: <20190128045931.fdd89d9b.freebsd@edvax.de> From: Gary Aitken Message-ID: <9ad691c2-2fdd-bb91-cd0b-da7a1c3f7d56@dreamchaser.org> Date: Mon, 28 Jan 2019 10:23:55 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <20190128045931.fdd89d9b.freebsd@edvax.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Mon, 28 Jan 2019 10:24:54 -0700 (MST) X-Rspamd-Queue-Id: 9AAB76EF1E X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-5.38 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[dreamchaser.org]; REPLYTO_ADDR_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: nightmare.dreamchaser.org]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.84)[-0.841,0]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-3.23)[ip: (-8.47), ipnet: 66.109.128.0/19(-4.23), asn: 21947(-3.39), country: US(-0.08)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2019 17:25:04 -0000 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.