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

learn more… | top users | synonyms

2
votes
1answer
16 views

Write udev rule from bitbake recipe

I can compile and install stuff on yocto by creating a bitbake recipe. I would like to run my code when a specific device is connected. Is there an elegant way to add a udev rule from a bitbake ...
1
vote
0answers
16 views

How to detect a specific WIFI network is connected by udev?

My system on laptop is Funtoo. I have a NAS at home and I'd like to mount some partitions automatically. Manually mount through NFS works already. Simply add lines to /etc/fstab is not a good solution,...
39
votes
12answers
18k views

A tool for automatically applying RandR configuration when external display is plugged in

is there a tool which enables one to: remember current RandR configuration (position, orientation, resolution etc) on per-monitor basis, automatically apply last known good configuration as soon as ...
7
votes
2answers
3k views

Making udev ignore certain devices during boot

I'm trying to make udev stop mounting one of my devices at boot time, and I've created a rule in /etc/udev/rules.d/ called 1-myblacklist.rules. All the rule does is matches the device by kernel ...
1
vote
3answers
4k views

Restarting udev on CentOS 6 (tethering a mobile phone using proxoid)

I am trying to use proxoid (a proxy server to allow tethering like facility for mobile phones). This guide says that I need to restart the process udev similar to (in Ubuntu): sudo /etc/init.d/udev ...
0
votes
0answers
19 views

udev rule not executing the script specified in RUN

I have the following in /etc/udev/rules.d/40-swallowpv.rules: ACTION=="add", KERNEL=="sd[a-z]+", RUN="/var/tmp/swallowpv sdc" (I've also tried with RUN+= to the same effect). The first thing the ...
2
votes
1answer
26 views

UDEV Rules Interfere

I am working on Raspian OS (Linux) for Raspberry Pi 3. I am trying to do a simple task say when I connect any USB to the port it should copy the data from a particular location to the USB and clear ...
5
votes
2answers
248 views

What does it mean when something says that UNIX device files are static?

I've been reading up on udev. In the "overview" section, Wikipedia states that "unlike traditional Unix systems, where the device nodes in the /dev directory have been a static set of files, the Linux ...
0
votes
1answer
3k 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) ...
0
votes
0answers
12 views

Powermt on linux pseudo devices showing?

On redhat after reassigning luns, I see that Powermt display dev=all show the below output. Pseudo name=??? Symmetrix ID=000192604734 Logical device ID=221B state=alive; policy=SymmOpt; queued-IOs=0 ...
4
votes
1answer
83 views

Automatically switch display on lenovo docking and linux

I have a lenovo thinkpad with nvidia optimus and a mini docking station series 3. I want that while docked, it should automatically switch to an external monitor if possible and if I undock it, it ...
0
votes
1answer
927 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 ...
4
votes
2answers
29 views

How can I make a udev rule using a “sibling” device's serial number (for USB devices with no unique serials)?

I have testing equipment that is made-up of the following: a USB Hub connected to the master PC, the hub is embedded in the test jig and is used so that we have only 1 USB cable running from the jig ...
2
votes
1answer
1k 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 weren'...
0
votes
1answer
44 views

device eth1 does not seem to be present

fedora-3 (I know, it is ancient, but this is my sandbox where I look under the hood), udev-039, kernel 2.6.27, configured and compiled by myself. I'm using pci wifi card with ath9k module. Kudzu ...
3
votes
1answer
31 views

How to cause udisksctl to act for another user?

Logged in as the root user, udisksctl mount mounts my device at /media/root/mydevice. Alternately, logged in as another user, udisksctl mount mounts my device at /media/anotheruser/mydevice. So far, ...
1
vote
1answer
24 views

udev keyboard remapping with hwdb NumLock 0

I have a Samsung np870z5e laptop with builtin Numpad with ubuntu 16.04 and udev 229. I have a 'Fn-lock' button, if I press it, the Numpad 0 button (KP_0) becomes 'Menu' button (xev reports it), or '...
1
vote
0answers
16 views

ttyUSBx reconnects until x>255 and stops

I've connected a prolific 2303 usb-serial adapter on to an armhf linux board (Linux version 3.4.90+ (root@debian) (gcc version 4.7.1 (Debian 4.7.1-7) ) and for some reason the device keeps ...
3
votes
2answers
2k 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 ...
0
votes
1answer
17 views

Automounting internal partition and usb

I'm running arch Linux with i3 window manager and I'm wondering if there's a way to replicate Ubuntu behavior about auto mounting internal partitions and USB. More precisely: Mount all partitions ...
0
votes
1answer
17 views

What permissions should a udev rule have?

What permissions should a udev rule have for a USB device? 644? 755? For example on Ubuntu I'm looking at this file: /etc/udev/rules.d/99-lpcscrypt.rules
1
vote
2answers
1k views

No Default Gateway route for bond0 / Slave eth* interface gets IP assigned

I have set up a 4-NIC bond on my Debian Wheezy box. After a fresh boot, the system has LAN access, but cannot resolve outside host names or access outside IPs. It seems that this is because the bond0 ...
0
votes
0answers
43 views

Error calling EVIOCSKEYCODE

I used journalctl -p 3 -xb and got this error message -- Logs begin at Thu 2016-06-23 22:48:08 AST, end at Sat 2016-06-25 13:15:23 AST. -- Jun 25 09:31:35 Almoullim systemd-udevd[268]: Error calling ...
2
votes
1answer
2k 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 ...
0
votes
2answers
1k views

Install fuse debian 8 jessie

I'm on debian 8 jessie with a 4.2.3 kernel. I can't seem to get fuse installed and working. When I install fuse with sudo apt-get install fuse I get MAKEDEV not installed, skipping device node ...
6
votes
4answers
1k views

Why doesn't xsetwacom work from udev?

I made a script to rotate my Wacom Bamboo tablet 180 degrees. It works fine when I execute it as myself (user) or root, but when started from udev (i.e. when plugging the tablet into a usb port) it ...
0
votes
0answers
18 views

systemd-networkd fails to start when network booting via pxelinux

I created a systemd link file to enforce persistent network interface naming for a stack of network-booted hosts. Because the MAC varies between machines, I have to use the PCI path for matching the ...
5
votes
2answers
2k 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
0answers
27 views

Why is this udev remove rule not working? [duplicate]

Hate to ask this sort of question, but... Device info: udevadm monitor --env UDEV [3048.530438] remove /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.3 (usb) ACTION=remove BUSNUM=002 ...
4
votes
3answers
3k views

Why is pcmanfm such a headache when it comes to mounting filesystems?

If I would have known how much 'customization' it takes to get LXDE and its default file manager, pcmanfm, just working, I would probably have never chosen to try it. I've got a problem. Lots of ...
1
vote
0answers
83 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 the answer to "How to mount removable media in /media/<LABEL> automatically when ...
1
vote
0answers
105 views

Interrupted apt upgrade broke udev and systemd

During an update of my Raspbian installation (Pi rev. B+) over SSH I lost connection. After a hard reboot (which may have happened during or after finishing the update) the udev kernel device manager ...
98
votes
6answers
159k 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.
0
votes
1answer
18 views

White Listing USB's via Udev

I am planning to whitelist USB Device in such a way that initially everything will be denial ALL followed by whitelisting of certain USB. I've written these rules in UDEV but it doesn't seem to work. ...
3
votes
1answer
147 views

Redhat 7.1 Udev Rules changes SYMLINK+ And Name [duplicate]

I am tying to install Oracle ASM on RHEL 7.1, for that trying to configure Udev rules. I have noticed there are is new attribute in udev rules SYMLINK+ which seems to be replacement of NAME attribute....
2
votes
1answer
28 views

udev rules official docs

I am looking official UDEV rules, documents, I have noticed there are changes in udev rules in RHEL 7. But could not find any documents some thing like 'request for changes'. Please help Thanks,
4
votes
1answer
119 views

Why is my udev mounted device not staying put?

I have a computer running CentOS 7. I'm trying to set up a udev rule to automatically mount a USB drive (named 'sdb1') to /mnt/flash whenever it is connected. The udev script was not working (see ...
10
votes
3answers
1k views

What's the difference between udev and hald?

I'm just beginning to dive into the internals of Linux, and I was wondering what the difference is between udev and the hal daemon. From what I gather, both seem to be responsible for managing hot ...
2
votes
2answers
45 views

Mistakenly removed scsi-drive device files

I mistakenly removed my sd* device files via the following command: rm /dev/sd*. Is it possible to recreate the device files via mknod?
2
votes
1answer
50 views

How to run a script (when usb memory is plugged) automatically in Debian Jessie (Raspberry Pi)?

I'm working with Raspberry Pi. Previously, I used udev rule to run a script when a usb flash memory was plugged. The following was the content of /etc/udev/rules.d/10-usbstick.rules file: ACTION=="...
1
vote
1answer
86 views

Udev rule setting up SocketCAN socket only works correctly only when run manually

I want to start slcand (the userspace daemon for the serial line CAN interface driver) when my Lawicel CanUSB dongle is plugged in. I followed Pascal Walter's step-by-step guide and all seems to work (...
1
vote
1answer
41 views

FTDI Driver for Custom PID and VID

I have changed VID and PID of my ftdi board to 0001 and 0002. Now the com is not showing and the device is showing in unknown device. How can make a customize driver for it to get com port. Sorry ...
3
votes
1answer
727 views

Debian won't shut down (Failed to start poweroff.target: Transaction is destructive)

I stumbled upon a weird behaviour of my BunsenLabs GNU/Linux. Sometimes I cannot turn off the OS. I doesn't matter whether I use sudo poweroff or the GUI approach. This is what I get after running ...
0
votes
2answers
393 views

Installing OpenSuse Leap 42.1 - Installation hangs at “Starting udev”

I am trying to install the new OpenSuse Leap 42.1 on my PC. I already tried 4 different installation mediums: DVD with full installation DVD with Net installation USB with full installation USB with ...
1
vote
0answers
216 views

Can Ubuntu 16.04 setup autofs to automount /media/autousb with read and write permissions if am user frank?

I spent 6 hours yesterday testing @Ingo Blackman's answer to the Unix and Linux Stack Exchange article, [Automounting USB sticks on Debian When I use a udev rule ACTION=="add" and RUN+="/bin/ln -...
0
votes
1answer
56 views

How do I set up a udev rule to mount the SanDisk Cruzer USB upon insertion in order to eliminate an fstab entry?

Suppose I run sudo mount -a after setting /etc/fstab to: /dev/usbhd1 /path/to/mount/point ntfs rw,auto,nofail 0 1 Yesterday, upon asking what steps our architect and I should do next after a ...
1
vote
0answers
47 views

how to detect CD physically inserted into drive

How to detect that CD was physically inserted into CD mechanics ASAP? The CD is mounted automatically but it takes like 20 seconds sometimes - and it is just then that I know the CD is inserted.. ...
1
vote
3answers
109 views

Is it possible to make the device filesystem name , /dev/sd?1 , stay constant everytime we reconnect the SanDisk USB Cruzer drive?

Is it possible to make the device filesystem name , /dev/sdi1 , shown by lsblk -f stay constant everytime we disconnect and reconnect the SanDisk USB Cruzer drive? I am running Ubuntu Linux 16.04 on ...
5
votes
1answer
427 views

Attributes from various parent devices in a udev rule

I have some trouble understanding how the udev device attributes from different parent devices are evaluated in a rule. I want to write a rule for a specific serial usb device (HUAWEI Modem), with a ...
0
votes
0answers
19 views

How to create symlink USB to COM port

I need help to create the udev rule. I need my my USB printer to be located as COM1. lsusb ouput: ‍Bus 001 Device 005: ID 0fe6:811e Kontron (Industrial Computer Source / ICS Advent) Parallel Adapter‍...