Universal Serial Bus (USB) establishes a connection between devices and a host computer.
20
votes
4answers
9k 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 ...
17
votes
3answers
9k 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.
...
16
votes
1answer
5k 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 ...
14
votes
2answers
4k 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 ...
10
votes
2answers
5k 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
1answer
6k 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 ...
9
votes
3answers
881 views
Fake serial number of USB device
I have a mobile phone connected to my PC via USB.
When viewing the device info using
sudo udevadm info --attribute-walk
the product and vendor id's show up fine, but there is no ATTR{serial}. An ...
8
votes
4answers
906 views
GRUB on USB Drive — adding OSes
Some Background:
Coming from a largely Windows background (though I'm familiar with Ubuntu, etc.) and using a Windows 7 machine to complete this task
Have gotten GRUB installed successfully to the ...
8
votes
3answers
2k views
Mount printers at /dev/usb and still use CUPS
Due to a new version of CUPS, I suddenly lost the direct path to my printers that was previously available under /dev/usb/lpXXX. I used this to print directly from the command line. echo "test" > ...
7
votes
1answer
1k views
Creating a bootable Linux installation USB without unetbootin
I want to install Scientific Linux from USB. I don't know why unetbootin doesn't work but I am not curious to find out: after all, I transferred to Linux from Windows to see and learn the underlying ...
7
votes
5answers
11k views
Create a Bootable (UEF GRUB) USB for Ubuntu & Windows 7 Install
I want to create a Bootable EFI USB to install Ubuntu & Windows 7 (maybe with utilities like PartedMagic). I did that using MultiSystem previously. However, I am using GPT and Windows install ...
7
votes
4answers
2k 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 ...
6
votes
3answers
21k 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 ...
6
votes
2answers
813 views
How can I hide messages of udev?
When I plug in a usbhub (7 sticks in) udev displays a lot of messages in console.
Can I hide these messages or send them to /dev/null?
6
votes
3answers
2k 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 ...
6
votes
3answers
1k views
How can I switch to my USB headset automagically when it's plugged in?
I'm running Funtoo Linux, a Gentoo derivative. My two new Plantronics USB headsets (one wired, one wireless) work nicely. I plug one in, ALSA notices it, and if I manually set an application to use ...
6
votes
1answer
2k 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 ...
6
votes
2answers
762 views
Auto-run script when Wifi card is plugged in (udev)
I've been trying to use udev to make a Debian system run a bash script when a wireless card is connected.
So far I created this file /etc/udev/rules.d/wifi-detect.rules:
ACTION=="add", ...
6
votes
0answers
256 views
USB audio only outputs white noise
I am running OpenBSD/i386 5.1 on a 5 year old laptop. The speakers and headphone port work, but the headphone port is a little loose so I am trying to install an external USB sound card (Fiio E17 USB ...
5
votes
3answers
397 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 ...
5
votes
3answers
696 views
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 ...
5
votes
4answers
267 views
Is it possible to use pendrive as key for Linux system
I want to give high security for my linux box.
So i planed to use my pen drive as key for my linux box.
How can i do it ?
5
votes
1answer
2k 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 ...
5
votes
3answers
2k views
Mount USB (FAT) in Gentoo
Can somebody show me how to make Gentoo mount my USB? This is what I got when trying mount /dev/sdb1 /mnt:
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage ...
5
votes
1answer
744 views
Installing FreeBSD from USB-Stick boots but later can't find the USB-Stick
When trying to install FreeBSD 8.2 from USB memory stick the kernel boots from the USB-Stick and the installer menus work and let me partition and everything.
However when it comes to actually ...
5
votes
1answer
631 views
What would cause “crossover” between two USB2 webcams when using motion?
I am using the Motion package for linux to act as a security system with two Microsoft LifeCam HD-5000 webcams. In general it's working very well but I'm experiencing a weird issue. Every now and then ...
5
votes
5answers
2k views
How should I configure grub for booting linux kernel from a USB hard drive?
I have a laptop hard drive in an external enclosure which I use as a large pendrive. For an added twist, I have installed Linux on it, so I can boot any machine with my distribution of choice (e.g. ...
5
votes
2answers
3k 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?
5
votes
1answer
602 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.
5
votes
1answer
531 views
How to understand Hot plugin mechanism for a USB in an Android stack?
I want to know where I could get some material to study USB hot plug-in mechanism in Android Stack. I tried googling many a times, but din't find anything useful.
5
votes
2answers
1k views
Creating bootable usb stick with NetBSD installer on Linux
How can I create bootable usb stick with NetBSD installer on Linux?
I tried to use UNetBootin, but on download list there is only 4.0 version and when I select my ISO with 5.1 version it doesn't work ...
5
votes
3answers
4k 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
991 views
Unable to boot Chromium OS from USB drive
I have tried both my own builds of Chromium OS and Hexxeh's daily Vanilla builds, and neither work. I copy them over to my flash drive, but when I try to boot from it, nothing happens except my ...
5
votes
1answer
1k views
Problem installing Debian wheezy from USB stick
I try to install Debian wheezy on my IBM ThinkPad X40 2372-CTO via USB stick. First i do zcat boot.img.gz > /dev/sdb with this image. After that i do cp debian-*-netinst.iso /mnt/sdb with this ...
5
votes
1answer
1k views
Support for usb 3.0?
I could not seem to find the question here but I was wondering what experience if any users have had with USB 3.0?
My asus p5x58d has usb 3 on it but I have yet to try it out and also do not know ...
4
votes
3answers
1k views
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
1answer
2k views
List USB ports in linux
I want to list usb ports in linux and then send a message to the printer connected to it. That message is sensed by the printer to open the cash drawer. I know I can use echo - e and a port name, but ...
4
votes
2answers
3k views
ttyUSB0 permission changes after restart
I'm trying to install a device. I plug in the device which creates a ttyUSB0 file. When I open it in the program I need it for, it says the permission is denied. I type in terminal
sudo chmod 666 ...
4
votes
3answers
3k views
Disable USB power for USB controlled power strip
I have a USB controlled power strip that has a single usb port.
If my computer is turned on and connected via usb to the power strip, the power strip will provide electricity to all the sockets. I ...
4
votes
3answers
71 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 ...
4
votes
1answer
156 views
How to get UUID for a USB drive?
I want to mount my USB to a mount point which holds the UUID name. But I don't know how to express this in a command line!
Can someone help me how to do it?
I have searched and found that I have to ...
4
votes
2answers
4k views
Difficulty with mobile broadband device being recognized (registered as CD ROM)
I am running Ubuntu 10.04 LTS on a Samsung n150 netbook. I have bought a vodafone pay-as-you-go mobile broadband dongle. It is a Huawei device.
I have *usb_modeswitch* installed. I installed betavine ...
4
votes
3answers
2k 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 ...
4
votes
1answer
508 views
How do I create a USB image with a partition table?
I want to create an image of some directory tree that is writable directly to an USB drive, just like the images of many linux distributions. For example, with openSUSE you can download an ISO image ...
4
votes
1answer
2k views
Is my USB 2.0 device running at full speed?
How can I tell if my USB flash drive is running at full USB 2.0 speed? Currently I'd just like to verify that the drive is plugged into a 480 Mbps port, but in the past I've been unsure if a given ...
4
votes
4answers
3k views
Determine the USB port to which my Mobile is connected?
I tried the following commands, but couldn't find the name of USB port
$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 ...
4
votes
2answers
1k views
udev rules don't appear to be working
I'm running Arch Linux on my server, and I need to let users of the group usb access my weather station.
Here's my rule:
/etc/udev/rules.d/usb-70.rules
SYSFS {idVendor} == "1941", SYSFS {idProduct} ...
4
votes
2answers
483 views
Does the filesystem influence flash drive speed?
I'm currently filling up an empty 16GB flash drive which gives me a lot of time for imponderables. It's formatted as fat32 or whatever it came with (and I'll probably leave it that way for ease of ...
4
votes
1answer
772 views
Linux support for new Sony Vaio Z external graphics card?
The new Sony Vaio Z series laptop comes with a media dock that has a USB connection (Light Peak) to an external AMD Radeon graphics card. What is the support for devices like this in Linux?
4
votes
1answer
376 views
How to make a system lock when the USB pendrive with authentication key is removed?
Say, I have USB drive authentication up and working. So far, so hoopy. But now I want to take the next step, which is locking the machine when I eject the medium. I know there is udev I can script, ...