From owner-freebsd-questions@freebsd.org Mon Jan 28 03:15:01 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 A3E0514C7436 for ; Mon, 28 Jan 2019 03:15:01 +0000 (UTC) (envelope-from ralf.mardorf@rocketmail.com) Received: from sonic305-21.consmr.mail.ir2.yahoo.com (sonic305-21.consmr.mail.ir2.yahoo.com [77.238.177.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 436C66D6F0 for ; Mon, 28 Jan 2019 03:15:00 +0000 (UTC) (envelope-from ralf.mardorf@rocketmail.com) X-YMail-OSG: sEwvQpMVM1nPLWg2KmWJdfvXuHdlzCTTYxegMvGxITdSn7x7JjxhqWov9b.bdiM cPdQlNgk3cZUcq_SJ10KB6CDNVIH_LmcBLKHgF78yYcCjIgRNP.bJSxa_MGUHunaxGJQxAgkpLoR UMqFivb.7Q_X2Rjf0PQ1pydC6N0zysU64fSf4J678mE.MwPu1o2GwlQhanB12gobK3A0Avb7qrk9 7rEGflsEvwm4wOUdrSZD5GbYYQt6qodXFpA49RZVk26.XF1GNzi4D2tvM9pEtDZkHIHoPzgLHEld 2RyKC3JGlsOwwUVcjlnwXNE4ejRroL8QKjvniF6KBfDFhYf2VS3OdQcjXLy53VtC4RTaXnWn70y8 w1QTSXaUcGNZdKCWo1pEFkYT.aEZwkNNU3TdCyI.jscPPieV7dPqOhUdlYYe2lXMyR9INBkuuRL7 DzbkUk0caIdag8hmKawquvug.yNTz6JFAIGkOOZTRquRQN3bTJs0rX0ST9twkKvOaWT_oNRw9fTP fCrgrKYLose3OjP.AV.IjLzm65V8eWaAu9uzNkEt6fSeGi_AfPX70voTwcD3t74Jrf2AfYK2Un56 h77027uGM0ClsUGa45BKbYeNJNS0SKH8x6ST5acXW.ZpzlUnUnXOv.170XgRzHxy10JYZ2Naikol hCTDpY0PeVnpo4O0RCyMlbl84c1rQLXrw1VA6KutAk6lM.MhuKLSBzmFmVxXqheWJYFxs67Si59w a5OVmcaOis44wbDM0UDUNEJT_ZwLy.UDaUWT.l1Mp1i3dhrgk6icrel9lFpxgHXT4Y1B7YFzEsgp bVMxSOzTKa3.Z51KRaV.X08DafvwAAkZ1EfpFz6o6gi0j3XTnDS6kgla0rg3eF7QbzUdyCwRkdtT h7Sk1EgEcC0sothmW2Q5ShYEosOuiuzrpQqReEnRS172_.F4Lgzd3EGTD_cPN7C0RzcTSFT7Wz3Y TY1rk1Dy5_DUTgzw6I0sh5AEcS55mlPvbevBKvI2_ja6LY7aMfw_XIdrTQOy8lvBVLpWRadJaJy. 43IEYUcaJ0BaqKqB7MU60UdNvUTOJQel33gzBdmXLME2X2aepHHckPAFmLzEXxM97FK8C Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ir2.yahoo.com with HTTP; Mon, 28 Jan 2019 03:14:52 +0000 Received: from x5d84919f.dyn.telefonica.de (EHLO archlinux) ([93.132.145.159]) by smtp409.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 9e5b06e3de6ede64a3349fc45b909efc for ; Mon, 28 Jan 2019 03:14:48 +0000 (UTC) Date: Mon, 28 Jan 2019 04:14:47 +0100 From: Ralf Mardorf To: freebsd-questions@freebsd.org Subject: Re: gpart volume names in /dev? Message-ID: <20190128041447.7a3a0cf0@archlinux> In-Reply-To: References: X-Mailer: Claws Mail (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 436C66D6F0 X-Spamd-Bar: +++ X-Spamd-Result: default: False [3.77 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; XM_UA_NO_VERSION(0.01)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[rocketmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[rocketmail.com:+]; MX_GOOD(-0.01)[mta6.am0.yahoodns.net, mta7.am0.yahoodns.net, mta5.am0.yahoodns.net, mta6.am0.yahoodns.net, mta7.am0.yahoodns.net, mta5.am0.yahoodns.net, mta6.am0.yahoodns.net, mta7.am0.yahoodns.net, mta5.am0.yahoodns.net, mta6.am0.yahoodns.net, mta7.am0.yahoodns.net, mta5.am0.yahoodns.net, mta6.am0.yahoodns.net, mta7.am0.yahoodns.net, mta5.am0.yahoodns.net, mta6.am0.yahoodns.net, mta7.am0.yahoodns.net, mta5.am0.yahoodns.net, mta6.am0.yahoodns.net, mta7.am0.yahoodns.net, mta5.am0.yahoodns.net, mta6.am0.yahoodns.net, mta7.am0.yahoodns.net, mta5.am0.yahoodns.net, mta6.am0.yahoodns.net, mta7.am0.yahoodns.net, mta5.am0.yahoodns.net, mta6.am0.yahoodns.net, mta7.am0.yahoodns.net, mta5.am0.yahoodns.net, mta6.am0.yahoodns.net, mta7.am0.yahoodns.net, mta5.am0.yahoodns.net, mta6.am0.yahoodns.net, mta7.am0.yahoodns.net, mta5.am0.yahoodns.net, mta6.am0.yahoodns.net, mta7.am0.yahoodns.net, mta5.am0.yahoodns.net, mta6.am0.yahoodns.net, mta7.am0.yahoodns.net, mta5.am0.yahoodns.net, mta6.am0.yahoodns.net, mta7.am0.yahoodns.net, mta5.am0.yaho odns.net,mta6.am0.yahoodns.net,mta7.am0.yahoodns.net,mta5.am0.yahoodns.net,mta6.am0.yahoodns.net,mta7.am0.yahoodns.net,mta5.am0.yahoodns.net,mta6.am0.yahoodns.net,mta7.am0.yahoodns.net,mta5.am0.yahoodns.net,mta6.am0.yahoodns.net,mta7.am0.yahoodns.net,mta5.am0.yahoodns.net,mta6.am0.yahoodns.net,mta7.am0.yahoodns.net,mta5.am0.yahoodns.net,mta6.am0.yahoodns.net,mta7.am0.yahoodns.net,mta5.am0.yahoodns.net,mta6.am0.yahoodns.net,mta7.am0.yahoodns.net,mta5.am0.yahoodns.net]; DMARC_POLICY_ALLOW(-0.50)[rocketmail.com,reject]; RECEIVED_SPAMHAUS_PBL(0.00)[159.145.132.93.zen.spamhaus.org : 127.0.0.10]; RCVD_TLS_LAST(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:34010, ipnet:77.238.176.0/22, country:GB]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[rocketmail.com]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[rocketmail.com:s=s2048]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.84)[0.840,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_SPAM_MEDIUM(0.86)[0.862,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.97)[ip: (0.25), ipnet: 77.238.176.0/22(2.61), asn: 34010(2.06), country: GB(-0.09)]; NEURAL_SPAM_LONG(0.60)[0.601,0]; RCVD_IN_DNSWL_NONE(0.00)[83.177.238.77.list.dnswl.org : 127.0.5.0]; MID_RHS_NOT_FQDN(0.50)[] 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 03:15:01 -0000 On Sun, 27 Jan 2019 19:48:02 -0700, Gary Aitken wrote: >Once upon a time on a 10.3 system I had entries in /dev corresponding >to gpart labels. e.g. ada1p2 was listed as hdd-1TB-root. I was then >able to use those names in fstab, which was handy because I think fstab >would still work even if the drives were connected differently. > >How does one get gpart labels to show up in /dev? >Can I simply list the label as /dev/hdd-1TB-root (in the above example) >in fstab and it will happen automagically? > >Thanks, > >Gary Google: freebsd fstab label First hit: 18.7. Labeling Disk Devices - FreeBSD https://www.freebsd.org/doc/handbook/geom-glabel.html A better solution is to use glabel to label the disk devices and use the labels in /etc/fstab . Because glabel stores the label in the last sector of a given provider, ...