[CentOS] forcing device to USB HDD

Michael D. Kralka michael.kralka at kvs.com
Sat Oct 27 20:07:51 UTC 2007

Les Mikesell wrote:
> Kenneth Porter wrote:
>> --On Saturday, October 27, 2007 2:16 PM -0400 "Michael D. Kralka"
>> <michael.kralka at kvs.com> wrote:
>>> You can always set up a udev rule that will give the drive a known alias
>>> (e.g. "backup_drive") based on some fixed information that is stored in
>>> sysfs (such as vendor or model). Your scripts can then use the alias
>>> instead of the real drive name.
>>> This article is a little out of date, but might be useful:
>>> http://www.redhat.com/magazine/002dec04/features/udev/
> What if you have more than one identical device and might want to plug
> more than one in at once?

I would suspect including the serial number (along with vendor and
model) to the udev rules would suffice. The probability that two devices
will have a matching vendor, model, and serial number is infinitesimal,
if not zero.


More information about the CentOS mailing list