Questions tagged [udev]

Udev is a Linux process that manages device file entries under /dev

Udev is a Linux system process that manages device names and device file creation. It listens to events from the kernel and adds or removes entries under /dev based on configurable rules.

Further reading

1059 questions
315
votes
8 answers

How to reload udev rules without reboot?

How should one reload udev rules, so that newly created one can function? I'm running Arch Linux, and I don't have a udevstart command here. Also checked /etc/rc.d, no udev service there.
daisy
  • 53,527
  • 78
  • 236
  • 383
163
votes
5 answers

Why is my ethernet interface called enp0s10 instead of eth0?

When I run ifconfig -a, I only get lo and enp0s10 interfaces, not the classical eth0 What does enp0s10 mean? Why is there no eth0?
Nico Rodsevich
  • 2,265
  • 3
  • 15
  • 17
114
votes
6 answers

How can I find available network interfaces?

This is in regard to linux, but if anyone knows of a general *nix method that would be good. I booted a system yesterday with an ethernet cable plugged in. "NetworkManager" is not installed, so once it started I went to look for the name of the…
goldilocks
  • 86,451
  • 30
  • 200
  • 258
92
votes
4 answers

Why are network interfaces not in /dev like other devices?

I'm mostly curious, but why aren't network interfaces in /dev? Are there any other kinds of devices that aren't represented as a node under /dev?
andyortlieb
  • 1,021
  • 1
  • 7
  • 6
75
votes
11 answers

A tool for automatically applying RandR configuration when external display is plugged in

is there a tool which enables one to: remember current RandR configuration (position, orientation, resolution etc) on per-monitor basis, automatically apply last known good configuration as soon as the display is plugged in, with no need to muck…
Yaroslav Fedevych
  • 913
  • 1
  • 7
  • 7
58
votes
8 answers

How can I detect when a monitor is plugged in or unplugged?

Is there any event that is triggered when I plug in or out an external monitor into the DisplayPort of my laptop? ACPID and UDEV don't react at all. I'm using onboard graphics on an intel chip. Here is a similar discussion which is already a couple…
janoliver
  • 1,776
  • 2
  • 19
  • 34
49
votes
2 answers

How to run custom scripts upon USB device plug-in?

What is the state-of-the-art method for automatically executing custom scripts upon USB device plug-in under current Linux distributions like Debian/CentOS/Fedora? For example if you want to automatically mount/copy some files/umount a USB mass…
maxschlepzig
  • 56,316
  • 50
  • 205
  • 279
48
votes
4 answers

How to execute a shellscript when I plug-in a USB-device

I want to execute a script when I plug in a device in my Linux machine. For example, run xinput on mouse or a backupscript on a certain drive. I have seen a lot of articles on this, most recently here and here. But I just can't get it to…
Redsandro
  • 871
  • 1
  • 9
  • 17
42
votes
1 answer

Difference between /dev and /sys/class?

What is the difference between the device representation in /dev and the one in /sys/class? Is one preferred over the other? Is there something one offers and the other doesn't?
TheMeaningfulEngineer
  • 5,735
  • 15
  • 64
  • 113
41
votes
3 answers

Why do some Linux distributions still have /dev/ttyS0, ttyS1, etc., even though newer computers don't have such a serial port?

Many new laptop and desktop computers do not have 9-pin/25-pin serial ports. Why do many Linux distributions still contain /dev/ttyS0, dev/ttyS1 device files? Since udev can create the device files dynamically, why are /dev/ttyS0, /dev/ttyS1 still…
cifer
  • 611
  • 1
  • 7
  • 10
38
votes
2 answers

In which log should I check for udev errors?

I've written a udev rule which is run each time my device is mounted/dismounted. However, in which Linux (Debian) error log should I check when debugging such rules?
eoinoc
  • 1,841
  • 7
  • 23
  • 30
36
votes
1 answer

What happens when Linux goes out of letters for drives?

Let’s say I have 50 USB flash drives. I assume they get to be /dev/sda to /dev/sdz. What comes after /dev/sdz?
DEKKER
  • 834
  • 8
  • 18
35
votes
5 answers

Difference between sdX and vdX

When I use Ubuntu and CentOS, I see /dev/sda and /dev/vda. So I can't understand what is the different between above two?
Supun Rathnayake
  • 477
  • 1
  • 5
  • 8
34
votes
1 answer

How to assign USB driver to device

This question is two-fold: First, how do you manually detach a driver from a USB device and attach a different one? For example, I have a device that when connected automatically uses the usb-storage driver. usbview output Vendor Id: xxxx Product…
linsek
  • 450
  • 1
  • 6
  • 12
32
votes
1 answer

/etc/udev/rules.d/ vs /lib/udev/rules.d/ - which to use and why?

The Arch wiki recommended creating a file in /etc/udev/rules.d/ to fix my Steam controller issues. This worked! However, I noticed that there are no other rules in this folder except for the one I just created. Additionally, all other sources I've…
Aaron Franke
  • 905
  • 3
  • 13
  • 24
1
2 3
70 71