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

learn more… | top users | synonyms

23
votes
2answers
2k 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
28 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. ...
6
votes
3answers
73 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
73 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
34 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
193 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
11 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
701 views

udev rule for usb attach/detach not triggering

I'm running RHEL6 and I'm trying to write a udev rule that is triggered upon plugging in and removing usb devices. I created a file called 80-usb.rules in /etc/udev/rules.d/ and I gave it the ...
3
votes
1answer
2k views

Udev : renaming my network interface

I just installed RHEL 6.3 on a Dell 1950 server. This server as two GBit ports, Gb0 and Gb1. For some obscure reason, udev chose to name Gb0 eth1 and Gb1 eth0. This is definitly not a good find for ...
2
votes
2answers
2k 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 ...
1
vote
1answer
328 views

Please help me understand what's wrong with this udev rule

I'm reading through this link in trying to make the appropriate rule to make the BSG device nodes have group ownership of wheel and permissions of 0660. This is the rule that I have: [user@mylinux ...
1
vote
1answer
266 views

Why do I not seem to have hidraw options on my system, and how can I fix my usb devices?

Starting today, I noticed a few problems with my system. USB devices, including the internal ones such as microphones, don't seem to be working at all. I first noticed when my keyboard and mouse ...
30
votes
5answers
5k views

How can I detect when a monitor is plugged in or unplugged?

Is there any event that is triggered when I plug in or out an external monitor into the DisplayPort of my laptop? ACPID and UDEV don't react at all. I'm using onboard graphics on an intel chip. Here ...
1
vote
0answers
32 views

Add udev rule alias for input device

I am trying to add a udev alias rule for my xboxdrv (x-box controller) and I can't seem to figure it out. dmesg | grep "input" I see: [ 6.239955] input: Microsoft X-Box 360 pad as ...
2
votes
0answers
26 views

How can I set repeat rate of USB keyboard with udev?

How can I get my keyboard repeat rate to apply to a hotplugged USB keyboard? I made a udev rule to set the keyboard repeat delay and rate, /etc/udev/rules.d/99-usb-keyboard.rules with the following ...
1
vote
1answer
200 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
212 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
1answer
87 views

Is there a way to change device names in /dev directory?

I wrote this rule for testing purpose: SUBSYSTEMS=="usb", ATTRS{manufacturer}=="Kingston", ATTRS{serial}=="001CC0EC34A2BB318709004B", ATTRS{idVendor}=="0951", ATTRS{idProduct}=="1642", ...
2
votes
2answers
35 views

How can I run setfacl -m group:group2:rwx /dev/video0 /dev/snd/* on login?

Q: How do I grant permissions to /dev/video* and /dev/snd/* to a second user, user2 when logged in interactively as user1? I have written a wrapper for sudo that clones the XAuthority settings, and ...
1
vote
1answer
127 views

XFCE on Debian: hiding block devices

I'm running XFCE 4.8 on Debian Wheezy and I can't find a clean way to hide a block device (system's SATA/SSD drive) on the desktop, but still be able to see / mount removable devices via Thunar. The ...
4
votes
1answer
134 views

Difference between /dev and /sys/class?

What is the difference between the device representation in /dev between the one in /sys/class? Is one prefered over the other? Is there something one offers and the other doesn't?
0
votes
1answer
63 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 ...
1
vote
1answer
67 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 ...
24
votes
4answers
31k views

How to reload udev rules without reboot?

How should one reload udev rules, so that newly created one can function? I'm running Arch Linux, and I don't have a udevstart command here. Also checked /etc/rc.d, no udev service there.
6
votes
1answer
140 views

USB connect/disconnect notification

I use Linux Mint 13 MATE, and I'm trying to set up notifications when I plug/unplug devices. First of all, I found udev-notify package, but unfortunately it almost doesn't work for me: it works for ...
2
votes
1answer
83 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 ...
2
votes
5answers
6k 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 ...
0
votes
0answers
57 views

External disk doesn’t appear in /dev/

I have an external (USB-2.0) hard drive. Today I couldn’t mount it after plugging to my computer. When I look in /dev/ $ ls /dev/sd* There is no new disk, only sda and sdb with their partitions, ...
0
votes
2answers
133 views

Allow non-root user to read/write /dev files

In my /dev folder, I would like the following files to be user readable and writable: /dev/ttyUSB0 /dev/gpib0 How do I do this without using chgrp? I can edit /etc/udev/rules.d but I do not know ...
2
votes
1answer
322 views

Re-ordering serial ports on a multiport card

I have a Red Hat Enterprise 6.2 machine with two on-board serial ports and a PCIe card with 8 additional serial ports (16C950 UARTs, 16C550 compliant). I've added the kernel option 8250.nr_uarts=10 so ...
1
vote
1answer
585 views

Symlinks on /dev/ttyUSB* via udev

So I built a nice little GSM-Gateway with a PC-Engines ALIX.2D13, a Huawei E220 umts modem, Debian Wheezy and gammu-smsd. I need a fixed device name für gammu-smsd to survive reboots. I tried to make ...
1
vote
1answer
45 views

MAC Address changes after dirty shutdown

I'm having a strange issue which I originally thought was tied to the fact that I created an Ubuntu system from an image of another. However, after reinstalling Ubuntu from scratch I am getting the ...
3
votes
1answer
481 views

Cloned Linux system and /etc/udev/rules.d/70-persistent-net.rules

I set up an Ubuntu system and configured it properly, including defining eth0 in /etc/network/interfaces. I then imaged that system and cloned it on a new system. When I booted up the system the ...
3
votes
4answers
1k views

How to run long time process on Udev event?

I want to run a ppp connection when my USB modem is connected, so I use this udev rule: ACTION=="add", SUBSYSTEM=="tty", ATTRS{idVendor}=="16d8",\ RUN+="/usr/local/bin/newPPP.sh $env{DEVNAME}" ...
4
votes
1answer
81 views

lshw lists my drive but it has no /dev file

Ive just got a dedicated server which has 2x 1TB HDD. However when I type df -h I get the following: [root@sd-56537 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 916G ...
2
votes
1answer
71 views

udev rule for a USB device and ignoring others

Is it possible to create a udev rule for an USB device and ignore other USB devices? I want my system to support HID USB touchscreen (hid.ko) and ignore HID devices such as keyboards, mice, etc.
4
votes
2answers
249 views

Disable the external keyboard from a script

I have a udev rule for my external keyboard. I can catch events, and by running a script I can also reach udev env variables. Can I disable keyboard with udev? Or must I use a script to disable the ...
1
vote
1answer
37 views

Which udev rule triggered?

a. Is it possible to find out, which udev rule triggered as soon as some USB/serial device plug-in or plug-out ? b. Is it possible to reload one specific rule out of many rules, without device replug ...
2
votes
1answer
113 views

can not create /dev/shm

I need to create /dev/shm on an embedded ARM system. From "Installed The Latest Changes to Current and......". I see that it can be created with mkdir /lib/udev/devices/shm, but I'm wondering what ...
1
vote
3answers
784 views

udev rule not working

I have created a udev rules which is supposed to mount a USB device, backup some datas et cleanup everything. I am actually working on a Debian server. There is the information about my usb device ...
3
votes
1answer
118 views

Kernel recognizes USB device but then I can't find it in /sys or /dev

When I connect my Samsung 390G (a cheap cell phone!) to Ubuntu 13.04, dmesg seems to indicate that the storage device thereon is recognizable: [Sun Dec 29 01:26:10 2013] scsi16 : usb-storage ...
2
votes
2answers
52 views

Kodak still camera udev problem

My still camera is not includev in udev list. lsusb stands: Bus 007 Device 016: ID 040a:058b Kodak Co. Digital Camera So I add to /usr/lib/udev/rules.d/40-libgphoto2.rules ...
1
vote
1answer
38 views

udev GROUP and MODE assignments on symbolic link have no effect

I'm trying to connect my velleman k8055 board per usb to my pc. For this I have the udev rule SUBSYSTEM !="usb_device", ACTION !="add", GOTO="velleman_rules_end" ATTRS{idVendor}=="10cf", ...
3
votes
2answers
75 views

Is there a uniform way to discover information about devices?

UPD: Changed question title from manage devices to discover information about devices One of the frequent thing I do is look up info about devices on my systems. And I am constantly find myself ...
1
vote
1answer
121 views

How to disable a usb sound device with udev

How can I disable USB device by Vendor ID? So I have: [root@piotr ~]# lsusb Bus 001 Device 002: ID 058f:9254 Alcor Micro Corp. Hub Bus 001 Device 003: ID 0d8c:000c C-Media Electronics, Inc. Audio ...
31
votes
3answers
2k views

Why are network interfaces not in /dev like other devices?

I'm mostly curious, but why aren't network interfaces in /dev? Are there any other kinds of devices that aren't represented as a node under /dev?
5
votes
2answers
112 views

/dev/disk/ lists disks, why /dev/net/ doesn't list network interfaces? [duplicate]

I know that udev manages devices in /dev and I expected to find information about available network cards (hardware) or at least network interfaces (software) there. ifconfig output shows me eth0 and ...
4
votes
1answer
242 views

udev rule for assigning known symlinks for identical usb serial devices

I have two (and possibly in the future, more) USB serial devices which are identical (down to the serial number, unfortunately) - they're actually BTC miners. Currently they end up as ttyUSBX where X ...
4
votes
2answers
134 views

How does udev get device numbers for the devices it creates?

Spun off from a small exchange in chat. One of the primary advantages of udev is that you don't have to worry about major and minor device number exhaustion anymore. But the devices created by udev ...
5
votes
1answer
159 views

trigger udev rules from systemd

I have one of those hdds, that have a very aggressive power management. To prevent load cycles from rising in to critical numbers I wrote an udev rule: SUBSYSTEM=="block", SUBSYSTEMS=="scsi", ...