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

learn more… | top users | synonyms

1
vote
1answer
33 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
16 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
213 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
175 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
2answers
910 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 ...
1
vote
0answers
47 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
47 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 ...
0
votes
2answers
926 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 ...
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 ...
1
vote
0answers
42 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
97 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
365 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 ...
1
vote
0answers
33 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 ...
0
votes
0answers
12 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 ...
1
vote
0answers
49 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
51 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", ...
0
votes
1answer
860 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 ...
3
votes
1answer
82 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. ...
5
votes
1answer
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 ...
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 ...
3
votes
2answers
274 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
286 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 ...
26
votes
4answers
85k 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
48 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
61 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
19 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 ...
0
votes
0answers
18 views

GSM modem and USB serial port issue with UDEV

I have 2 devices Dlink DWM-157 3g modem and Trendnet TU-S9 usb to serial. The Dlink modem came with a udev script which works fine when the usb-to-serial is not plugged in from boot. So if the ...
0
votes
0answers
13 views

Raspberry Pi bluetooth keyboard not responding

I am running Debian Jessie on a Raspberry Pi (specifically 2 B model) and I have bluetooth working and a generic bluetooth keyboard paired and connected. Even so, nothing that I type on the kb will ...
2
votes
0answers
196 views

Why does my USB modem produce multiple /dev/ttyUSB* files?

I have a single Sierra Wireless USB 308 modem we are using for sending SMS message to, and receiving SMS messages from, customers. When this single device is plugged in, the system creates multiple ...
4
votes
4answers
930 views

What is this dd if=/dev/zero of=/dev/sda do

Could someone help me understand what I got? dd if=/dev/zero of=/dev/sda bs=4096 count=4096 Q: Why specifically 4096 for count? dd if=/dev/zero of=/dev/sda bs=512 count=4096 seek=$(expr blockdev ...
1
vote
2answers
74 views

Fn keyboard keys not working (when udev is disabled)

I am in the process of getting rid of udev daemon from my system. I have fixed all issues, only one small problem is remaining: It used to be (when I was using udev), that Fn+Down acted as ...
2
votes
1answer
73 views

setting up Xorg input devices without udev

I have udev support in kernel(CONFIG_DEVTMPFS), thus my system does not strictly require udev daemon. Indeed everything works fine without udev daemon with the exception of Xorg (LXDE). LXDE starts ...
37
votes
11answers
17k 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 ...
1
vote
0answers
20 views

What is the difference in using xinput and synclient for deactivating a touchpad in X

I have troubles using xinput --disable or --set-prop "Device Enabled" or set-prop "Synaptics Off". It seems that --disable / --enable and "Device Enabled" are meant to deactivate the whole device, ...
3
votes
1answer
71 views

ALSA - Traktor Audio 2 - How to split front and rear stereo channels / How to debug dmix

I am struggling to persuade ALSA to separate the front and rear outputs of my Native Instruments Traktor Audio 2 external USB soundcard and would really appreciate help. USB Vendor ID: 17cc, USB ...
1
vote
1answer
11 views

Udev rules matching a command's output (or something similar)

I'm writing a common udev rule for deployment to computers with one or two Silicon Motion SM501 video cards installed. This is the current rule: TAG=="seat", ENV{ID_FOR_SEAT}=="usb-pci-*-usb-*_[34]", ...
1
vote
1answer
49 views

How do I connect a USB mass storage device that has a custom pid and vid?

I have a device, custom mp3 player, that the pid and vid show up as a011:a011. dmesg usb 1-1.1: new high-speed USB device number 4 using ehci-pci usb 1-1.1: New USB device found, idVendor=a011, ...
0
votes
0answers
12 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. ...
0
votes
1answer
37 views

Is it possible to get the devtype of a USB wifi device?

I know udevadm info gives the devtype of disks as disk. However, how would I get the devtype of a usb wifi adapter? (ie wlan, wwan, etc)
0
votes
0answers
24 views

Dynamic mdev ifup and ifdown of network interface

Is it possible to have an mdev.conf rule that would run ifup on device creation and ifdown on detach? i.e. eth[0-9] root:root 660 @ifup $MDEV | $ifdown $MDEV
96
votes
5answers
149k 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.
1
vote
0answers
27 views

udev working with SYMLINK but not with NAME

Problem: I'm writing persistent naming rules for a USB dongle following the tutorial here. The rule works as expected for : SUBSYSTEM=="tty", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", ...
0
votes
1answer
19 views

Writing to /dev/kmsg with udev run

I have written a simple udev rule to name my usb device: SUBSYSTEM=="tty", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", SYMLINK+="ttyUSB-ZStick-5G" udev offers ways to run custom scripts on ...
0
votes
1answer
41 views

How can I permanently change the ownership of a mounted device under `/media/$USER`?

I'm using an encrypted (cryptsetup with LUKS with ext3) SD-Card as disk space extension. When entering the key in Nautilus, the device is decrypted (/dev/dm-3) and mounted in /media/$USER/. ...
0
votes
2answers
46 views

How to skip boot time custom udev rule?

I have following udev rule in /etc/udev/rules.d/80-foo_usb.rules to detect pen drives, KERNEL=="[a-z][a-z][a-z][1-9]", SUBSYSTEM=="block", ACTION=="add", PROGRAM+="/test/foo.sh $kernel $parent" It ...
1
vote
0answers
21 views

Udev: cmd executed when attaching device, but does nothing

I created rules which should run a command when i attach my USB mouse to disable the touchpad and the point stick: machine ~ # cat /etc/udev/rules.d/61-touchpad.rules # 61-touchpad.rules # disable ...
7
votes
4answers
6k 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' ...
1
vote
0answers
30 views

How to wait for detected LVM volumes?

I have the following problem: I have a machine running arch and which contains a encrypted LV in a LVM. Inside the (encrypted) LV is another PV located. So I have in fact two VGs: One which contains ...