Udev is a Linux process that manages device file entries under /dev

learn more… | top users | synonyms

0
votes
0answers
17 views

udev rule not working with su [duplicate]

I want to run a simple script when I plug in a monitor, and here is my rule: KERNEL=="card0", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/user/.Xauthority", RUN+="/home/user/auto.sh" ...
1
vote
0answers
20 views

/dev/disk/by-id creating wrong symlinks for harddrive

I'm running into an interesting problem where on reboots and power cycles, my harddrives will occasionally be given the wrong symlink in /dev/disk/by-id. For example, when I issue ls /dev/disk/by-id I ...
1
vote
0answers
7 views

System doesn't see HDMI attached tv&receiver until reboot

When my system starts and receiver with tv are disabled during boot, then system will not see them even if later I will replug hdmi cable. To make receiver/tv visible to the system, I must leave them ...
1
vote
1answer
23 views

arch linux recognizes the partitions and hard disks wrongly

My arch Linux system does not recognize neither the partition nor the hard disk in which it is installed. it is installed on /dev/sdb1 but it recognizes that as /dev/sdc1 and the initialization goes ...
2
votes
1answer
39 views

Get ID and Mounted location of an USB

I need to find a way of retrieving the ID and Mounted Location for USB devices. I've found two commands that gives me what i want, but i haven't find how to associate them.. rsm@matrice:~$ lsusb Bus ...
2
votes
0answers
19 views

How do I get ata-style IDs in /dev/disk/by-id to work for USB disks?

I have USB drive dock that I'm plugging SATA drives into. The way they show up in /dev/disk/by-id seems to be dependent on whether the drive has a partition table (usb if not, ata if yes). This makes ...
0
votes
0answers
20 views

How to modify rights automatically when I plug a usb device ?

I am running CentOS 6.6. I need to get specific rights (666) on /dev/bus/usb/... when I plug a specifc usb board (Digilent FPGA board). Otherwise my software complains about LIBSUB_ERROR_ACCESS. It ...
2
votes
1answer
21 views

create several /dev/xconsole files automatically upon boot

I understand from my previous question that the /dev/xconsole file can be created using mkfifo. On my system (Debian Wheezy), /dev/xconsole gets created automatically. I am wondering who creates it ...
2
votes
1answer
21 views

stop an external hard disk from being in group floppy

I have an external hard-disk, connected by usb. Because it is external, the /dev file for it is in group floppy. However I use it as if it is internal. I also sometimes format sd cards and other usb ...
1
vote
0answers
21 views

UDEV rule to run partprobe on loop device

I use udisks2 to mount raw image over a loop device: udisksctl -f image.img --no-user-interaction Policykit is configured, so no errors here. For some reason kernel does not want to re-read ...
2
votes
1answer
39 views

How to disable USB devices based on their vendor ID on GNU/Linux?

In that question someone wanted a blacklist for all USB devices, and then only allow specific devices. In this question, we want to accept all USB devices, but prevent the driver (e.g. cdc_acm) from ...
1
vote
0answers
55 views

Udev running hibernation script

I have this udev rule that launches a script when the battery level is 5% or below: $ cat /etc/udev/rules.d/90-lowbat.rules: SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ...
1
vote
0answers
18 views

How to disable USB Keyboard at run time from udev.c not from udev rules

I want to disable my USB keyboard at boot time (in some scenarios) without modifying udev rules, as I know udev rules only works when a device is attached or detached from the target. Is there any ...
1
vote
0answers
53 views

How to populate /etc/network/interfaces automatically

I am trying to populate /etc/network/interfaces with a dhcp config for all interfaces at the first system boot (Debian 7.6 server). I modified the script in : /lib/udev/write_net_rules by adding: ...
1
vote
0answers
18 views

Unable to unmount a partition - respawned by udev

I have set up the udev rules to automatically mount/unmount the removable devices with udev rules based on this answer (have not enough reputation to comment there). The setup works fine, but when I ...
1
vote
1answer
50 views

Auto-hibernate with udev rule

I'm using Debian Jessie with systemd. In the past I've used an acpid script that let's my computer hibernate when the battery is 5% or below. In an attempt to make a replacement for that I've made ...
10
votes
2answers
549 views

Are there alternatives to using `udev`?

While I understand the greatness of udev and appreciate the developers' effort, I was simply wondering if there is an alternative to it. For instance, I might imagine there should be a way to make ...
0
votes
0answers
16 views

How do I get a udev rule that used to work in older versions to work in Linux Mint 17 [duplicate]

I've been using this udev rule for probably ten years: ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", NAME="FTDI/$attr{serial}", MODE="666" I'm sure it's typed correctly as every time I install ...
2
votes
2answers
46 views

Is there a udev attribute/something that determines whether a device is a USB drive or not?

I am trying to create a UDEV rule to match/allow the use of USB devices. However, there is a twist. I want to be able to use only USB mass storage. Is there a unique UDEV parameter that can be used ...
1
vote
0answers
33 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 ...
1
vote
0answers
113 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 - explained below - works on my Ubuntu machine. Should not it work on Debian too? It doesn't of course. Why is ...
0
votes
0answers
44 views

Ubuntu 14.04 HDMI UDev Script

I have tried multiple variations to this script but I cannot get it to work. The UDEV Rule fires the script and the script exectutes but simply does not change the audio profile. If I run the script ...
1
vote
0answers
16 views

character device file (rtai_shm) disappears under runlevel=5 in fedora9 (exists when runlevel=3)

I am trying to run Realtime (RTAI) on my Linux Fedora 9 machine. For that, it is needed to have a character device file, named rtai_shm, in /dev, that takes care of shared memory. I have made this ...
1
vote
2answers
99 views

Arch, Ubuntu: So what's the deal with libudev.so.0?

I'm interested in building Linux desktop apps with Web front-end technologies. Both platforms I've tried -- Chromium Embedded Framework/CEFPython, and Awesomium, seem to have a dependency on ...
1
vote
0answers
96 views

udev rules fail to run a script on addition of usb device

Here is a simple rule I created in /etc/udev/rules.d/21-persistent-local.rules for my Seagate 500 GB expansion drive which uses a USB interface on a Debian machine running inside a VM. ...
4
votes
1answer
36 views

how to write a udev rule to remove a tag?

Is it possible to write a new udev rule that undoes TAG+="uaccess" (removes the uaccess tag) without undoing any of the other tags on a device? If so, how? (I have a device that should be opened by ...
2
votes
1answer
49 views

Udev RUN rule to run touch has no effect

I've created the file bellow $ cat /etc/udev/rules.d/10-tuned.rules SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_STATUS}=="Charging", RUN+="touch /home/fx/charg" SUBSYSTEM=="power_supply", ...
2
votes
2answers
63 views

mount is not executed when called by udev

I tried to create some udev rules to mount and unmount my USB flash drives; the rules for the moment are very simple: ACTION=="add",KERNEL=="sd[b-z]",RUN+="/root/scripts/plug_flash_drive.sh %k" ...
4
votes
3answers
659 views

Get device node by major/minor numbers pair

Each device node under /dev has its own major/minor number pair. I know that we can retrieve this pair of numbers from the device node by means of stat, like this: stat -c 'major: %t minor: %T' ...
2
votes
0answers
99 views

persistent network interface naming and kvm

I wonder why my network interface is still named eth0 in my kvm guests. udevadm just outputs # udevadm test-builtin net_id /sys/class/net/eth0 2> /dev/null ID_NET_NAME_MAC=enxc2184ae7ab3f I ...
1
vote
1answer
52 views

udev rules for PS/2 and game port don't match on attr, only env

When I build rules for either a PS/2 or game port connected device, udev will never match on attributes, but it will on environment values. The reason why this is an issue can be seen in the output ...
2
votes
1answer
131 views

systemd mount volume using device symlink

I'm trying to have systemd mount a volume by symlink. Unfortunately when I try it times out waiting for the systemd device to show up. # systemctl start mnt-ephemeral0.mount A dependency job for ...
4
votes
1answer
78 views

Is nameif deprecated? If so is there an equivalent replacement?

I read that the nameif is deprecated, although I still see it on my Ubuntu 14.04 system. If this command is deprecated, is the command cited for removal or will it still be available? This command ...
1
vote
0answers
729 views

How does Ubuntu 14.04 achieve persistent eth* interfaces?

Trying to upgrade udev to 197+ on my LFS system, I've come across a problem that old persistent network interface names scheme is no longer supported. Before trying to go on with the new suggested ...
10
votes
5answers
596 views

Difference between sdX and vdX

When I use Ubuntu and CentOS, I see /dev/sda and /dev/vda. So I can't understand what is the different between above two?
1
vote
0answers
57 views

How to Run a script on USB removal?

I want to execute the script on removal of usb drive. In that script I want to restart the server. Is there any way to do the same ? I know I have to modify the rules in /etc/udev/rules.d/.
1
vote
2answers
81 views

Persistent drive block usind udev

I have 8 hard disks on a home server. Sometimes I plug and unplug one or two, and if I restart the system all the drive letters are messed up. I would like to assign a block to each hard drive based ...
3
votes
1answer
432 views

Making udev rule for bluetooth keyboard

I'm using a logitech k810 bluetooth keyboard with my laptop running Debian Wheezy. (I got the keyboard working by following this guide.) By default the F1-12 keys are multimedia keys unless the FN ...
0
votes
1answer
918 views

Consistent network interface name ubuntu using pci slot

One can set consistent interface naming via mac address by modifying /etc/udev/rules.d/70-persistent-net.rules. Can you establish consistent interface naming by PCI slot number? (I tried but failed) ...
7
votes
1answer
311 views

How to enable “Predictable Network Interface Names”?

I decided to check out what name my ethernet device will end up with, but contrary to other distros, Debian doesn't seem to have activated this change (or is holding it back?), * Keep the old ...
0
votes
0answers
44 views

How to differentiate USB flash drive and CD-ROM?

I want to differentiate an USB flash drive and a CD-ROM. My requirement is when I connect to a system only the CD-ROM should work, but not the USB key.
3
votes
0answers
49 views

Trigger a login by plugging in a USB drive

OS: Linux, Mint. I want to have a system where I can insert a flashdrive into a computer, and using UDEV rules, have the system login a user account. I can do the UDEV part, but what command should I ...
0
votes
0answers
35 views

Udev (197) last_rule not working

I am using udev version 197. I write a rule /etc/udev/rules.d/00-test.rules It's content is : SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="e0", ATTRS{bInterfaceSubClass}=="01", ...
2
votes
1answer
698 views

USB passthrough for LXC containers

PROBLEM: So I've been trying to get a usb device (primesense - the OEM reference for the Kinect) to passthrough to an LXC container so I can develop without worrying about polluting my stable system ...
1
vote
1answer
557 views

Prevent USB storage from using different device on reset

I have a hard drive in a USB enclosure that I am doing some data recovery on. The drive is in extremely bad shape and frequently resets on reads. The device registers as /dev/sdb. Sometimes, probably ...
2
votes
1answer
176 views

How to get device filename from lsusb output or by device path

Related question: USB connect/disconnect notification When the device is plugged/unplugged, I get instant notification, that's great. But to make it (almost) perfect, I also want to get device ...
0
votes
1answer
64 views

Automounting with udev takes too much time

Specifically, using udev to automount usb memory sticks takes about 3-4 seconds according to its own logs. It may not sound like that much, but it is on an embedded distribution for a system that ...
0
votes
1answer
177 views

Executing backup script on external HDD plug using udev

I have tried to write a custom udev rule to run a backup.sh script when I plug my USB 3.0 external hard disk to my home server. I created a new file in /etc/udev/rules.d called 10-custom.rules. In ...
1
vote
1answer
52 views

DHCP Problems Virtualbox

I have some minor issues with Ubuntu server on a virtual machine and even though I have some assumptions as to what actually happens, I'd like to ask all of you about your opinion. Here's the deal: I ...
1
vote
0answers
15 views

Do duplicate udev rules in different files cause any problems?

Do exact duplicate udev rules in different files cause any problems? In my case, it's an 'ADD' rule for a custom device. The rule is apparently working and I can access the device, but I don't know ...