Skip to contentSkip to conversation

about the block /dev/sda1, /dev/sdb1,etc

DISCUSSION ayuan 2 participants 2 messages Nov 24, 2003

lore
Share & tools
lore

ayuan

author
#0 lore raw

Hi,
If I have two usb device ,How can I know which usb device correspond /dev/sda1 and which usb device correspond /dev/sdb1,etc.How can I get these info ?
Thanks very much!ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÓ†+ù޵隊X¬²š'²ŠŞu¼ÿH_çzÑ¢½æÚrCë¢Ú›ğèzĨº·Šà{ù޶¥§*.m騭êk¡Ûœ¶+Şü:²+azZr¢ç+y«^mëmz·(uïÒDLq 9QÿjwazZn²¥¥ƒ”ü)brAŞ­ïá¶Úÿÿû(º·~Šà{ùŞ·÷h�«^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ.)îÇøh¶™nƒ÷^½éfj)b� b²Øm¶ŸÿşX§»á¢Úeºì¢êÜyú+�ïçzÒâ�ìÿ†‹i–èÿu몗ùb²Ûÿ²‹«qçè®ÿ�ëa¶ÚlÿÿåŠËlşÊ.­ÇŸ¢¸şw­şX¬¶ÏåŠËb�ú?–)îÇøh¶™nƒ÷^

#1 lore raw
Quoted 4 lines · ayuan

Hi,
If I have two usb device ,How can I know which usb device correspond /dev/sda1 and which usb device correspond /dev/sdb1,etc.How can I get these info ?

In 2.6, just look at the sysfs tree. For 2.4, it's a lot harder. Try looking through the scsi files in the /proc tree.

Good luck,

greg k-h

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel