On Fri, 12 Mar 2004 17:06, [EMAIL PROTECTED] wrote: > Send Linux-usb-users mailing list submissions to > [EMAIL PROTECTED] > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/linux-usb-users > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Linux-usb-users digest..."
As far as I can tell, the only way to do this is to use sg_map from sg3_utils ( http://www.torque.net/sg/u_index.html ). I use it in my own usb desktop integration scripts, http://users.actrix.co.nz/michael/usbmount.html Basically in bash: function scsiDevFromHostNumber { local n=$1 local scsiDiskDev=`sg_map -sd -a -x | awk --assign n=$n '$2 == n && NF == 7 { print $7 }'` if [ -z "$scsiDiskDev" ]; then scsiDiskDev="UNKNOWN" fi echo $scsiDiskDev } ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
