Skip to contentSkip to conversation

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

DISCUSSION Franck Collineau 1 participant 1 message Jan 22, 2004

lore
Share & tools
lore
#0 lore raw

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