Skip to main content

Questions tagged [udev]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
27 votes
2 answers
22k 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 ...
Dmitry Minkovsky's user avatar
15 votes
1 answer
3k 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 ...
user's user avatar
  • 4,455
11 votes
3 answers
8k 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, ...
pymkin's user avatar
  • 275
7 votes
4 answers
23k 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. ...
Sun Wukong's user avatar
6 votes
4 answers
69k 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...
Shirker's user avatar
  • 579
6 votes
3 answers
10k views

Ubuntu: disable udev's persistent-net-generator.rules

I'm using Ubuntu 12.04 LTS server edition and I am modifying /etc/udev/rules.d/70-persistent-net.rules to define my own mappings of ethernet interfaces to MAC addresses; that file is initially ...
Luke404's user avatar
  • 5,918
6 votes
2 answers
30k 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 ...
ndemou's user avatar
  • 1,365
6 votes
4 answers
7k views

How do you specify static mount points for removable usb drives?

I have a bunch of usb ports and hubs. When you attach usb thumb drives, Linux assigns them to virtual block devices on a first-come first-serve basis. It creates sdd, sde, sdf, and so on, regardless ...
Nick's user avatar
  • 81
6 votes
2 answers
697 views

How to name drives according to their position in a multi-bay enclosure?

It is important to know a position of a bad drive in a multi-bay device, however default naming of drives e.g /dev/sda, /dev/sdb etc. does not provide a clue where a particular drive is residing ...
dimus's user avatar
  • 337
6 votes
2 answers
3k views

Ubuntu Hardy : Testing for environment variables in udev rules doesn't seem to work

I have a Ubuntu 8.04 LTS (server edition), and I need to write a udev rule for it to act upon plugging a USB thumb drive. However, I need a different action depending on the filesystem of the drive. I ...
Fred's user avatar
  • 303
6 votes
1 answer
2k 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=="...
datacarl's user avatar
  • 161
5 votes
2 answers
4k views

udev rule execute 2 times

I've written a udev rule like this: SUBSYSTEM=="usb", ACTION=="add", RUN+="//root/usbmon/usb add %b" SUBSYSTEM=="usb", ACTION=="remove", RUN+="//root/usbmon/usb remove %b" now this usb script sends ...
Kashif's user avatar
  • 513
5 votes
1 answer
3k 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 ...
zefciu's user avatar
  • 135
5 votes
1 answer
2k views

How to force mdadm to use udev device names rather than /dev/sdX

The question is mostly in the title already. mdadm and /proc/mdstat insist on listing md members by their "traditional" /dev/sdX names. What I want is for them to use the newer udev device names (e.g....
UloPe's user avatar
  • 185
5 votes
2 answers
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 ...
strix's user avatar
  • 109
5 votes
4 answers
2k views

Linux console - programmatical detection of which device a USB storage is assigned to

Every morning 9am we plug an external HD to our office server (always to the same USB port). Every day the HD is new, but all of them are made by the same manufacturer (Freecom). Everyday at 12am, a ...
user avatar
5 votes
1 answer
5k views

Change owner of LVM LV's device node in RHEL5

First time using serverfault, please excuse any breaches of etiquette. I've created several LVM2 logical volumes in local storage on a server, and would like one of the device nodes - not the ...
user avatar
5 votes
0 answers
463 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 ...
Angelos's user avatar
  • 151
4 votes
2 answers
13k views

Execute a command when a device is connected via USB

I currently have a system that backs up my Linux server onto a USB storage device on /media/usb. This all works correctly. However, I actually have 2 drives which we try to swap on a daily basis. Is ...
Schodemeiss's user avatar
4 votes
4 answers
21k views

Remapping Linux serial port device names

I have a server running Debian Linux which has a built in serial port which is coming up as ttyS0. I have a plug in PCI card with two serial ports that are being registered with Linux as ttyS2 and ...
davefiddes's user avatar
4 votes
2 answers
16k views

Can udev be 'restarted' without a reboot?

For the general case let's say that the virtual adapter for eth0 has been removed and replaced with another one. Either due to cloning or, more recently, a rash of MAC address conflicts. [Yes, a rash ...
Sammitch's user avatar
  • 2,161
4 votes
1 answer
837 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'...
STW's user avatar
  • 1,049
4 votes
1 answer
292 views

tape changers on Centos 6 enter flurry of activity upon boot, at udev start

I have two tape-changer robots (Quantum Superloader 3), one with parallel SCSI connectivity, the other with SAS. They were connected to a Centos 5 server, and boot would proceed normally. They are ...
ACKumen's user avatar
  • 61
3 votes
2 answers
24k 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-...
에이바's user avatar
  • 662
3 votes
2 answers
9k 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", ...
Konrads's user avatar
  • 900
3 votes
1 answer
9k views

Creating Persistent Drive Labels With UDEV Using /dev/disk/by-path

I have a new BackBlaze Pod (BackBlaze Pod 2.0). It has 45 3TB drives and they when I first set it up they were labeled /dev/sda through /dev/sdz and /dev/sdaa through /dev/sdas. I used mdadm to ...
Matt Mencel's user avatar
3 votes
1 answer
945 views

udev rules in ubuntu

I was setting up some udev rules in Ubuntu 12.04 for my APC UPSs and I was using the included *-net.rules as reference. When I used ATTR{}=="" matching in my -ups.rules though it didn't work, I had ...
Cyclone's user avatar
  • 567
3 votes
2 answers
3k 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 ...
Nima Mohammadi's user avatar
3 votes
2 answers
3k 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 ...
cronburg's user avatar
  • 171
3 votes
1 answer
2k views

Linux udev persistent net rule

I have a Linux system (Slackware Linux 13.0) with two network interfaces. Let's call them NIC0 and NIC1 My goal is to make NIC0 to appear as eth0 in the system. I know this can be achieved via udev ...
Anonymous's user avatar
  • 1,580
3 votes
2 answers
857 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: ...
mjr's user avatar
  • 31
3 votes
0 answers
570 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 ...
Jeremy T.'s user avatar
3 votes
1 answer
531 views

Udev is creating too many devices

I have built a kernel and root file system for a vortexS86 processor using OpenEmbedded. When it comes up I have hundreds of device entries in the /dev directory. This include such items as: ...
David Huff's user avatar
3 votes
1 answer
5k views

How to change device permissions via udev in RHEL5?

I'm attempting to make the device permissions on a hard drive(/dev/sdb) persistent for a particular group in RHEL5. Can anyone point me to to a proper KERNEL line in /etc/udev/rules that would work ...
mnology's user avatar
  • 33
2 votes
5 answers
7k views

How to change persistent-net-generator.rules to be PCI bus dependent and not MAC based?

I am using CentOS 6.2 with VMware. I often have to clone my systems. Every time I clone it is adds a new rule to 70-persistent-net.rules file like so. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ...
xsaero00's user avatar
  • 255
2 votes
4 answers
7k views

How to make RHEL have persistent local hdd name?

I have 2 identical Dell R720 servers running identical Oracle Enterprise Linux(RHEL)6.4. Both servers (supposedly) configured in exactly the same way. However, one of the servers is behaving ...
Mxx's user avatar
  • 2,382
2 votes
2 answers
4k views

/lib/udev/net.agent causing high CPU usage

We have a number of Soekris boxes running Debian Squeeze. They were installed through an automated process consisting of using deboostrap and copying it unto a Compact Flash card. We use puppet to ...
Antoine Benkemoun's user avatar
2 votes
2 answers
321 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 ...
cheesesticksricepuck's user avatar
2 votes
1 answer
9k views

How to restart udevd on RH/CentOS system?

For udevd there is no init.d script and manual page is not indicating how to restart it either. The process is holding a deleted file (lsof shows) and I need to release it by restarting udevd. How to ...
Alex's user avatar
  • 1,888
2 votes
4 answers
5k views

Understanding the Linux boot process, subsystem initialization, & udev rules?

I'm creating UDEV rules for automounting external drives on a headless server, much in the same way as Gnome-VFS does automounting during a user session. I'm concerned with the rule's behavior at ...
quack quixote's user avatar
2 votes
2 answers
978 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. ...
user1494162's user avatar
2 votes
1 answer
403 views

RHEL8: How to use UDEV to set SR-IOV VF Interface name

The SR-IOV VF is persisted over boot with nmcli connection modify <PF> sriov.total-vfs 3 nmcli connection modify <PF> connection.autoconnect true Then it would create VF interface names ...
user892960's user avatar
2 votes
1 answer
3k 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/...
wenzul's user avatar
  • 225
2 votes
0 answers
127 views

Fix kickstart drift between CentOS 8 Stream behavior and CentOS 9 Stream behavior

I'm facing a weird situation on one of my server on the provisioning process. Here is the machine HW Model: HPE Proliant DL365 Gen 10 Plus with 6x 1.9TB SATA 6GBps SSD disks. What's going on: When I'm ...
Dr I's user avatar
  • 975
2 votes
0 answers
191 views

Autofs and udev rules to restrict usb permissions to groups

I need some help trying to figure out how to restrict the reading and writing access of usb devices. There are two groups on my system: usbreaders: only should have rights to access and read the usb ...
DG DM's user avatar
  • 35
2 votes
0 answers
594 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 ...
user339676's user avatar
2 votes
0 answers
40 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 ...
Edward_178118's user avatar
2 votes
0 answers
990 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 ...
stenio's user avatar
  • 173
2 votes
0 answers
1k 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 ...
larsks's user avatar
  • 45.6k
2 votes
1 answer
3k views

udisks-daemon eating up all my memory

I'm operating a little storage server on debian, over the past months I've noticed the process udisks-daemon eating up almost all available memory. Is this just really aggressive caching or a memory ...
Harrald Vorreitner's user avatar