Questions tagged [udev]

106 questions
5
votes
4 answers

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 script runs backing up everything to the HD. The…
Daniele
4
votes
1 answer

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'd like to execute the script automatically when…
STW
  • 960
  • 1
  • 7
  • 24
4
votes
2 answers

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 of them.] Usually I simply rm…
Sammitch
  • 2,072
  • 1
  • 20
  • 34
4
votes
1 answer

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 now connected to a new server running CentOS 6.3.…
ACKumen
  • 61
  • 2
4
votes
2 answers

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 there anyway of logging when a USB device was…
Schodemeiss
  • 230
  • 1
  • 2
  • 7
4
votes
4 answers

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 ttyS3. Unfortunately I am trying to run some…
davefiddes
  • 153
  • 1
  • 1
  • 7
3
votes
2 answers

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: GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0" I have no files…
mjr
  • 31
  • 2
3
votes
2 answers

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 slot 1 unlocked. ... # Udev cookie 0xd4d949a (semid…
cronburg
  • 171
  • 5
3
votes
2 answers

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-wNPs-3GIQ-b2zQ-yOeH-2fBS87 (created here) takes…
에이바
  • 612
  • 4
  • 11
  • 34
3
votes
1 answer

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 setup three really big 15 drive RAID6 arrays. However,…
Matt Mencel
  • 369
  • 4
  • 13
3
votes
1 answer

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 to switch to ATTRS{}=="" to get it to work. Now…
Cyclone
  • 557
  • 4
  • 15
3
votes
2 answers

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 email whenever usb is attached and removed. but…
Kashif
  • 473
  • 9
  • 20
3
votes
1 answer

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…
David Huff
  • 31
  • 2
3
votes
1 answer

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 that attempts the following? KERNEL=="sdb",…
mnology
  • 33
  • 1
  • 5
3
votes
1 answer

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 rules that map network aliases to MAC addresses of…
Anonymous
  • 1,540
  • 1
  • 14
  • 18