Questions tagged [usb]

Universal Serial Bus (USB) establishes a connection between devices and a host computer.

2062 questions
47
votes
6 answers

Make a computer act as a virtual USB device for other equipments

Some applications simulate a virtual USB or CD Rom drive as if a USB drive is attached to the computer. Is there any configuration or application that provides a virtual USB drive, not for the the operating system itself, but for other equipments…
27
votes
5 answers

Disconnect and reconnect USB port via cli

I have a mouse that will stop working randomly. The solution is easy, unplug and replug. Is there a way I can do this via the command line though? Doing via command line has a few advantages. Doesn't wear out the connector. Faster. Saves me the…
cat pants
  • 435
25
votes
1 answer

How USB bus number and device number been assigned?

When using lsusb, I realize that the bus number and device number of a USB device can change from time to time. From what I understand, the bus number can change on every reboot. The device number will change on every reconnect. My question is what…
Conan
  • 403
22
votes
2 answers

Which USB slot is 2.0 or 3.0? How do I know?

I would like to know if my desktop computer supports USB 3.0, but from the output below this seems unlikely. I get the following output from lspci: root@liv-HP-Compaq-dc7900:/home/liv# lspci -v | grep -i usb 00:1a.0 USB controller: Intel…
landroni
  • 10,906
16
votes
4 answers

How to check if an USB device is present without lsusb?

I want to see if an USB device is present but I don't have lsusb. Is there another way to check if an USB device is present without having to use lsusb?
11
votes
2 answers

Having a computer act as a virtual USB slave device rather than as a host

I have a use case where I want a virtual hard disk (particularly, on a freeNAS installation) to act as a USB mass storage peripheral for an external device, such as a phone or video game console. My idea is to do away with all the USB storage…
AJ Quad
  • 111
8
votes
2 answers

Why is lsusb taking so long?

I'm running lsusb several times, but it's taking a long time to return. Is there a reason why it won't finish or that it runs slowly? I've tried killing their PIDs but that doesn't work. So I close the gnome terminal tab where one is running, and…
Tim
  • 101,790
7
votes
1 answer

Create virtual USB drive

How is possible to create virtual USB drive? I found some examples, that they included some *.iso file into mount directory. But i would like to create empty virtual USB drive with about 4 GB volume. I am using Ubuntu GNOME 16.04 LTS. Thank you
tomsk
  • 349
5
votes
2 answers

How do I make an image of my entire USB flash drive?

The message below comes from another post and I tried it the way that they stated to. First, I mounted the USB drive: sudo mount -o ro,noexec /dev/sdb1 /media I mounted it as read-only to prevent any damage or changes to the USB while copying it,…
5
votes
4 answers

Light up a LED through USB

Hey, so I'm just playing around with a usb cable and an LED. I plugged in the usb to my computer and connected ground with the LED ground and the last usb pin (+) to the LED. It stays lit bright. I moved the wire from the usb power pin to the D+…
flumpb
  • 551
  • 2
  • 5
  • 14
4
votes
2 answers

Can I read/write from/to the USB device that does not enumerate any device in /dev?

I'm using a Texas Instruments MSP430F5529 Launchpad, but it is probably not important. This device upon connection enumerates 2 ACM devices: /dev/ttyACM0 and ttyACM1. Once upgrading firmware something went wrong and these files are no longer…
eltomek
  • 161
4
votes
1 answer

PS/2 to USB port for keyboard gives "unable to enumerate USB device on port 5"

I got my hands on a Logitech Ultra X (Y-SX49) keyboard, with US key marks. The US key placement is much better than my Swedish native, at least for programmers, because there are much fewer shortcuts for things typically desired when writing code.…
Emanuel Berg
  • 6,903
  • 8
  • 44
  • 65
4
votes
3 answers

How can I format a thumb drive so that I delete all existing files?

I have a usb thumb drive that I want to reuse. How can I format it?
4
votes
3 answers

Identify what USB port is a device plugged into

I'm working on custom Bash scripts for mass duplication of USB flash memory and mass testing (using f3). I wonder if it's possible to identify what USB port is a pendrive plugged into. I have USB hubs with numbered ports. If the have some static…
unfa
  • 1,745
4
votes
1 answer

usbip: problem getting device attributes: No such file or directory

I try to use an ftdi rs232/usb adapter over ethernet. It's connected to my raspberry pi. pi@raspberrypi ~ $ usbip list -l Local USB devices ================= - busid 1-1 (0424:9512) 1-1:1.0 -> hub - busid 1-1.1 (0424:ec00) 1-1.1:1.0 ->…
1
2 3 4