Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2008 17:53:28 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        Rakhesh Sasidharan <rakhesh@rakhesh.com>
Cc:        freebsd-questions@freebsd.org, Colin Brace <cb@lim.nl>
Subject:   Re: Fixing a USB disk to a specific device name
Message-ID:  <20080121165328.GA50246@slackbox.xs4all.nl>
In-Reply-To: <20080121085901.R1673@obelix.home.rakhesh.com>
References:  <20080120161831.L62033@obelix.home.rakhesh.com> <20080120142042.GA8576@slackbox.xs4all.nl> <20080120211904.D91357@dogmatix.home.rakhesh.com> <aec9371b0801201113g5bf45035kaff76ba86b2162b@mail.gmail.com> <20080121085901.R1673@obelix.home.rakhesh.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--2oS5YaxWCcQjTEyO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jan 21, 2008 at 08:59:30AM +0400, Rakhesh Sasidharan wrote:
>=20
> Colin Brace wrote:
>=20
>> I use udev rules to do this. See:
>>=20
>> <
>> http://www.linuxquestions.org/questions/linux-general-1/make-removable-u=
sb-hdd-mount-at-fixed-mount-point-511917/
>>>=20
>=20
> That doesn't work on FreeBSD, does it? Udev's a Linux thing last I heard =
of=20
> ...

You might be able to do that with devd(8). I don't know if you'll get
attach events on disk devices, you'll  have to try.

Keep in mind that you cannot use devd to unmount! You'll have to unmount
_before_ the device is detached/destroyed, or you might get a panic.

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)

--2oS5YaxWCcQjTEyO
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHlM4IEnfvsMMhpyURAvZJAKCasnZMq45lhYLfDlQFDCgmTmmesQCaAtLw
2XLsdqHvaSFhR8nT4DnOBsk=
=B5lB
-----END PGP SIGNATURE-----

--2oS5YaxWCcQjTEyO--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080121165328.GA50246>