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

learn more… | top users | synonyms

4
votes
1answer
82 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 ...
2
votes
1answer
382 views

udev Unable to Rename Network Device: Device or Resource Busy

I'm trying to use udev rules in order to give my network interfaces static, consistent names. However, it seems like there is some race condition happening preventing these rules from consistently ...
4
votes
3answers
863 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
1answer
189 views

Why doesn't my udev rule work?

I created a file /etc/udev/rules.d/60.alsa.rules with the following content: KERNEL=="0000:00:1b.0", SUBSYSTEM=="pci", ATTR{label}=="Realtek High Definition Audio Device", ATTR{vendor}=="0x8086", ...
2
votes
0answers
116 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 ...
2
votes
1answer
158 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 ...
7
votes
1answer
362 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 ...
1
vote
1answer
61 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 ...
1
vote
1answer
306 views

UDev automounting drives as 'usbhd' regardless of type and name on Ubuntu 12.10

I have 3 drives which I use for storage on my system. Here are their mounting points in /etc/fstab # <file system> <mount point> <type> <options> <dump> ...
2
votes
1answer
1k views

Map physical USB device path to the Bus/Device number returned by lsusb

I need to get the title of the attached USB device. I can do that with lsusb. udev allows some substitutions when I write rules: say, we can use $kernel to get name of the device, or $devpath to get ...
10
votes
5answers
719 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?
2
votes
1answer
3k views

Understanding udev rules and permissions in libusb

I had a problem with my scanner. Xsane worked only as root. Using it as normal user it didn't find any devices. Adding the user to the groups saned or scanner didn't help. Finally I solved the ...
1
vote
0answers
829 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 ...
1
vote
2answers
1k views

Cannot run script using udev rules

Prescript: I have already searched for similar questions but am not able to find a useful answer. Background: I am using Fedora 64-bit. I want to execute a specific script /bin/usbattached.sh when a ...
3
votes
1answer
518 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 ...
1
vote
0answers
59 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
106 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 ...
0
votes
0answers
47 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
50 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
37 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
165 views

Virtual mouse is ignored by xorg when loaded

I'm trying to run virtual mouse driver from book "Essential Linux Device Drivers" but when I'm load this module into kernel using insmod in /var/log/Xorg.0.log I see: [ 757.212] (II) config/udev: ...
2
votes
1answer
809 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
0answers
58 views

GKrellM vs. udev's asynchronous drive mappings on bootup

Well, supposing you had multiple drives (3 in this example), udev would always play dice with them on each system reboot. And now, let's make things a little more quirky by adding one USB flash drive ...
1
vote
1answer
640 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 ...
0
votes
1answer
66 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
208 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 ...
0
votes
0answers
88 views

Udev taking 15 seconds to detect mouse

Whenever my mouse, a SteelSeries Xai, is plugged in, there is a 15 second delay until the mouse is properly recognized and starts working. This is specially troublesome at boot, where udev waits for ...
1
vote
1answer
58 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 ...
6
votes
3answers
57 views

different passwords depending on plugged-in devices

I would like to have different passwords for my account(s): When (e.g.) a certain USB stick is plugged in then an easy password is to be used. The idea is: If I leave my computer then I take the stick ...
2
votes
1answer
663 views

Not working udev rule with systemd-udevd on Fedora 19

I would like to play with IOIO on my Fedora 19, so I installed the udev rule as the documentation tells, in /etc/udev/rules.d/50-ioio.rules: ACTION=="add", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ...
0
votes
0answers
47 views

Best Practices for Configuring/Reading Sensor Devices

I have a gadget with a number of environmental sensors attached via an I2C bus, and would like to be able configure and read these sensors via an unprivileged application. Unfortunately, there ...
1
vote
2answers
75 views

udev, how to prevent further rules to be run?

Is it possible (and if so how) to tell udev to stop executing further rules for a certain device? I know that there is an order/sequence of rules by the alphabetical naming of the udev files. ...
1
vote
2answers
279 views

80-net-setup-link no longer functions when I downgraded systemd

I've downgraded systemd to version 208. Although I still have /etc/udev/rules.d/80-net-setup-link.rules on my disk, but the names of network interfaces were not named correctly: e.g wlp3s0 is not ...
3
votes
0answers
49 views

Keep keyboard layout upon inserting external keyboard

I have a custom keyboard layout, that I enable using this commands: setxkbmap -verbose us -variant altgr-intl xmodmap -verbose /home/coub/.myxmodmap This works just fine, the thing is, that when I ...
1
vote
0answers
204 views

Modifier keys cannot be mapped to regular keys on USB keyboard with udev

Using an hwdb file, /etc/udev/hwdb.d/99-keyboard.hwdb, I can remap the left Alt key on my USB keyboard as the Ctrl key: keyboard:usb:v*p* KEYBOARD_KEY_700e2=leftctrl This also works when I try to ...
4
votes
3answers
12k views

Automounting USB sticks on Debian

I'm running Debian Squeeze on a plug computer (so SSH only, no GUI) and what I'm trying to do is get it so that when a USB stick is plugged in, it gets automatically mounted. What I've done is ...
11
votes
2answers
5k views

How can I find available network interfaces?

This is in regard to linux, but if anyone knows of a general *nix method that would be good. I booted a system yesterday with an ethernet cable plugged in. "NetworkManager" is not installed, so once ...
2
votes
1answer
196 views

How to make a bash script wait till a pendrive is mounted?

I have a bash script which has a line cd /run/media/Username/121C-E137/ this script is triggered as soon as the pen-drive is recognized by the CPU but this line should be executed only after the ...
4
votes
1answer
519 views

Udev rule to match multiple node USB device

I have a 3G/GPS device that creates 5 tty nodes, although it's only one physical USB connection. Basically, a multi port usb-serial adapter. I'm trying to create some udev rules to make sure those ...
3
votes
0answers
349 views

linux udev rule to load gadget module for client driver

I'm having a hard time automating loading a gadget module and bringing up the usb0 device as a eth interface. The interface in question is g_ether for a embedded Linux device and connecting to a PC. ...
0
votes
1answer
93 views

Bash code runs correctly when it is executed in terminal but does not work properly when executed using udev

I am trying to move various files present in a pendrive into their respective folders on PC. ie ,Music files into music folder,text files into Documents and so on.. I have written a script for that ...
26
votes
2answers
3k views

Why do some Linux distributions still have /dev/ttyS0, ttyS1, etc., even though newer computers don't have such a serial port?

Many new laptop and desktop computers do not have 9-pin/25-pin serial ports. Why do many Linux distributions still contain /dev/ttyS0, dev/ttyS1 device files? Since udev can create the device files ...
3
votes
1answer
134 views

Switch between keyboard layout based on input event

I have a french and a US keyboard on my computer. I'm using awesome wm and have set everything so that it is easy for me to switch between keyboard layout. But I still have to do it myself. ...
7
votes
3answers
701 views

Udev- How do I find out which subsystem a device belongs to?

For example, I have device /dev/sdb. How do I find out it's udev subsystem?
1
vote
1answer
141 views

Can't run put udisks commands in udev scripts

I'm trying to launch a script when a LUKS drive is inserted. So I setup a udev rule: KERNEL=="sd*3", ACTION=="add", ATTRS{serial}=="XXX", ATTRS{manufacturer}=="XXX", ...
2
votes
1answer
332 views

udev triggers rule but script fails to execute properly

I am trying to automate a quick and dirty backup of a headless system. (I feel it is relevant to note that I am running Busybox utilities so this is the mount tool I have at my disposal) I have made a ...
5
votes
3answers
4k views

How can I create a udev rule to mount a USB drive read only?

I'm trying to set a particular USB drive to always mount read only. If I plug it in, it is seen as sdb with a single partition, sdb1. Here are some relevant udevadm lines (not the entire output of ...
0
votes
0answers
129 views

Pulseaudio startup fails on VPS as non-root

I installed pulseaudio, but I can't manage to run it as any non-root user. pulseaudio -vvvv output is (relevant parts with errors): D: [pulseaudio] cli-command.c: Checking for existence of ...
2
votes
2answers
3k views

Network naming on Arch Linux

I've just installed Arch Linux on my old PC, to do the installation I used wifi-menu wlan0, now I've reboot but if I type: ifconfig wlan0 up I have as a result: wlan0: ERROR while getting ...