Questions tagged [udev]

The tag has no usage guidance.

0
votes
0answers
11 views

What N600 mean in disk_id mean in /dev/disk/by-id/

I wanted to generate the file names inside the directory /dev/disk/by-id/. with lsblk i get $ lsblk -o name,model,serial NAME MODEL SERIAL sda HGST HUHXXXX12AL XXXXXXXX ...
4
votes
1answer
129 views

How to determine “Predictable Name” of network interface

I am setting up a new server and installed Ubuntu Bionic, which uses Predictable Network Interface Names. The installer is running on a rescue system, which still uses old interface names like eth0, ...
0
votes
0answers
21 views

Possible to add custom attributes with udev?

I'm playing around with udev for the first time. I found plenty of documentation that's helpful but one thing I'm still unsure of and can't find an answer to is if it is possible to add a custom ...
0
votes
0answers
79 views

udev 70-persistent-net.rules lines removed

I administer an EC2 instance running Ubuntu 18.04 for a client's app. The app expects network interface names that begin with enp. EC2 instances have network interfaces named eth0, eth1, etc. To ...
0
votes
0answers
75 views

Rename network interface based on MAC without matching bridge

In Ubuntu 18.04, I have an ethernet adapter that I rename to primary-eth, in a bridge called primary-bridge. I renamed my network adapter with a file at /etc/udev/rules.d/70-persistent-net.rules ...
0
votes
0answers
36 views

X-Org Server - Identify USB Unplug event

In our X-Org server setup, if the server is running and we unplug the USB Mouse then the server doesn't really do anything (no errors or warnings.) If we replug the device, even then the server doesn'...
2
votes
1answer
40 views

Assign static id to usb printer

I have three usb receipt printers from the same vendor (thus the same usb vendor and product id) plugged into the same server and I need to be able to issue separate printing commands to each of them. ...
1
vote
1answer
58 views

Dont use /dev/sd* for removable device

Today I almost erased my system with dd because I was going to write on my internal HDD (/dev/sdb*) instead of the removable usb (/dev/sdc*). I want to make a udev rule to set any block usb under a ...
0
votes
0answers
76 views

udevadm info missing device attributes

I'm seeing the standard RHEL virtio-blk udev rule is not firing sometimes and not creating the /dev/disk/by-id symlink. Having run udevadm info -a /dev/vd* I can see that ATTR{serial} is populated. ...
1
vote
1answer
173 views

Start Webcam App With Systemd On Linux

I have a simple application which streams video with a webcam called "streamer". I'd like to start "streamer" when my Linux device boots with systemd. Next, I have the following systemd, service file,...
1
vote
1answer
208 views

Why does /dev/disk/by-id directory have cdrom device only and which one of /dev/disk/by-X is recommended for creating zfs pools?

Im running a ubuntu 16.04 machine in esxi enviroment, i am going through zfs on linux faq and it recommends to use /dev/disk/by-id for home servers due to inconsistent nature of /dev/sdX names but ...
0
votes
1answer
86 views

How to findout if haldaemon is being used or udev in RHEL server?

I am quite confused if hal is really in use or just udev. What I understood: In general, HAL is an abstraction layer that allows an operating system to interact with a hardware device. And daemon ...
0
votes
1answer
54 views

Right network interface autodetect and get dhcp while boot

While preparing the mini forensic system I hung on a problem: Let us imagine, we prepare a usb-flash booted linux for lot of diferent workstations. While setting up the network (ipv4 dhcp) we can find ...
3
votes
2answers
781 views

SATA disks being identified as SCSI

I have two identical servers with same hardware and cloned Linux OS. They both have Supermicro HBA AOC-S3008L. Yet one server identifies SATA disks as SCSI while the other one correctly identifies ...
0
votes
0answers
448 views

Run script after plugging in USB device of certain vendor ID and product ID

I have a USB device and I need to execute a "infinite" script when I plug in this device and pass the /dev/... path as an argument. The real example is: The device is RFID reader (0403:6001), which ...
1
vote
1answer
236 views

swapon & hibernate on power key

I have a laptop & I run Arch Linux. My laptop has a spinning hard drive rather than an SSD, so I hate swap. However, I need one to hibernate, and I want my laptop to hibernate every time power key ...
2
votes
1answer
407 views

Loopback interface is renamed to rename1

On my Ubuntu 17.04 Server the Loopback Interface keeps beeing renamed to "rename1" during boot (Syslog: rename1: renamed from lo). I tried to disabling renaming by editing grub.conf: ...
0
votes
1answer
759 views

Why does udevadm not provide me a disk serial number when hdparm can?

Compare: root@home:~# hdparm -I /dev/sdb | grep Serial Serial Number: WCJ025C8 Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3....
2
votes
0answers
238 views

Automount ATA/SCSI drives with systemd

I am attempting to automatically mount all ATA/SCSI drives on boot using systemd and udev without utilizing /etc/fstab. This is necessary because filesystems need to be mounted on directories named ...
1
vote
0answers
122 views

Scriptless automount for systemd Linux systems

What is the proper way to do a boot/hot-plug automount for ATA and USB storage devices on Linux systems using systemd without requiring a GUI or a user having to be logged in? It seems that calling ...
0
votes
1answer
2k views

Change interface mac (hw) address using udev rules

I want to set a specific ethernet MAC address for an interface using UDEV rules. I have the following rule: SUBSYSTEM=="net", ACTION=="add", ATTRS{serial}=="50B123", ATTR{address}="00:22:33:44:55:AA", ...
1
vote
0answers
46 views

gnome — create symlinks when mounting a file system

I'm not 100% sure where the problem is... udev or gnome or ... Backstory: I have an "IronKey". I have a udev rule that allows my IronKey to plug into my machine. After I've plugged it in, I go to ...
0
votes
0answers
265 views

apt-get upgrade fails because of max recursion on udev

When i´m doing a apt-get upgrade on my debian jessie ( a vserver from hetzner) machine, i get an error on upgrading the udev package. The Error Output starts with this: addgroup: Die Gruppe »input« ...
4
votes
1answer
947 views

Calling lvcreate from inside the container hangs

I run a container. It has all the capabilities and mounts all the directories from root (except /proc). When I call lvcreate from inside of it I get: # lvcreate -v -L104857600B -n vol1 default ...
0
votes
2answers
829 views

Add swap partition on zram device using udev rule

System: CentOS 7 cat /etc/udev/rules.d/10-zram.rules ACTION=="add", SUBSYSTEM=="block", KERNEL=="zram0", DRIVER=="", ATTR{disksize}=="0", ATTR{disksize}="512M", RUN+="/usr/bin/systemd-run /sbin/...
1
vote
1answer
588 views

Udev rule for changing 'max_sectors_kb' for all 'sd*' devices

I am having a problem creating a udev rule that sets max_sectors_kb to 1024 for sd* (sda,sdb,sdc etc...) devices under /sys/block/. Specifically, a recent kernel change means the max IO is too large ...
5
votes
3answers
9k views

mdadm software RAID isn't assembled at boot during initramfs stage

First, I prefer to mention I've found and read this. I'm running Debian Jessie with a standard 3.16 kernel. I've manually defined a RAID1 array. But it is not assembled automatically at boot time. ...
3
votes
2answers
1k views

Arch cryptsetup hangs on 'waiting for zero'

Cryptsetup was working flawlessly for months, but something I did today on my system now makes it hang: # cryptsetup --debug --verbose luksOpen /dev/sdb home --key-file=/home.key --verbose ... Key ...
2
votes
0answers
221 views

Control /dev/pts/* assignments

I am trying to find a way to create a udev rule for a network connected terminal? Basically I need the rule to say a specific MAC address, or IP, is always assigned pseudo terminal /dev/pts/5 for ...
5
votes
0answers
625 views

udev rule not applied on boot for mounted disk

I'm trying to persist a readahead rule on a mounted drive to use with mongodb. The mount is persisted using /etc/fstab and that works as expected. I have added a udev rule ACTION=="add", KERNEL=="...
0
votes
1answer
480 views

Is it possible to write a udev rule to keep other udev rules from running?

This http://reactivated.net/writing_udev_rules.html says It is important to understand that udev will not stop processing when it finds a matching rule, it will continue searching and attempt ...
1
vote
1answer
621 views

Disk renaming udev rule

I have two separate controllers, SATA and PATA. I would like to rename drives connected to the PATA to hd[a-z], and their partitions to hd[a-z][0-9]. # udevadm info -a -p /sys/block/sdd [...] ...
2
votes
0answers
30 views

Can 'or' logic be used in UDEV for mounting drive with unique UUIDs?

We do a back-up to a LaCie external rugged drive. The drive is then swapped with it's twin in the safe deposit box. While the drives have different serial numbers, for the servers purposes they are ...
0
votes
2answers
177 views

Posix map fs path to syspath

Is there a safe way to map a filesystem path to a /sys/block/ node. For instance on my system (Ubuntu) my / path is mounted from /dev/disk/by-uuid/7f6a93a7-1e63-48a3-a7e3-b336a2f9dbf7 which is a ...
1
vote
1answer
478 views

Script triggered by udev to examine partition tables and test if it's a ceph disk

I'm wanting to trigger using udev under CoreOS a script on disk add/remove. The purpose/goal is to automatically mount ceph data partitions to a specific directory in preparation for starting/...
4
votes
0answers
232 views

udev attribute cannot be set on boot

I'm setting up SR-IOV for my Intel I350 igb on CentOS 6.6 (2.6.32-504.el6.x86_64, udev 147) using udev. I have modified a rule I used in CentOS 7 (3.10.0-123.el7.x86_64, udev 208). When I do "udevadm ...
2
votes
0answers
538 views

Force libvirt to pass always the same device number to the guest on USB device reconnection

I have a HP plotter connected with a USB cable to a debian server through a USB hub. On the server there is a virtualized Windows XP. Everytime I reboot the plotter a different device number is ...
3
votes
1answer
480 views

How can I have Linux execute a bash script when a specific disk is hotswapped in?

I have a set of hard drives which are rotated for offsite backup. There are several steps that need to be performed when one of the disks is reinserted which I've rolled into a simple bash script. I'...
2
votes
1answer
2k views

udev rule running setserial low_latency don't work

My server runs Ubuntu 14.04.1. I created udev rules in /etc/udev/rules.d/09-pps.rules to get GPS with PPS support work. KERNEL=="ttyS0", SYMLINK+="gps0", MODE="0666" KERNEL=="ttyS0", RUN+="/bin/...
27
votes
2answers
21k views

Why is my eth0 called eno16777736?

I've seen http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/, which describes the rationale for consistent/predictable device naming, and then the rules by which device ...
2
votes
0answers
740 views

Are /dev/disk/by-id symlinks unreliable?

I am provisioning a Nova server and Cinder volumes using a Heat template. In order to identify the Cinder volumes attached to my OpenStack server I would like to use the /dev/disk/by-id/... symlinks ...
4
votes
4answers
47k views

location of 70-persistent-net.rules in Centos 7

Please, give me a clue, where it's located? it's not under /etc/udev/rules.d anymore # find / -name "*persistent-net.rules" didn't find anything...
3
votes
2answers
9k views

How to write rules for persistent net names?

I know that a process generates persistent network card names based on rules found in /lib/udev/rules.d/75-persistent-net-generator.rules. I also know how to completely disable this process with a ...
13
votes
1answer
2k views

Why did rebooting cause one side of my ZFS mirror to become UNAVAIL?

I just recently migrated a bulk data storage pool (ZFS On Linux 0.6.2, Debian Wheezy) from a single-device vdev configuration to a two-way mirror vdev configuration. The previous pool configuration ...
2
votes
2answers
285 views

Consistent Naming of 10gbps Interfaces on Dell Host

I have some Dell hosts in our environment. I would like to be able to provide consistent network interface naming across platforms. I know that biosdevname attempts to make the interfaces consistent ...
3
votes
2answers
15k views

LVM: Duplicate VG name VolGroup00

I'm on a server that shows a duplicate VG name. How can I rename one of these VolGroups to get rid of this conflict? [root@dev-server dev]# lvs WARNING: Duplicate VG name VolGroup00: zOuHvA-QTBR-...
4
votes
2answers
2k views

Boot failure with root on MD (RAID1) + LVM: udev event timing

A fresh install of Ubuntu Server 13.10 (x64) is having problems booting from its root volume located in md+lvm. I've kludged a solution for now, but I'd like to understand more about what's going on ...
1
vote
1answer
351 views

ID_FS_LABEL empty for luks volume

I have an LUKS encrypted partition on a disk. I would like to label it and have it available at /dev/disk/by-label. The value used is ID_FS_LABEL to create the link in /dev/disk/by-label. That value ...
-1
votes
1answer
1k views

Linux “/dev/SDA” goes read only file system on SDB device failure [closed]

i have a very peculiar issue that is running in my system. Using debian linux : My system boots up very normally with a primary and secondary hard disk. suddenly my secondary hard disk fails with ...
0
votes
1answer
2k views

How can I inform a script called from a udev rule of the device that triggered the rule?

I've got a udev rule ACTION=="add", SUBSYSTEM=="block", KERNEL=="vd[c-z]", ENV{DEVICE_NAME}="KERNEL" RUN+="/usr/local/bin/udevtest" where devices vd[c-z] trigger the rule and call my script. I am ...