[Augh ... I used the the wrong hotplug devel address again. Already sent to linux-scsi.] Attached is version 0.1 of scsi_id, a program to generate a SCSI unique identifier for a given SCSI device. It is primarily for use with udev callout config entries. It could also be used for automatic multi-path configuration. It generates and uses a temporary dev entry based on the values found in sysfs dev attributes. This means it does not support SCSI drivers that do are not currently creating dev entries (st or sg). In addition, for this to function with st (assuming you have a tape drive that supports page 0x80 or page 0x83) st would have to support SG_IO. It uses the SG_IO ioctl to send SCSI INQUIRY page 0x80 or page 0x83 commands to the SCSI device. Requires: - Linux kernel 2.6 - libsysfs No man page yet. libsysfs 0_2_0 was not installing libsysfs.h or dlist.h, manually copy those files to /usr/include/sys before compiling. Build via make and make install. To use with udev, in short: Run scsi_id to dump a value, for example, for sda, run: scsi_id -s /block/sda Take the resulting value (including white space) and use it as the ID in a udev CALLOUT entry, an exmample /etc/udev/namedev.config entry for one of my disk drives: CALLOUT, PROGRAM="/sbin/scsi_id" BUS="scsi", ID="SIBM OEM DCHS09X 68078621" NAME="disk-1" I have not tried using scsi_id (or udev) via initramfs or initrd. Please send me any questions, comments or patches. Thanks! -- Patrick Mansfield