Messages in this thread | | | From | "Kiniger, Karl (MED)" <> | Date | Thu, 13 Nov 2003 20:06:41 +0100 | Subject | how to get inquiry information for /dev/sd? (kernel 2.4.22) |
| |
Hello,
using kernel 2.4.22:
what is the canonical method to get to know what scsi/usb/ieee1394 disks are being accessed as /dev/sda, /dev/sdb etc ? (e.g want to be sure to format the USB pen drive and not the M/O disk)
Right now I am playing with SCSI_IOCTL_GET_IDLUN ioctl but I also need to get at the inquiry information for each disk device, preferably w/o having to parse /proc/scsi/scsi.
Thanks for any hints, Karl -- Karl Kiniger karl.kiniger@med.ge.com GE Medical Kretztechnik Tiefenbach 15 A-4871 Zipf Tel: (++43) 7682-3800-710 Fax (++43) 7682-3800-47 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |