Date: Sun, 20 Jan 2008 15:20:43 +0100 From: Roland Smith <rsmith@xs4all.nl> To: Rakhesh Sasidharan <rakhesh@rakhesh.com> Cc: freebsd-questions@freebsd.org Subject: Re: Fixing a USB disk to a specific device name Message-ID: <20080120142042.GA8576@slackbox.xs4all.nl> In-Reply-To: <20080120161831.L62033@obelix.home.rakhesh.com> References: <20080120161831.L62033@obelix.home.rakhesh.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 20, 2008 at 04:23:58PM +0400, Rakhesh Sasidharan wrote: >=20 > Hi, >=20 > Is it possible to assign a specific device name to a USB disk? As in, say= I=20 > have 2 USB disks -- currently they appear as da0 and da1. One of these=20 > (da0) contains the key for a GELI encrypted partition, and so I mount it= =20 > from fstab while booting (to get the key). Yes, more or less. =20 > What I'd like to know is whether there's any way for me to ensure that th= e=20 > da0 disk always appears as da0. I don't want it that tomm I plug in anoth= er=20 > disk (or change the order of disks, though I'll be more careful with that= )=20 > and suddenly da0 is no longer at da0! That would hamper the boot process= =20 > ... not nice. It is possible, but not as daX. Use the glabel(8) utility to label your disks. They will show up as /dev/label/<yourlabel> The daX devices are created as the device is plugged in, so AFAIK it's impossible to permanently assign them a certain daX device. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHk1i6EnfvsMMhpyURApgSAJ93TfY784GmJ8wla3v6R8nXrnbmzgCfVEti yruY0Dy8dj9bgY8ACDUV6PU= =bKzJ -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080120142042.GA8576>