catch sda1 or /dev/scsi/host1/bus0/target0/lun0

From: Franck Collineau
Date: Thu Jan 22 2004 - 10:07:08 EST


Hello!

When I connect a usb device, dmseg tells me which special file the device is
attached on.
This is sda1 or something like : /dev/scsi/host1/bus0/target0/lun0

I would like to catch this information in a script.
Can anybody tell me how can i do ?
I think this is a kernel information; how can I get it ?

Thanks for your help.

FRanck

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/