Date: Mon, 28 Jan 2019 04:14:47 +0100 From: Ralf Mardorf <ralf.mardorf@rocketmail.com> To: freebsd-questions@freebsd.org Subject: Re: gpart volume names in /dev? Message-ID: <20190128041447.7a3a0cf0@archlinux> In-Reply-To: <c2651ac5-1a03-8ab3-0dde-ab0c6589a24d@dreamchaser.org> References: <c2651ac5-1a03-8ab3-0dde-ab0c6589a24d@dreamchaser.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190128041447.7a3a0cf0>
