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

learn more… | top users | synonyms

5
votes
6answers
7k 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 ...
5
votes
4answers
28k views

How to create a bootable USB stick with Debian Squeeze

Using Ubuntu, I want to install Debian Squeeze on my PC with a bootable USB stick. I found this tutorial: Plug the usb key in order to find the device location: $ df -k /dev/sdb ...
5
votes
1answer
1k views

Writing raw images safely to USB sticks

Trying lots of different linux, on all kinds of hardware I find my self typing commands like this quite often: sudo dd if=xubuntu-13.10-desktop-amd64.iso of=/dev/sdc bs=10240 Needless to say, ...
5
votes
1answer
5k 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 ...
5
votes
3answers
925 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
333 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
3answers
2k 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
915 views

How does libusb access kernel stuff?

From what I understand: Generally speaking, a driver runs in kernel space and can be called from user space. Only code in kernel space can call usb low level things / ioctl libusb is a library, so ...
5
votes
1answer
2k views

Query USB current

How can I obtain information about the amount of current negotiated by a device attached to a USB port? I am looking for information similar to this presented by OS X in terms of current available ...
5
votes
3answers
4k 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
3answers
5k views

How to create a bootable Linux installation USB from an ISO in OS X?

I downloaded the ISO for Debian's net installation to a computer running OS X. I want to put the data from the ISO onto a USB, so that I can install Debian on another laptop (not an Apple laptop). ...
5
votes
3answers
5k 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
1k 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
2answers
8k 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 ...
5
votes
2answers
3k views

how to disable USB devices based on vendor id in Linux environment?

I want to disable usb devices based on vendor id in Linux environment. I want to allow only specific USB devices, based on vendor id.
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 ...
5
votes
1answer
1k views

How to be notified when a USB device was plugged in?

My system has to auto-mount USB devices; how can I be notified when a USB device is plugged in? Where can I read more about this subject? I would like to handle this problem via C or a shell script. ...
5
votes
1answer
5k views

What is the easiest way to boot Linux from a USB drive on Intel Mac?

I would like to boot an Intel Mac from Linux on an external USB drive. Right now, I have install rEFIt and use grub on the internal hard disc to boot the external drive. That seems pretty complicated. ...
5
votes
1answer
2k views

USB 3.0 ports not working

I have a Sager NP8130 notebook with two USB 3.0 ports which I cannot get to work in any linux distros I've tried. The distros I've tried so far are the latest 64-bit (where available) versions of the ...
5
votes
1answer
697 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
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 ...
5
votes
1answer
287 views

Can I make a USB port on my Linux computer look like a mass storage device?

I'm running Kubuntu 12.04 on my PC. I want to make one USB port on my computer appear as if it is a USB mass storage device to other devices. In other words, something connected to this USB port will ...
5
votes
5answers
16k views

Ubuntu 13.04 does not recognize USB drive

Using Ubuntu 13.04 (with Gnome 3), my new USB stick (details see dmesg/lsusb) doesn't show up automatically. Situation: The drive does not show up at fdisk -l The drive does appear when running ...
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
1k views

Samson Meteor Mic under Linux/ALSA

Has anybody gotten a Samson Meteor Mic working under Linux/ALSA? I tried to google it but I found no mention of Samson Meteor under Linux at all. Kernel/ALSA/Audacity see the device. Unfortunately I ...
5
votes
3answers
3k views

USB performance/traffic monitor?

First of all, I found a similar question but it doesn't really solve my problem. I am trying to discover if the USB bus for a device I am using is the bottleneck in my program. How can I monitor a ...
5
votes
1answer
4k 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
930 views

Configure fstab for a bootable usb

I'm trying to clone a partition and make it a bootable usb. I've made two ext3 partitions (just like the installation I'm cloning). The first one is small and has grub/ and the kernel. The second ...
5
votes
1answer
2k 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
338 views

UEFI boot Fedora from USB 2.0 on 3.0 port (l75d-a7280)

I'm trying to make a bootable usb in ubuntu for fedora, but my settings are not working. I formatted the USB with FAT & Ext4, MBR, and Legacy BIOS bootable. My BIOS allows the USB 3.0 controller ...
5
votes
0answers
3k views

Getting my Smart Card reader to work on Linux

I got a Smart Card reader, that I ripped from a Laptop the other day. It is an internal Smart Card reader, though it uses USB, so making a cable for it, was no problem. It seems it's recognized by ...
4
votes
3answers
4k 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
3answers
1k views

USB to VGA on Linux

I've been offered a Macbook Pro mid-2012. Although it wouldn't have been my first choice it's still a great piece of hardware, only problem for me is that it only has a single Thunderbolt port ...
4
votes
2answers
1k views

How can I trigger an event in shell script when an USB device is removed?

I need to do some actions when a specific USB device is removed/added. I need a fast response on the order of milli-seconds. How can I do this in a shell script?
4
votes
3answers
2k 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
2answers
9k 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
494 views

Send a specific signal to an external USB keyboard? Or, how do I fix fdopen()?

Some background: I'm trying to make the caps lock light on an external keyboard light up on-command when I run a command from the command line. Ideally it would be scriptable, so that I can use it for ...
4
votes
2answers
11k 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 ...
4
votes
2answers
8k views

How can I enable access to USB devices within VirtualBox guests?

I cannot see any USB devices within my VirtualBox guest VMs from my host. How do I enable access for my guest VMs? ...
4
votes
2answers
5k views

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?
4
votes
3answers
2k views

How do I share an internet connection through USB?

I have two Linux boxes. One is running KNOPPIX and the other Ubuntu. I have only one wifi dongle between them, and only one of them has an Ethernet port. They both have free USB ports however. I ...
4
votes
2answers
737 views

Can I easily remount an external USB drive without unplugging it?

Sometimes, a USB drive (or equivalent) that I have plugged in to my machine gets unmounted. Now, I know I could unplug it and plug it back in to remount it, but is it possible to easily do it from ...
4
votes
1answer
840 views

How to dump USB traffic?

I got an USB gamepad and I would like to see and inspect the signals and commands that this peripherals is actually sending to my PC/kernel: how I can do that ? I was assuming that something like ...
4
votes
2answers
3k 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 ...
4
votes
2answers
534 views

Is it normal that a restart is required to mount USB after a kernel upgrade?

Sometimes I see the Linux kernel being mentioned in the list of upgrades, when running pacman -Syu (updating my packages in Arch Linux). Whenever this happens, after installation of the packages, I ...
4
votes
2answers
7k 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

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

Can't create a bootable (live) usb flash for arch linux

I created a bootable usb from which I was going to install Arch. I did this the following way: sudo dd if=/path_to_arch_.iso of=/dev/sdX But when I tried to boot from this usb flash, I failed. ...
4
votes
1answer
2k 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 ...