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

learn more… | top users | synonyms

0
votes
0answers
10 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 ...
0
votes
1answer
14 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
4
votes
2answers
237 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
0answers
12 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 ...
2
votes
1answer
18 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 ...
1
vote
2answers
984 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 ...
3
votes
1answer
60 views
+100

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
0answers
12 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
1k 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
14 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 ...
0
votes
0answers
33 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 ...
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
25 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
80 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
67 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
154k 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
16 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
134 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
27 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,
0
votes
1answer
896 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
0answers
13 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 '...
4
votes
1answer
115 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
43 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
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'...
2
votes
1answer
42 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
63 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
29 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
440 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
277 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
143 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
53 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
44 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
107 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 ...
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) ...
5
votes
1answer
403 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
17 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‍...
1
vote
0answers
127 views

Kernel driver for trackpoint on Lenovo Thinkpad 13

On other ThinkPads I've succesfully configured the trackpoint with udev using this method but on my new Lenovo Thinkpad 13 this isn't possible: This command: find /sys/devices/platform/i8042 -name ...
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 ...
1
vote
1answer
68 views

udev monitor hotplug rule not running

I have setup a basic udev rule to detect when I connect or disconnect a mDP cable. The file is /etc/udev/rules.d/95-monitor-hotplug.rules KERNEL=="card0", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{...
3
votes
1answer
110 views

How to prevent /sda /sdb changes between boots?

I am going to install Gentoo Linux onto an old hardware, which motherboard is having both IDE and SATA hard drives. I have two IDE and one SATA hard drives connected, and plan to do RAID on them. ...
3
votes
2answers
385 views

sysfs and devtmpfs

Ulrich Dangel explains very well the difference between devtmpfs and udev. What about sysfs? I understand that the kernel uses sysfs to export device nodes to user space to be used by udev. So ...
9
votes
1answer
290 views

Cloned system + network interfaces

I'm currently in a little bit of a pickle. I've made an image of my system and I have given it to someone to run. They have successfully flushed their system with the image and are running it. The ...
27
votes
4answers
92k 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
0answers
56 views

python script via udev rules for hotplugging display port monitor [closed]

I'm running i3-wm on a ubuntu install. i3 doesn't auto-detect and configure the monitor set up when I (dis)connect the miniDP cable. I've tried implementing a udev rule that runs a python script which ...
0
votes
1answer
71 views

My printer in /dev/usb/lp0 always disappear after few seconds, and can't print, how to fix it? (Ubuntu 14.04)

Please, help... I have a 'EPPOS Model EPT-58H' thermal printer. When I plugin via usb, it detected as /dev/usb/lp0 with ls -l /dev command. Then I run echo "sometext" > /dev/usb/lp0 in terminal to ...
1
vote
0answers
24 views

Can I change device node with udev rules?

In the recent udev(7) manpage (Fedora 22, systemd version 219), it seems that renaming a device node by udev using NAME key has been prohibited: NAME The name to use for a network interface. See ...