Re: USB question
Brad Rogers <brad@fineby.me.uk> writes:
> Not lsmod, but lsusb. Fingers faster than brain, today. :-x
BTW, is lsusb known to be broken these days? I have a USB thumb drive
that works just fine, but "lsusb" doesn't show it, even while it's
mounted and I'm doing I/O to it! Indeed, lsusb doesn't seem to show
much of anything...
lsusb shows nothing very useful:
$ lsusb -v
$ lsusb --version
lsusb (usbutils) 0.72
$ lsusb -v -t
Bus# 3
`-Dev# 1 Vendor 0x0000 Product 0x0000
`-Dev# 3 Vendor 0x04bb Product 0x0c45
Bus# 2
`-Dev# 1 Vendor 0x0000 Product 0x0000
Bus# 1
`-Dev# 1 Vendor 0x0000 Product 0x0000
`-Dev# 2 Vendor 0x046d Product 0xc00e
But udev found the drive:
$ udevinfo --name=sda1 --query=all
P: /block/sda/sda1
N: sda1
S: disk/by-id/usb-I-O_DATA_USB_Flash_Disk_A0E0C772300014-0:0-part1
S: disk/by-path/pci-0000:00:1d.7-usb-0:2:1.0-scsi-0:0:0:0-part1
S: disk/by-uuid/1E1B-2835
E: ID_VENDOR=I-O_DATA
E: ID_MODEL=USB_Flash_Disk
E: ID_REVISION=A2C
E: ID_SERIAL=I-O_DATA_USB_Flash_Disk_A0E0C772300014-0:0
E: ID_SERIAL_SHORT=A0E0C772300014
E: ID_TYPE=disk
E: ID_INSTANCE=0:0
E: ID_BUS=usb
E: ID_PATH=pci-0000:00:1d.7-usb-0:2: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=1E1B-2835
E: ID_FS_UUID_ENC=1E1B-2835
E: ID_FS_LABEL=
E: ID_FS_LABEL_ENC=
E: ID_FS_LABEL_SAFE=
And it's even mounted:
$ mount | grep sda1
/dev/sda1 on /media/usb type vfat (rw,noexec,nosuid,nodev,noatime,user=miles)
IIRC, lsusb used to be much more useful than this...
Thanks,
-Miles
--
(\(\
(^.^)
(")")
*This is the cute bunny virus, please copy this into your sig so it can spread.
Reply to: