Questions tagged [udev]
111 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
5
votes
2 answers
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 physically.
I have an 8-bay external JBOD enclosure…

dimus
- 317
- 1
- 3
- 10
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
- 1,000
- 2
- 7
- 25
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,111
- 1
- 21
- 35
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
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
- 493
- 9
- 20
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
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 them as SATA. My problem is that I need to use…

Nima Mohammadi
- 33
- 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
0 answers
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 example. We have instances where Thin Clients are…

Jeremy T.
- 31
- 1
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…

에이바
- 642
- 5
- 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
- 5
- 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
- 5
- 15