Skip to main content
38 votes
Accepted

Can I pass through a USB Port via qemu Command Line?

For some reason this is not documented on the Qemu 2.12.50 User Doc and I had to learn what I learned from this guy They mention: -device usb-host,hostbus=bus,hostaddr=addr Pass through the host ...
Raven's user avatar
  • 1,313
6 votes

How do you mount a USB hardrive that shows in lsusb but not fdisk or lsblk?

The important part of your logs is Oct 11 04:36:07 username kernel: [355197.644022] usb 1-4: reset high-speed USB device number 20 using ehci-pci Oct 11 04:36:22 username kernel: [355212.730110] usb ...
xhienne's user avatar
  • 18k
5 votes
Accepted

What Happens to /dev/bus/usb After 1001 Connections

If I read correctly https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/tree/drivers/usb/core/hub.c#n2030 (code for a function called choose_devnum), it may wrap far earlier than ...
Patrick Mevzek's user avatar
4 votes
Accepted

lsusb lists devices on different PCI controllers under the same USB hub

USB 3.0 in 5G mode isn't compatible to USB 2.0 or earlier, so the way they implemented compatibility is to use one pin pair in the same position as for USB 2.0 for legacy devices, and two new pin ...
dirkt's user avatar
  • 32.7k
4 votes
Accepted

How can I derive block device information using the output of lsusb

The answer to your question depends somewhat on what mechanism will be used to trigger the script. Assuming that the script is called from some kind of backup program which is not immediately called ...
AdminBee's user avatar
  • 22.9k
4 votes
Accepted

lsusb | grep | Awk command is cutting off the first result

The line is disappearing because of the read line invocation, not AWK. I would go about this differently: lsusb -d 1234:a1b1 | while read _ bus _ device _; do sudo ./usbreset "/dev/bus/usb/${bus}/...
Stephen Kitt's user avatar
4 votes
Accepted

USB reset using lsusb output

One option could be to use system() directly from within awk: 1. Validate Validate by requesting device from lsusb: lsusb | awk '/Tascam.*Hub$/{ system("lsusb -d " $6) }' That would take ...
ibuprofen's user avatar
  • 2,960
4 votes
Accepted

Why isn't my CH341a Device Getting Assigned a Device Path (/dev/ttyUSB0)

Your device isn't being assigned a serial device path because it's not a serial port. From your lsusb output, we see: Bus 001 Device 004: ID 1a86:5512 QinHeng Electronics CH341 in EPP/MEM/I2C mode, ...
larsks's user avatar
  • 36.6k
4 votes

Forcing desired vendor:product IDs onto a USB device

No, you can't do that. This information is read from the device by the hardware during device recognition and then made available to the kernel. What you can do is you can force some driver to ...
Nikita Kipriyanov's user avatar
3 votes

What is meaning of bus, port, and dev here?

Bus is a usb host controller, which is usually provided by the chipset or the motherboard. In your example there are four host controllers, two with USB 3.1 speeds (10000M), two with USB 2.0 speeds (...
Jaripekka Juhala's user avatar
3 votes
Accepted

Why is the hardware database of usbutils not updated?

Running update-usbids by default isn’t an option because users don’t necessarily want their systems to “phone home” in any way (which update-usbids does, even if the download URL is currently ...
Stephen Kitt's user avatar
3 votes

USB serial number not shown with lsusb -v command

lsusb may try to open the USB device as O_RDWR (read/write mode) and your user might not have the rights to do this (some error message "Couldn't open device, some information will be missing" should ...
Jaleks's user avatar
  • 2,591
3 votes

lsusb doesn't list device names

If you are on a distribution using BusyBox, this can be caused by that you are using Busybox' lsusb rather than the one from usbutils (or at least so it was on my Alpine/postmarketOS installation). In ...
Newbyte's user avatar
  • 1,138
2 votes

USB serial number not shown with lsusb -v command

There are lots of different USB devices in general (keyboard, mice, webcams, ...). lsusb deals with the connected devices on the USB protocol level. Some USB device are storage devices (USB sticks, ...
dirkt's user avatar
  • 32.7k
2 votes

How do you mount a USB hardrive that shows in lsusb but not fdisk or lsblk?

I had a similar problem but my usb hardware was a USB external hard drive (Eagle Consus with a Western Digital PATA hard drive). To resolve, I changed the hard drive's jumper setting to slave. In my ...
Stephen Dittoe's user avatar
2 votes

connecting M-Audio USB midi keyboard

Install the proper drivers: sudo apt-get install midisport-firmware
Shaul Reznik's user avatar
2 votes

How can one USB port report 2 different BUS IDs?

After a bit more testing, I found that any USB 3 device plugged into a USB 3 slot was mapped to BUS 4. Any USB 2 device plugged into any USB 3 slot was mapped to BUS 3. However any USB 3 device ...
Raven's user avatar
  • 1,313
2 votes
Accepted

Phony USB hubs in Linux

The USB3 standard brought the SuperSpeed mode, with new cables and connectors. Your bus 4 covers the SuperSpeed mode, which uses an entirely different set of wires in the USB cables. So as the higher-...
telcoM's user avatar
  • 103k
2 votes

USB-Stick not recognizable by fdisk -l

One of possible causes of this behavior is corrupted USB drive firmware. I have one such device (with Chipsbank controller) and it can be hard to recover – the drive essentially stops working and ...
jiwopene's user avatar
  • 1,081
2 votes

USB reset using lsusb output

It sounds like this might be what you're trying to do: $ cat file | awk '$7=="Tascam"{print $6}' | xargs echo sudo /usr/bin/usbreset sudo /usr/bin/usbreset 1604:10c0 or: $ echo sudo /usr/...
Ed Morton's user avatar
  • 33.1k
2 votes
Accepted

When looking at dmesg for USB devices, what's the difference between "New USB device found" and "New USB device strings"?

Basically, every USB device must have a standardized USB device descriptor: essentially a block of metadata about the device that can be read without knowing anything about the device (except that it'...
telcoM's user avatar
  • 103k
2 votes

How to disconnect and reconnect USB devices on the command line?

Similar questions (to the one in your title) have been asked over the years e.g. [1], [2], [3] (probably over a dozen if you take the time to search...) most answers no longer work nowadays due to ...
don_crissti's user avatar
  • 83.9k
2 votes

Is it possible to programmatically identify the number of physical USB ports on a Lenovo ThinkCentre?

You can't; the operating system only sees how many ports a hub IC has, not how many are connected to external USB ports.
Marcus Müller's user avatar
1 vote

Get USB device tree without lsusb

Go back from number encoding of the device tree. For example, my webcam is at /sys/bus/usb/devices/3-1.1.2, which means it sits on bus 3, port 1 of the root hub of thus bus, port 1 of a hub below the ...
dirkt's user avatar
  • 32.7k
1 vote

lsusb | grep | Awk command is cutting off the first result

@StephenKitt's shell loop is fine in this case since efficiency probably isn't an issue and the input format is well known and simple and you're not just manipulating text (see why-is-using-a-shell-...
Ed Morton's user avatar
  • 33.1k
1 vote

Unable to enumerate USB device - unknown device: how to find out device that odes not show in lsusb?

The error message you're seeing is from a low-level USB failure, the basic USB protocol hasn't been completed — so Linux probably doesn't even know the idVendor/idProduct yet. That's also why lsusb ...
derobert's user avatar
  • 111k
1 vote

Is there a limit to the number of FTDI connections on Debian 9?

yes This is a limitation of the Intel xHCI chipset used on the motherboard. Specifically, most of these chips limit the number of "devices" to 32. But a single physical thing like a camera may ...
Alex Shroyer's user avatar
1 vote

ttyUSB? No, ttyACM. How can I assign the usb-device to ttyACM, not ttyUSB?

You would have to program the ATSAMD21G18 chip on the board to actually present a valid USB ACM interface, with all the necessary USB descriptors to identify it as such. Then it would be automatically ...
telcoM's user avatar
  • 103k
1 vote

Can a USB root hub have more than one physical port?

Yes, see for example the output from lsusb -t on my system: /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M /: Bus 05....
Stephen Kitt's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible