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

learn more… | top users | synonyms

22
votes
3answers
18k views

Installing Grub 2 on a USB flash drive

MultiBootISOs is a tool that let you install Grub on a USB flash drive. I really like it because it lets me boot from ISO files and let me put a bunch of ISOs on my USB and choose which one to boot. ...
6
votes
3answers
6k views

Automount USB drives with no GUI requirement (halevt replacement)

For minimal installations of Debian, I have been using halevt to enable automounting of USB drives. Halevt is reliable and requires no configuration aside from installing the package. Now, halevt has ...
27
votes
5answers
23k views

How to reconnect a logically disconnected USB device?

It is possible for a USB storage device to become logically disconnected: the device is still plugged in, but is invisible from the operating system (e.g. it's not listed under /proc/bus/usb). Maybe ...
9
votes
4answers
4k views

If I connect a physical device, how can I ever know which device file belongs to it?

Say I plug in several USB drives which don't get automatically mounted. How can I find out which device file belongs to which physical device, so I can mount it for example? I'm running Mac OS X but ...
5
votes
3answers
598 views

How to get my USB key to auto mount

I'm currently working in a command line only environment. When I plug my USB key in, I see a new device file in /dev: ... sdi sdi1 ... If I simply sudo mount /dev/sdi1 /media/tmp, and umount it ...
18
votes
2answers
8k views

What happens when a USB drive is plugged in?

What is the flow of USB events from kernel space to user space? I get a popup on my desktop when I plug in a USB drive -- what is the sequence of events that leads from detecting the new USB drive to ...
17
votes
2answers
14k views

How to run custom scripts upon USB device plug-in?

What is the state-of-the-art method for automatically executing custom scripts upon USB device plug-in under current Linux distributions like Debian/CentOS/Fedora? For example if you want to ...
9
votes
2answers
7k views

How to re-mount a USB stick after unmounting from Nautilus without disconnecting it?

I find that in order to re-mount a USB stick, I have to physically disconnect it, and then re-connect it. How can I do this without such tiring physical action?
7
votes
1answer
5k views

Understand output of `udevadm info -a -n /dev/sdb`

I plug an external HDD into my laptop. I try to find out the information by $ udevadm info -a -n /dev/sdb Udevadm info starts with the device specified by the devpath and then walks up the chain of ...
4
votes
2answers
2k views

Use an USB tethered phone as network adapter

I am running CentOS 6 and was able to tether my HTC phone using a proxy called proxoid . This allows me to redirect HTTP. But how do I redirect the entire TCP traffic, e.g. if I need to setup openvpn ...
5
votes
1answer
942 views

How to be notified when a USB device was plugged?

My system have to auto-mount for usb devices, how can I be notified when a usb device is plugged? Where can I read more about? I would like to treat that using shell script or C.
3
votes
1answer
726 views

Bootable USB appearing as HDD not Removable Device

I have a unique problem with an older Toshiba satellite laptop that happens to be a LegacyFree laptop meaning you can't access the bios via the normal F2, Del, Esc, etc. I can only select a boot ...
2
votes
4answers
295 views

USB 500GB external drive mounted with undetermined permissions, missing data

Note: This situation is evolving. Please see the output at the end of this question for the current situation. I'm using Linux Mint 14. Recently, I repartitioned one of my hard drives, and I backed ...
3
votes
1answer
3k views

How can I uniquely identify which device is on USB `hub 6-0:1.0: port 2`?

How can I uniquely identify which device is on USB hub 6-0:1.0: port 2? I receive messages in my dmesg every now and then and I want the system to tell me which device is connected to that port. ...
1
vote
4answers
13k views

USB mount doesn't work on Centos 6.4

I have a problem. After an update, my USB drives are not mounted automatically and I'm unable to mount them manually... The output of my fdisk -l command is: Disk /dev/sdb: 15.8 GB, 15762194432 ...
-1
votes
2answers
663 views

How to remove a USB drive without worry if its been unmounted? [closed]

Sometimes I unplug my usb drive only to find out files were not written to it. I suppose the only way to ensure files are written to it is to right click on the USB drive on the desktop and then ...
17
votes
1answer
10k views

How to assign USB driver to device

This question is two-fold: First, how do you manually detach a driver from a USB device and attach a different one? For example, I have a device that when connected automatically uses the ...
12
votes
1answer
11k views

How to use Linux kernel driver bind/unbind interface for USB-HID devices?

First background. I am developing a driver for Logitech game-panel devices. It's a keyboard with a screen on it. The driver is working nicely but by default the device is handled by HID. In order to ...
8
votes
4answers
3k views

Serve files over USB

I would like to be able to serve a section of my box's file system over USB to another computer. For example, if the files are on box A and I am reading from box B, then B would mount A, see those ...
5
votes
3answers
6k views

Howto read SMS stored on a SIM card?

I have an old phone with a telephone card (SIM card) inside. The telephone has an infrared interface on the side. I want to read out my contacts and stored SMS messages from the phone, either via ...
5
votes
1answer
2k views

Why doesn't this udev rule trigger upon removal of the device?

I have two mice, one which has an issue where the middle mouse button and button6 get triggered simultaneously. So I configured my ~/.Xmodmap to disable this button. At the same time, however, I ...
9
votes
1answer
16k views

Mounting USB drive that is not recognized

Using Arch Linux / XFCE, I frequently have problems with USB drives that are not properly mounted. Sometimes they automatically show up in Thunar and I can mount them with one click. However, at other ...
5
votes
3answers
3k views

Prevent claiming of novelty usb device by usbhid so I can control it with libusb?

I have a USB rocket launcher that I wish to experiment with through libusb. However, libusb cannot claim the interface; presumably because the output of usb-devices lists 'usbhid' as the driver for ...
5
votes
1answer
3k views

Monitoring USB traffic

Kernel version: 2.6.31-22 I wish to monitor the USB traffic to and from a device. I've searched, but different sites seem to give different information and I'm confused. Some sites suggest that I ...
4
votes
2answers
7k views

How to avoid powering down certain USB devices when a machine is suspended

I'd like to maintain power supply to a USB-powered drive when the system goes into suspend (AKA S3 or "suspend-to-RAM") mode. Normally the power is cut while the machine is suspended, which causes it ...
3
votes
0answers
273 views

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 ...
6
votes
2answers
989 views

Is it possible for a daemon (i.e. background) process to look for key-presses from a USB keyboard?

I'm working on an embedded Linux project where I will be developing a program that will run automatically on bootup and interact with the user via a character display and some sort of button array. ...
5
votes
3answers
913 views

Watch USB connections vendor id, product id, revision

I'd like to simply watch all devices added and removed from my system and view their USB vendor ID, product ID, and revision and other relevant information. How can I do this in Linux? Is there a ...
5
votes
3answers
4k views

Change /dev/sd* for USB Linux install?

I am trying to install Scientific Linux 6.1 (which is literally RedHat Enterprise Linux without the branding) by booting its installer from my USB drive. The installer starts fine, but two things ...
4
votes
3answers
913 views

How to remove a USB drive without worrying if its been unmounted?

Sometimes I unplug my usb drive only to find out files were not written to it. I suppose the only way to ensure files are written to it is to right click on the USB drive on the desktop and then ...
4
votes
3answers
1k views

Installing Fedora from USB key

How do I load a Fedora DVD iso onto USB so I can install it from there. I've tried dd as in here: Fedora instructions but for some reason this didn't work. Here's what I've tried: sudo dd ...
3
votes
1answer
1k views

usb kernel module does not load on demand but works fine with insmod and modprobe from the shell

I have a USB Linux Kernel module that compiles and builds. Running insmod loads my module and dmseg and tail -f /var/log/debug shows me it works as expected. Running depmod -a then modprobe from the ...
2
votes
2answers
521 views

How to automatically mount an USB device on plugin-time on an already running system?

I know how to use /etc/fstab to automatically mount devices on boot or when doing sudo mount -a, which works perfectly fine. For example, here is my current line for my device UUID=B864-497A ...
2
votes
2answers
184 views

Distribution recommendation for USB flash disks

I'm a linux system administrator and dealing with big iron distributions like debian and redhat for a long time. I need a recommendation for a small distribution which I can install to USB flash disk. ...
1
vote
0answers
890 views

All USB ports detected as USB 1.0, not USB 2.0

My Ubuntu 13.10 server (Upgraded from 11.10) has always had an issue with mounting USB 2.0 devices. Despite legacy being turned off on the motherboard bios, the output of lsusb -t always shows the ...
8
votes
3answers
38k views

How to install Debian from USB? (Using full size image not netinstall)

I learned of a way to install Debian from USB using the netinstall image, which is fine. However it means I have to spend hours and hours downloading packages to do the install. Is there a way I can ...
5
votes
2answers
4k views

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 | ...
4
votes
2answers
292 views

USB set to /dev/sda instead of /dev/sdb

I've been trying to use a kickstart file to guide the Red Hat installer (RHEL6.5) without user intervention. It correctly looks for the kickstart file in /dev/sdb/fs.cfg, but because the USB is ...
3
votes
2answers
174 views

How does an emulated keyboard work?

I have read that some USB devices emulate a keyboard and the information these devices send will be as if the information was typed on a keyboard. For example: a magnetic card reader can use an ...
3
votes
1answer
812 views

Updating Linux Mint Without Internet Access

I can't afford to have an internet connection at home. Is there any way of figuring out what update I need for my system so that I can download the same onto my USB stick from the office internet ...
3
votes
1answer
12k views

How do I access a USB serial port without an entry in /dev?

I have a USB to serial adapter based on the SiLabs CP2101 chipset. I'm trying to use it with Debian 5.0 Lenny (armel architecture). I seem to be able to get the proper kernel module to recognize the ...
2
votes
2answers
948 views

USB Driver Compilation Error

I'm currently trying to compile a Linux USB UART driver, which is provided here: http://www.exar.com/connectivity/uart-and-bridging-solutions/usb-uarts/xr21v1410 The driver consists of 2 header files ...
2
votes
1answer
2k views

Restart USB mouse driver?

Sometimes, after some event that I can't determine, my USB mouse gets stuttery - like the refresh rate drops down to about 5-10Hz. It still works fine other than that, but it's incredibly annoying, ...
2
votes
1answer
1k views

Linux 2.6.32, busybox, Identify physical SD device

I have a USB card reader with two SD card interfaces and two USB ports (so it can also act as a USB hub) all on the same device. I am running an embedded Linux device that is unsupervised in its use ...
1
vote
1answer
347 views

Udev rules involving X11 don't run on startup

I have some udev rules written to run when I connect certain usb devices. For example, I change pointer velocity for certain mice, and change xmodmaps for particular keyboards. The scripts work well ...
1
vote
2answers
1k views

Unable to connect INTEX 3.5G (aka 普创E003) Wireless USB modem in Ubuntu 12.04 LTS

Can anyone help me out on connecting INTEX 3.5G 7.2 Mbps (aka 普创E003) Wireless USB modem in Ubuntu? Initially it is recognized as a storage device and the modprobe cmd does not create any impact on ...
1
vote
0answers
255 views

How to load kernel module in Chromium OS?

I've installed the Chromium Vanilla by Hexxeh to a USB drive, but I can't use it on my computer because it lacks the carl9170 driver, which is needed by my adapter (a D-Link DWA-160.) I've managed to ...
0
votes
1answer
791 views

How to use one distro's live CD to install another distro?

I'm trying to install Mint Linux to a USB stick, but the Mint live CD doesn't fit on a normal CD and I don't have any DVDs available. The Ubuntu live CD does fit on a CD, so I want to use the Ubuntu ...
0
votes
0answers
343 views

How do you access internet in RHEL 5 using Android smartphone USB LAN? [duplicate]

How do you access the internet in RHEL 5 using Android smartphone USB LAN?