On Mon, Jan 22, 2007 at 05:22:25AM -0800, Radha Mohan wrote:
> Hi ,
> 
> How can I know the name of usb HDD or mass-storage device and its
> partition on the linux machine without help of "dmesg"? Suppose I have
> connected a Kingston 1GB pendrive to my system I should be able to
> know the name of device connected as "Kingston mass storage drive" and
> its partition is "/dev/sda1"

Use 'udevinfo' it will show up this kind of information:

 $ udevinfo --query=all --name=sdb1
 P: /block/sdb/sdb1
 N: sdb1
 S: disk/by-id/usb-SanDisk_Cruzer_Mini_20041100831b0d536fba-part1
 S: disk/by-path/pci-0000:00:1d.2-usb-0:2.3:1.0-scsi-0:0:0:0-part1
 S: disk/by-uuid/3B69-1AFD
 S: disk/by-label/GREGKH-GIG
 E: ID_VENDOR=SanDisk
 E: ID_MODEL=Cruzer_Mini
 E: ID_REVISION=0.1
 E: ID_SERIAL=SanDisk_Cruzer_Mini_20041100831b0d536fba
 E: ID_TYPE=disk
 E: ID_BUS=usb
 E: ID_PATH=pci-0000:00:1d.2-usb-0:2.3:1.0-scsi-0:0:0:0
 E: ID_FS_USAGE=filesystem
 E: ID_FS_TYPE=vfat
 E: ID_FS_VERSION=FAT16
 E: ID_FS_UUID=3B69-1AFD
 E: ID_FS_LABEL=GREGKH-GIG
 E: ID_FS_LABEL_SAFE=GREGKH-GIG

Hope this helps,

greg k-h

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to