On Mon, Feb 05, 2007 at 09:23:45AM +0800, [EMAIL PROTECTED] wrote: > Hi, > > I need to locate the device file by every usb port. Could anyone give me a > hint? > > The background is I have two usb ports. On each port, there is a usb mass > storage device. I need to mount corresponding device file when application > chose the usb port. I know the device files are > /dev/scsi/host0/bus0/target0/lun0/disc and > /dev/scsi/host1/bus0/target0/lun0/disc. But I don't know which is from usb > port1.
Try using udev to map this properly, it will show you this information if you use the udevinfo program. good luck, greg k-h ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users