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

learn more… | top users | synonyms

1
vote
0answers
31 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 ...
1
vote
0answers
8 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 ...
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 ...
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 ...
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
0answers
32 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
43 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 ...
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", ...
3
votes
1answer
81 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. ...
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 ...
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 ...
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 ...
4
votes
4answers
926 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 ...
0
votes
2answers
172 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 ...
2
votes
1answer
195 views

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

I stumbled upon a weird behaviour of my BunsenLabs 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 sudo ...
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
70 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 ...
1
vote
0answers
18 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
70 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]", ...
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
0answers
22 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
0
votes
1answer
36 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)
1
vote
1answer
47 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, ...
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
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
20 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 ...
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 ...
0
votes
0answers
15 views

Cant interactive external program be executed using udev rules? [duplicate]

I am using following udev rule(s) to execute my program whenever block device (e.g. USB) will be attached. ACTION=="add", SUBSYSTEM=="block", PROGRAM+="/tmp/foo %k" or ACTION=="add", ...
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/. ...
1
vote
1answer
33 views

USB LABEL in different language

If the USB LABEL (name) is in different langauage (Hindi or Chinese) how do i get to know which language it is coded to pass to the iconv or is there any way we can know the language which has been ...
0
votes
2answers
30 views

Program run from udev cannot open a window [duplicate]

I have a script, written in python: #!/usr/bin/python3 from tkinter import messagebox variable = messagebox.showinfo('title', 'question') This python script does nothing else than showing a message ...
0
votes
0answers
38 views

Scripts timeout using USBMount

I'm using Usbmount (https://github.com/rbrito/usbmount) on a raspbian system to auto-detect the insertion and removal of a usb stick in to the unit and then run a script from the ...
1
vote
2answers
101 views

UDEV executes bash script only partially

I have this UDEV rule, which gets activated when I plug in my keyboard: ACTION=="add", DEVPATH=="/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/0003:046A:0011.00??/input/input??/event[0-9][0-9]*", ...
3
votes
1answer
82 views

How does linux load firmeware for built-in driver modules

I've learned that the firmware-subsystem uses udevd to copy a firmware to the created sysfs 'data' entry. But how does this work in case of a built-in driver module where udevd hasn't started yet? ...
1
vote
1answer
29 views

How to change keyboard settings of the active user using udev and setxkbmap?

I have a usb keyboard that I plug in into my desktop at work. While using it tend to manually set the following setxkbmap option: setxkbmap -option compose:ralt setxkbmap -option ctrl:swap_rwin_rctl ...
2
votes
0answers
21 views

how do I add a udev property for my android phone?

I'm trying to get my android phone recognised by rhythmbox. Talking to upstream, rhythmbox gets the value of "id_model" for the udev device - if it is "Android" then it should work. How do I use a ...
1
vote
1answer
244 views

Dependency failed for mount after dist-upgrade

Last weekend, I ran an apt-get dist-upgrade on a home Debian 8.3 system, and was surprised to see that it entered emergency mode on the next boot. The server in question runs LVM on top of a mdadm ...
8
votes
1answer
196 views

Need help improving my Bash script

I need some help improving my Bash script so that it runs flawlessly without having issues. This script uses ds4drv in it and it has some issues that I'm unsure on how to correct. First issue is that ...
1
vote
1answer
53 views

How is /dev/null created on archlinux

Just wondering how is /dev/null created on my archlinux box. I investigated udev rules under /usr/lib/udev/rules.d, but there are no rules relating to to name null. > ag null ...
0
votes
1answer
79 views

What's the difference between udev and acpi(d)

They both seem to be receiving & processing kernel events, so why do they both exist? From what I gather, ACPI seems to be more high-level compared to udev, but apart from that can't really tell. ...
1
vote
2answers
49 views

What causes a PCI ID to change

When running lspci on my RHEL 7.2 box I noticed my Ethernet Adapters changed PCI bus IDs. In the example below it changed from "02:00.x" to "03:00.x". What might have caused this? Is there a way ...
0
votes
1answer
44 views

Using udev rules to let everyone set ip address to a network interface

I want to let everyone on the system to be able to change the ip address of a network interface. I have wrote a rule in /etc/udev/rules.d like this: SUBSYSTEM=="net", ...
6
votes
1answer
2k views

How to regenerate 70-persistent-net.rules without reboot?

The file /etc/udev/rules.d/70-persistent-net.rules is auto-generated on a Linux system with udev, if it does not exist during reboot. But I would like to know a command how to create this rules file ...
0
votes
0answers
62 views

Cannot install GPIO on CubieTruck : Error processing udev archive

I am running Cubieez 2.0 on a Cubietruck. After running apt-get update, I wanted to run pySUNXI GPIO. However, I encountered a problem: root@cubietruck: cd pySUNXI-VSRNDCT-0.0.1/ python setup.py ...
0
votes
1answer
105 views

udev disk mount permissions in linux

We would like to set up a customer account on our overo running embedded Angstrom along with ssh so they can log on to retrieve data. uname -a Linux pb014-01 2.6.32 #1 Wed Feb 29 15:17:02 GMT 2012 ...