Questions tagged [udev]
111 questions
0
votes
2 answers
RHEL/CentOS reassign scsi device letter
if I remove the physical disk associated with /dev/sdb and add a new disk in the same slot, it will be assigned /dev/sdc (or whatever the next available letter is). Is there any way powered on that I can reassign that new disk to /dev/sdb?
Running…

carillonator
- 815
- 3
- 12
- 22
0
votes
1 answer
Automounting with udev
Currently my distribution of choice (ArchLinux) has an automounting script like this:
KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"
But that will automount only partitions up to sdX9. I do have USB drives with 6 or more partitions…

Flavius A
- 139
- 7
0
votes
2 answers
Dbus or Udev command to locate connected hardware
It's a dumb question. Once I knew this command, I used it two or three months ago but now it seems I can't recall it. I tried to look for it using Google but nothing happened :(
It's a dbus command which send a query to udev or something similar,…

dierre
- 145
- 1
- 6
0
votes
3 answers
udev: how can I extend a default rule to modify the ownership of a symlink?
I need to get some USB-serial devices into a particular user group to access them from an application. This is straightforward for the /dev/ttyUSB devices, where I can just use KERNEL="ttyUSB*", GROUP:="mygroup". However, for the symlinks like…

kdt
- 1,400
- 3
- 22
- 34
0
votes
1 answer
How to whitelist range of MACs in 75-persistent-net-generator.rules?
I have a Debian Squeeze (2.6.32-5) guest in KVM that has all virtio network interfaces, and their MACs are apparently blacklisted by udev as per /lib/udev/rules.d/75-persistent-net-generator.rules such that /etc/udev/rules.d/70-persistent-net.rules…

NginUS
- 468
- 1
- 5
- 13
0
votes
1 answer
Debian Squeeze console not working after upgrade
We have upgraded a Debian Squeeze machine recently, which was installed in February 2010 and was never upgraded after that. After the upgrade, while booting the machine prints some messages and after "waiting for /dev with devices" it does not print…

hayalci
- 3,631
- 3
- 27
- 37
0
votes
0 answers
detect when sssd connects to the ladp server and finds a specific group in boot
I am looking to find a way so when system is booting , i can detect when sssd connect to LDAP server and finds a specific group then reload the systemd-udevd.
i actually want to automate all of these steps.
does any one have any idea?

bani
- 1
0
votes
0 answers
Allow a systemd service access to /sys/…/energy_uj - udev rule changing owner having no effect?
I'd like to collect the my CPU power usage on some "plain" linux boxes (i.e. no fancy things like VMs or let alone K8s) via scaphandre or prometheus_node_exporter, running as systemd service and not as root.
The problem: The /sys/…/energy_uj exposed…

Caesar
- 111
- 5
0
votes
2 answers
Howto prevent udevd wrongly enqueues remove event for device ppp?
Connecting a PDA device with Debian using SynCE, USB serial device is recognized and connects with ttyUSB bus, obtains an IP address and disconnects after a few seconds (two, max three).
This is how it looks in syslog:
Jan 18 20:26:57 debian10…

Gustavo
- 1
- 1
0
votes
0 answers
udev rule/script to suppress kernel event
I am in need of a method (udev rule and/or script) that will effectively suppress a kernel event that is crashing my display manager.
I have been successful suppressing the kernel event manually by:
udevadm control -s # Suspend queue…

Frobozz
- 173
- 8
0
votes
1 answer
During which dracut hook can a PXE client rename predictable interfaces names with a udev rule?
tl;dr: During load of an initramfs (execution of dracut modules) on a PXE client, I need to rename the kernel-given (predictable) interface names (right now they're unpredictable ethX names). This way, the PXE client will always boot from a…

brimhalgh
- 1
- 1
0
votes
2 answers
How to deal with dynamic drive name when device mounting hard drives to LXC on Proxmox?
Question
Setup
On a Proxmox server I create an LXC container with:
pct create 101 local:vztmpl/centos-8-default_20201210_amd64.tar.xz --features mknod=1,nesting=1,fuse=1 --ostype centos --storage=CTVM --description "centos glusterfs" --hostname…

mikeLundquist
- 101
- 2
0
votes
2 answers
Permissions of /dev/null wrong in KVM guest
My host node is RHEL7 running KVM from the 'updates' repo. On the host node, the permissions for /dev/null are:
crw-rw-rw-. 1 root root 1, 3 Dec 18 04:45 /dev/null
In an Alpine KVM guest (5.14, but same behavior on other versions), the permissions…

tater
- 1,445
- 2
- 10
- 12
0
votes
0 answers
Remote access to `/dev/input` fails with permission error
I need to open a USB game controller device (joystick) remotely. This device is physically connected to server and is available for local user with permissions:
crw-rw-r--+ 1 root input 13, 0 ** /dev/input/js0
Using sshfs on client side, I mounted…

zlg
- 1
- 1
0
votes
0 answers
USB Drive at the same location on FreeBSD
I have a number of USB drives that are attached to a FreeNAS server. These are then used as offline backup targets. One problem is that the order that the drives are plugged into matters.
On a Linux based system, I would use udev rules to ensure…

tl8
- 131
- 2
- 4