From owner-freebsd-fs@FreeBSD.ORG Mon Feb 25 11:03:34 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D4F63E80 for ; Mon, 25 Feb 2013 11:03:34 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay06.ispgateway.de (smtprelay06.ispgateway.de [80.67.31.96]) by mx1.freebsd.org (Postfix) with ESMTP id 60153DD6 for ; Mon, 25 Feb 2013 11:03:34 +0000 (UTC) Received: from [84.44.152.99] (helo=fabiankeil.de) by smtprelay06.ispgateway.de with esmtpsa (SSLv3:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1U9vqA-0007se-Jm; Mon, 25 Feb 2013 12:03:26 +0100 Date: Mon, 25 Feb 2013 12:02:34 +0100 From: Fabian Keil To: "Ronald F. Guilmette" Subject: Re: Hard drive device names... Serial Numbers? Message-ID: <20130225120234.66dd1b36@fabiankeil.de> In-Reply-To: <2511.1361748730@server1.tristatelogic.com> References: <2511.1361748730@server1.tristatelogic.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/JTNJXq7cwkjlmXwwtAuC3.o"; protocol="application/pgp-signature" X-Df-Sender: Nzc1MDY3 Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Feb 2013 11:03:34 -0000 --Sig_/JTNJXq7cwkjlmXwwtAuC3.o Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable "Ronald F. Guilmette" wrote: > So anyway, adding the PATA drive to this system of course rendered > everything I had previously had in my /etc/fstab suddenly incorrect. > Fortunately, I anticipated this and was prepared to boot FreeBSD Live > from a CD, and then go in and edit my /etc/fstab as necessary to > adjust everything for the new hard drive numbers. >=20 > This isn't the first time I've had to go through this process. It is > always an annoyance. >=20 > Up until today I was only dimly aware of the different approach described > here: >=20 > http://www.freebsd.org/doc/handbook/geom-glabel.html >=20 > but today I was finally motivated to seek out and read the above page, > which I have now done. >=20 > Having now read all about temporary labels, permanment labels, and ufsids, > and having noted the obvious drawbacks to each (including but not limited > to the fact that these techniques generally only appear to be applicable > exclusively to UFS file systems _and_ only recently created ones at that) Only ufsids are limited to UFS, temporary and permanent labels are generic. > I thought that I would take a second and ask about the general idea of > using built-in hard drive serial numbers as a filesystem-independent > and interface-independent way of identifying specific hard drive devices > (and/or their sub-parts) e.g. within /etc/fstab. Note that you can already do that manually by putting the serial number in the permanent glabel label. If you are using GPT headers you need to be careful with this, though, for details see gpart(8). =20 > This idea seems so obviously that I am forced to assume that I'm probably > far from the first person to have suggested and/or asked about it. >=20 > So what gives? Why can't we have something like /dev/hdsn/ (hdsn =3D=3D > Hard Drive Serial Number) where a set of device numbers would automagical= ly > be created within that directory, all of whose names correspond to the > actual hardware serial numbers of all currently attached hard drive > type devices? (If just the serial numbers are not seen an being unique > enough, I can imagine other unique or semi-unique properties of the drive > being concatenated with the serial numbers.) I believe the main reasons is that so far nobody cared enough about this to provide patches. It has been suggested before and I don't remember anyone being against it. Dragonfly BSD already supports this and maybe parts of the code could be ported. Fabian --Sig_/JTNJXq7cwkjlmXwwtAuC3.o Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlErRM0ACgkQBYqIVf93VJ1BlACfRJHG0tl5WbexidOqr/KD4edI 6ucAn0nrZZkLp2Flk/LnCJ2w+wUznAel =oA+O -----END PGP SIGNATURE----- --Sig_/JTNJXq7cwkjlmXwwtAuC3.o--