> # cat /etc/udev/rules.d/55-bacula.rules > SUBSYSTEM=="scsi",ATTRS{vendor}=="EXABYTE*",ATTRS{type}=="8", > SYMLINK+="autochanger1" > > You will have to replace the vendor with your vendor. And make sure > the type matches. I am not sure this number is universal. > > John > BTW, You can figure out this info using the udev info command.
# udevinfo -a -p /sys/bus/scsi/devices/16\:0\:3\:1/ Udevinfo starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A rule to match, can be composed by the attributes of the device and the attributes from one single parent device. looking at device '/devices/pci0000:00/0000:00:0b.0/0000:01:03.0/host16/target16:0:3/16:0:3:1': KERNEL=="16:0:3:1" SUBSYSTEM=="scsi" DRIVER=="" ATTR{modalias}=="scsi:t-0x08" ATTR{ioerr_cnt}=="0x67d" ATTR{iodone_cnt}=="0x14db" ATTR{iorequest_cnt}=="0x14db" ATTR{iocounterbits}=="32" ATTR{timeout}=="0" ATTR{state}=="running" ATTR{rev}=="C112" ATTR{model}=="MAGNUM 224 " ATTR{vendor}=="EXABYTE " ATTR{scsi_level}=="5" ATTR{type}=="8" ATTR{queue_type}=="none" ATTR{queue_depth}=="2" ATTR{device_blocked}=="0" looking at parent device '/devices/pci0000:00/0000:00:0b.0/0000:01:03.0/host16/target16:0:3': KERNELS=="target16:0:3" SUBSYSTEMS=="" DRIVERS=="" looking at parent device '/devices/pci0000:00/0000:00:0b.0/0000:01:03.0/host16': KERNELS=="host16" SUBSYSTEMS=="" DRIVERS=="" looking at parent device '/devices/pci0000:00/0000:00:0b.0/0000:01:03.0': KERNELS=="0000:01:03.0" SUBSYSTEMS=="pci" DRIVERS=="sym53c8xx" ATTRS{msi_bus}=="" ATTRS{broken_parity_status}=="0" ATTRS{enable}=="1" ATTRS{numa_node}=="0" ATTRS{modalias}=="pci:v00001000d00000020sv00001000sd00001030bc01sc00i00" ATTRS{local_cpus}=="1" ATTRS{irq}=="28" ATTRS{class}=="0x010000" ATTRS{subsystem_device}=="0x1030" ATTRS{subsystem_vendor}=="0x1000" ATTRS{device}=="0x0020" ATTRS{vendor}=="0x1000" looking at parent device '/devices/pci0000:00/0000:00:0b.0': KERNELS=="0000:00:0b.0" SUBSYSTEMS=="pci" DRIVERS=="" ATTRS{msi_bus}=="1" ATTRS{broken_parity_status}=="0" ATTRS{enable}=="1" ATTRS{numa_node}=="0" ATTRS{modalias}=="pci:v00001022d00007450sv00000000sd00000000bc06sc04i00" ATTRS{local_cpus}=="1" ATTRS{irq}=="0" ATTRS{class}=="0x060400" ATTRS{subsystem_device}=="0x0000" ATTRS{subsystem_vendor}=="0x0000" ATTRS{device}=="0x7450" ATTRS{vendor}=="0x1022" looking at parent device '/devices/pci0000:00': KERNELS=="pci0000:00" SUBSYSTEMS=="" DRIVERS=="" You will have to look in the /sys/bus/scsi/devices for your correct device. I guessed on that one because I know my changer device is on scsi id 3 lun 1 You may want to look here for some more help: http://www.reactivated.net/writing_udev_rules.html John ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users