The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
5 views

How to disable creating device nodes of ldm disks in ubuntu?

Yesterday I've installed ubuntu 14.04 to my mother's home computer. That's really good deal, but she uses windows too to work with documents. This documents is placed on the Windows dynamic disks in ...
2
votes
2answers
2k views

How to check if a udev rule fired?

I am trying to acquaint myself with udev, under Ubuntu 13.10. Here is my first simple 95.usbbackup.rules rule: ACTION=="add", SUBSYSTEMS="usb", RUN+="/usr/local/bin/my_backup.sh" and here is the ...
0
votes
1answer
73 views

devices inside /dev - are their naming persistent by default?

Can i check if devices like sda , sdb naming in /dev/ are persistent by default or there are some udev rules in place to create persistent naming for them ? Does udev itself create device naming ...
0
votes
0answers
26 views

Unable to initialize libusb: -99 und Microzed-Board running Linux

I have a microzed ARM-Board running a custom Image based on Debian Jessie with a 3.17 kernel. I need to use a wifi-stick with the board (I currently have an EDIMAX EW-7711UAn, but I guess i could use ...
4
votes
1answer
151 views

Passing udev environment variables to systemd service execution

I am migrating an existing udev rule that bound to the change action of a block device and runs a given script. SUBSYSTEM=="block", ENV{DEVNAME}=="/dev/sr0", ACTION=="change", ...
2
votes
0answers
86 views

udev rule script “xinput --list” differs in terminal versus log

I'm trying to automate a Huion tablet calibration without much success. I have this output from xinput --list in a normal terminal: ⎡ Virtual core pointer id=2 [master ...
1
vote
1answer
167 views

udev pci device rule is not working

I have a PCI device which have an own drivers (not integrated in Linux kernel). I've collected device information using udevadm. udevadm info -a -p /sys/devices/pci0000:00/0000:00:1e.0/0000:0d:02.0 ...
3
votes
2answers
2k views

udev rules ignore_device

I'm on Fedora 18. In /etc/udev/rules.d, I've added new rule (70-stm32.rules) with following content: SUBSYSTEM=="block", ENV{ID_MODEL}=="STM32_STLink", OPTIONS=="ignore_device" Then restarted udev: ...
2
votes
1answer
291 views

udev rule with bInterfaceNumber doesn't work

I'm trying to use udev to give relevant names a USB-serial device but I'm having now luck. # lsusb -d 04e2:1412 -v Bus 004 Device 028: ID 04e2:1412 Exar Corp. Device Descriptor: ...
2
votes
0answers
31 views

udev rule to auto-execute script

I want to create a udev rule to execute when my headset gets plugged in. Therefore I followed this Tutorial, but my rule doesn't seem to work. The output of udevadm monitor --environment | fgrep ...
1
vote
1answer
422 views

Howto set udev rule to disable intel_pstate turbo on linux?

I m looking to make a udev rule that will basically do: echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo In order to disable the turbo, how can I do it ? I've never made udev rule and I am ...
0
votes
0answers
68 views

Trigger lock/unlock XFCE session on udev event

I'm trying to write simple script that will unlock my XFCE session (xubuntu) when I will connect my phone via usb and vice-versa -> lock when phone will be disconnected. So far I managed to write new ...
0
votes
1answer
316 views

/dev/xvda1 full , though there is no temporary files

I have AWS ec2 micro instance, suddenly it shows memory full. I have checked the folder using df -hcommand. The result is displayed below. Filesystem Size Used Avail Use% Mounted on /dev/xvda1 ...
3
votes
2answers
719 views

White list for USB flash using udev

I want to create something like "white list" for USB flash drives. I mean "deny everything that is not allowed". I know that I should use udev rules: Add to /etc/udev/rules.d/ a rule to deny every ...
0
votes
1answer
30 views

How can I get the ID of an online disk in a ZFS pool?

I rotate physical disks in and out of my mirrored ZFS zpool (using ZoL) to use for offsite backups; to help streamline the process I've been using udev rules to respond to the drives being swapped. ...
0
votes
0answers
105 views

udev rule to rename usb network interface don't work on startup

I have an embedded system that has a smsc9512 (USB 2 port hub with Ethernet converter) running a distribution generated with poky and kernel 3.0.20. I need to have a fixed name for the interface and ...
0
votes
1answer
116 views

udev on Ubuntu not working for USB plug in

I am trying to do a "simple" task, run a script /usr/local/bin/USBTesting.sh when I plug in a specific USB device. I created /lib/udev/rules.d/99-USBTesting.rules ...
1
vote
1answer
26 views

Persistent mapping of hci names

I want a stable mapping between bluetooth hardware and hciX under /sys/class/bluetooth, similar to how wlanX maps to wifi chips. I wrote a udev rule. The rule is matching correctly by ...
1
vote
1answer
108 views

Output of lsusb -v for GoPro / Sony AS-30

Someone here who has Linux knowledge and a GoPro / Sony Action camera (like AS-30) who can help me with the output of running lsusb with the camera connected via USB to the computer: lsusb -d ...
0
votes
1answer
1k views

Can't automount USB stick with Fedora 21+systemd-udev, could with Gentoo on same machine

In Gentoo I had created a small script that was called by udev and allowed me to mount an USB device, identified by its serial number, to any mount point I chose. Basically, ...
0
votes
1answer
259 views

Mac OS X equivalent of “udevadm info -a -n /dev/ttyACM0”

What is the Mac OS X equivalent of the Linux command udevadm info /dev/ttyACM0? I am attempting get the USB information about a TTY device (/dev/tty.whatever) in a script. UPDATE: I'm looking for ...
6
votes
1answer
6k views

systemd-udevd[381]: failed to execute '/lib/udev/socket:@/org/fre edesktop/hal/udev_event'

After upgrading to ubuntu 14.04 I see this in dmesg [ 1.538887] systemd-udevd[105]: starting version 204 [ 19.074098] systemd-udevd[310]: starting version 204 [ 19.271342] systemd-udevd[381]: ...
0
votes
0answers
29 views

Fix Partition Table

I was recently installing manjaro on my hard drive. I set up the partition table how I wanted, wrote it, and proceeded to assigning partitions portion of the installer. To my surprise, I was presented ...
1
vote
1answer
117 views

How to start a systemd service when a DVD is inserted?

I'm trying to write a simple systemd service that gets started when I insert a DVD into my DVD-ROM drive. However, my service never starts even though I see the relevant SYSTEMD_WANTS while running ...
1
vote
0answers
86 views

NTFS-3G unmounts USB drive as soon as it is mounted

I have created an udev rule to automount a USB hard-disk when I plug it in, but the drive doesn't appear as mounted. In /var/log/messages, I can see Dec 27 09:11:02 smug ntfs-3g[6043]: Version ...
0
votes
1answer
39 views

script to disallow mounting of certain idVendor

I'm trying to write a script to disallow mounting of certain usb thumb drive's brand like silicon-power my thought was to use tail -f /var/log/messages and grep it to idVendor and blocking it upon ...
0
votes
1answer
92 views

Can I tell what udev rule a device is using?

I'd like to edit the way a device is created on my Ubuntu 14.10 box. Device: USB UART File: /dev/ttyUSB0 Is there any way to find out what udev rule created this? Or do I just write a new one ...
1
vote
0answers
41 views

Replace kernel extnesion module (driver) in max osx using udev rule

I'm doing development on an embedded device using an FTDI Single RS232 chip for usb communications. I can communicate with the device just fine using the pylibftdi and libftdi libraries over libusb, ...
0
votes
1answer
45 views

How to identify which USB devices are mapped to what network interface names?

When I plug in an USB network, it gets assigned a network name, like wlan1 by udev. Is there a way how to determine the mapping, without going through udev files, like ...
0
votes
1answer
536 views

How to configure network interface names booting from read only medium?

in a Ubuntu 12.04 system, we'd like to configure the names of the (physical) network interfaces (such as eth0, eth1, ...) using udev rules such as those generated in ...
0
votes
0answers
154 views

How to force udev to link /dev/ttyUSB and not /bus/usb/XXX/YYY?

I have an two arduinos connected to USB, and simple udev rule to make a simlinks: SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTR{serial}=="SERIAL", GROUP="plugdev", ...
2
votes
2answers
899 views

Use UUID in udev rules and mount usb drive on /media/$UUID

I want to mount the usb drive in /media based on the UUID of the disk. How can I use the UUID of a usb drive in a udev rules file and what is a udev rule to mount the usb drive with the UUID number ...
1
vote
1answer
72 views

Consistent /dev names for USB hard drive and card reader

I have a Raspberry Pi (but that should be immaterial) to which, normally, connect: a USB hard drive a SD card adapter. I've been getting inconsistent device names. Sometimes the hard drive shows ...
0
votes
1answer
106 views

udev rule not working for action “add”

I have the following udev rule (/etc/udev/rules.d/97-automounter.rules), which works for the action "remove" but does not work for the action "add". The script for the action "add" does work if run ...
0
votes
0answers
117 views

Running actions on insert & eject of a floppy disk over USB

(I've posted this in SU, not RaspberyPi because I don't believe the system hardware has as much impact as the OS in this question) I have a USB floppy drive inserted into a Raspberry Pi running ...
0
votes
0answers
116 views

how to retrieve usb vendor id property

I compiled and installed udev to my customized linux system with the following configuration. --build=$(HostTuple) \ --host=$(TargetTuple) \ --disable-introspection \ --disable-gudev \ ...
1
vote
1answer
46 views

Control USB devices with udev and custom program

I have a script at /tmp/udev_test.py which gets executed with every USB device attached or detached, using this rule: SUBSYSTEM=="usb", RUN+="/tmp/udev_test.py" The script runs, and saves its ...
0
votes
1answer
67 views

Failing to load a module on udev event

I have a pretty simple udev rule which is executed when a USB is plugged into my Debian machine: SUBSYSTEMS=="usb", KERNEL=="sd?", ACTION=="add", RUN+="/usr/local/bin/USB/t.sh \ %k" My t.sh is also ...
0
votes
1answer
28 views

How to know where in /dev/ is a UBS keyboard loaded?

To be precise, when you plug in a USB storage device, it is loaded in sd something, but where is a usb keyboard loaded in /dev/?
0
votes
0answers
31 views

Udev rule not working on Debian.

I can detect and mount my USB drive on my Debian VM machine. And the first post here works on my Ubuntu machine. Should not it work on Debian too? It doesn't ofcourse. Why is that?
0
votes
1answer
326 views

NVIDIA GTX650 Ti 1 GB, nvidia-drivers, boot udev fail on gentoo

I have an Asus H97 Plus motherboard with i7 4790 proc, 16gb ram, samsung ssd, western digital hdd and a Gigabyte nVidia GTX650 Ti 1GB videocard. I have just installed a Gentoo on it (kernel: ...
0
votes
1answer
105 views

Rename USB network interface based on location

I'm managing a group of laptops and I'd like each of them to assign the same name to their USB network interface for easy management. Most of them assign enp0s20u1 and I've written my management ...
0
votes
1answer
159 views

Udev node /dev/sda created on boot even when drive is disconnected

Edit: I'd like to simplify the question a bit: The main issue is this: /dev/sda is being created on boot whether my USB drive is inserted or not. If I manually rm /dev/sda, udev works correctly ...
1
vote
1answer
59 views

udev rule to make certain ports always correspond to certain devices

Basically my problem is that I am on a server which constantly switches around hdd's. What I want to achieve is have having devices tied to the physical ports on the hardware. like /dev/sda is port 0 ...
3
votes
2answers
175 views

Use USB numeric keypad with phone-like typing?

I have USB numeric keypad like this: I need to write chars (A to Z) on this keyboard, and so my idea is to use it like on old cell phone: If I press 1x 2 it writes A, 2x 2 - B, 4x 9 - Z, etc. ...
24
votes
2answers
1k views

What problems does udev actually solve?

For that matter, what exactly was wrong with a bunch of static files in /dev? It's apparently unsatisfactory enough for developers to have reinvented this wheel by my count 3 times now (devfs -> udev ...
0
votes
1answer
567 views

Disable device node using udev (/dev/sr0)

I am trying to disable udev from generating /dev/sr0 device (my cdrom) and Im trying to write udev rules. I added a file 10-cd-trial.rules in /etc/udev/rules.d and /lib/udev/rules.d, the contents ...
2
votes
2answers
1k views

Setting udev rules in Linux Mint 13

What I'm trying to do is set up a udev rule for my HP headphones (usb) with the aid of several tutorials out there. Created a file ( 90-local.rules ) in /etc/udev/rules.d and added the following: ...
0
votes
0answers
80 views

Login from the command line

OS: Linux, Mint. I want to have a system where I can insert a flashdrive into a computer, and using the Udev rules, have the system log in a user account. I can do the Udev part, but what command ...
0
votes
1answer
92 views

better to mount storage using udev or fstab?

I could write rules to mount storage devices using fstab or udev. Obviously the syntax is different, and unless I'm mistaken, udev is more flexible and has access to far more information than fstab. ...