New answers tagged

7 votes
Accepted

How to apply udev rule to a non-partitioned local disk?

You should be matching on SUBSYSTEM=="block", ENV{ID_SERIAL}=="xxx" (the brand/model AND serial number) anyway. Or ENV{ID_SERIAL_SHORT} (only the serial number). Or ENV{ID_WWN} (...
user avatar
  • 68k
2 votes

Why to use udev rule to insure persistent naming/permission instead of mknod?

The biggest reason is that udev rule is "automatic" -- every time a new device is connected (or discovered during boot), udev will process all the rules files so you don't need to do ...
user avatar
2 votes

Why to use udev rule to insure persistent naming/permission instead of mknod?

Why ? Reliability ! The major and minor device numbers are allocated when the driver detects a new device and, when a device is removed, these device numbers are freed and can be reused later. The ...
user avatar
  • 2,860
-1 votes

automount disks but with dev name, not some random numbers

The mounting and the mountpoint naming is done by UDisks and the name is chosen (in order of preference) as one of: filesystem label, filesystem UUID or disk + number as a fallback if both label and ...
user avatar
0 votes

udev rule to run shell script when any hard drive is hotswapped

Nature of the problem The problem you are running into is that udevd does not run in the root linux kernel namespaces by default in Ubuntu. # ps -axe -o user,pid,ipcns,mntns,netns,pidns,userns,utsns,...
user avatar
0 votes

Setting persistent name for usb serial device with udev rule without symlink

Ok so I think I solved the problem by following this post. udev rules for USB serial 'by path' not working I booted up the compute module with everything connected and the ports appeared as ...
user avatar
1 vote

What is `/dev/sda0`? Is it a standard thing?

The short answer is no. The interface promises between kernel and userspace does not include the device numbers. it may be any numerical value and may even differ when you reboot to a newer kernel. ...
user avatar
5 votes

What is `/dev/sda0`? Is it a standard thing?

It's not clear whether your question is Linux-specific, but in case not, a FreeBSD system would regard /dev/da0 as the first disk drive on the system, at least for SCSI (and USB) drives, and perhaps ...
user avatar
  • 5,595
6 votes

What is `/dev/sda0`? Is it a standard thing?

I've seen this, on a system without udev, one for which mknod would not second-guess you (I used a system for awhile where putting in the wrong major+minor was fixed by makenod somehow), and using the ...
user avatar
  • 1,713
17 votes
Accepted

What is `/dev/sda0`? Is it a standard thing?

I’m not aware of /dev/sda0 ever being a standard device name, even on other Unix systems. And as far as I can tell, references to sda0 are likely mistakes rather than indications of a custom setup. ...
user avatar
1 vote

udev rule for wacom tablet that has changing IDs

For future readers, this works. xsetwacom --set "Wacom One by Wacom M Pen stylus" TabletPCButton on
user avatar
0 votes
Accepted

Finding the /dev/input/event* path of a device from its name

You want to set up a udev rule to provide your device with a persistent symlink. Start by running udevadm info -a /dev/input/eventXX for whichever device currently represents your gamepad. You'll see ...
user avatar
  • 24.8k

Top 50 recent answers are included