How to identify the tape drive's device file name in hal-device's
output
YangKun
ykun at redhat.com
Fri Jan 19 04:45:43 PST 2007
Hi Fellows,
Can anyone point me out how can I tell the tape drive's device file name
from the related section of hal-device's output below :
------------------------------------------------------------------
udi =
'/org/freedesktop/Hal/devices/pci_9005_c0_0_scsi_host_scsi_device_lun0'
info.udi =
'/org/freedesktop/Hal/devices/pci_9005_c0_0_scsi_host_scsi_device_lun0'
(string)
linux.subsystem = 'scsi' (string)
linux.hotplug_type = 1 (0x1) (int)
scsi.type = 'tape' (string)
scsi.vendor = 'HP' (string)
scsi.model = 'Ultrium 1-SCSI' (string)
info.product = 'SCSI Device' (string)
info.linux.driver = 'st' (string)
scsi.lun = 0 (0x0) (int)
scsi.target = 4 (0x4) (int)
scsi.bus = 0 (0x0) (int)
scsi.host = 2 (0x2) (int)
info.parent = '/org/freedesktop/Hal/devices/pci_9005_c0_0_scsi_host'
(string)
info.bus = 'scsi' (string)
linux.sysfs_path_device =
'/sys/devices/pci0000:00/0000:00:1e.0/0000:05:04.0/host2/target2:0:4/2:0:4:0'
(string)
linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1e.0/0000:05:04.0/host2/target2:0:4/2:0:4:0'
(string)
------------------------------------------------------------------
I mean , the name should be /dev/st{digit} . But how can I find the
"digit" from the above output ?
Thank you very much :-)
Regards
YK
More information about the hal
mailing list