On Wed, May 4, 2011 at 10:15 AM, Rajesh kumar <[email protected]> wrote: > When we connect the usb device it will reside as /dev/sdb, /dev/sdc etc.,
Be careful with the verbiage "usb device." Only block devices will show up as /dev/sd*. An USB>RJ45 device will show up as a network device ethX, an USB>Serial adapter will show up as /dev/ttyUSBX etc. X = [0-9]. > We can find that using fdisk -l > > Is there any command to list all the usb devices location, like below > > $<command> > /dev/sdc > /dev/sdb > For USB specific block devices, see what the output of 'lsusb' looks like and then write your script to parse that output for all 'block devices' on USB ports. -- Arun Khan _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
