Questions tagged [udev]

111 questions
0
votes
1 answer

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 more than one LAN interfaces, and someone is…
schweik
  • 263
  • 2
  • 9
0
votes
0 answers

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 works as tty device. I need to run a script, which…
mkudlacek
  • 1,677
  • 1
  • 11
  • 15
0
votes
2 answers

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.0 root@home:~# to: root@home:~# udevadm info -a…
Brad
  • 289
  • 4
  • 10
0
votes
0 answers

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« existiert bereits als Systemgruppe.…
develth
  • 101
  • 4
0
votes
1 answer

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 to apply every rule that it knows about. But I want…
Stu
  • 2,198
  • 2
  • 16
  • 23
0
votes
2 answers

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 symlink to /dev/sda1 which is a partition of /dev/sda…
0
votes
1 answer

How to find device in /dev

I have added a new virtual pci device to my debian6 VM (Virtual Machine). I can see the device via "lspci" command, but I cannot find it in /dev. Is it because it's not installed properly or it needs additional drivers or I just can't find the…
0
votes
1 answer

what is the use of /etc/udev/rules.d/70-persistent-net.rules file in rhel?

what is the use of /etc/udev/rules.d/70-persistent-net.rules file in linux? is anyother way to change interface name in linux other than 70-persistent-net.rules? Thanks.
user1812956
  • 85
  • 1
  • 3
  • 10
0
votes
1 answer

hotplugging drives from a fibre-channel cabin reports wrong size

First thing, we are not even sure this is a udev problem, but we need somewhere to start asking... We have a Hitachi fibre-channel SAN serving volumes to a couple of machines running ubuntu server 12.04 amd64. For mapping purposes we use the…
NublaII
  • 63
  • 4
0
votes
1 answer

udev only reports events for a USB device configuration, not for the USB device itself

I'm trying to execute a certain Python script on USB devices insertion. I need to handle all kinds of USB devices. I'm using a rule like this: SUBSYSTEMS=="usb", ENV{DEVTYPE}=="usb_device", RUN+="/.../test.py $devpath" When I insert a USB flash…
0
votes
2 answers

howto remove udev from centos(lxc-guest) without dependencies

i downloaded a openvz template for my lxc server to create a new centos 6.3 guest. Now the guest is not starting because udev is hanging in the boot process. Last time i didn't had this problem but now i have to disable or remove udev from the…
user61664
  • 103
  • 3
0
votes
1 answer

Force the unloading of a kernel module when the USB devices is unplugged?

I'm using a MultiTech GPRS modem on Ubuntu 8.0.4 (2.6.24-24 kernel with the MultiTech patches to the ti_usb_3410_5052 module). The device works great. However if I disconnect it and then reconnect without removing the module in between, it hangs. …
Insyte
  • 9,394
  • 3
  • 28
  • 45
0
votes
1 answer

Group access to device using udev

Short question. Is it a good idea to give a group of users access to certain devices by writing your own udev rules in linux? If not, what would be a better approach? I want the changes to be persistent and it is not sufficient to manage the…
lode
  • 121
  • 1
  • 3
0
votes
1 answer

Device names on hotswap server. (Name by port rather than insert order?)

Is there a way to name devices such that any drive plugged into slot 1 is always named /dev/sda? Rather than just first drive inserted sda even though it's plugged into the last slot, second sdb wherever it goes, etc... Edit (after more…
0
votes
2 answers

After applying patches and rebooting, RHEL 5.3 hangs on udev

I suspect that one of the packages in the last system updated is causing problems with the system rebooting. When I reboot, the server hangs on udev. Here are a list of the updates that preceeded the problem: Oct 21 18:04:03 Updated:…
a coder
  • 789
  • 4
  • 20
  • 38