New answers tagged udev
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} (...
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 ...
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 ...
-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 ...
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,...
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 ...
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. ...
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 ...
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 ...
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.
...
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
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 ...
Top 50 recent answers are included
Related Tags
udev × 979linux × 212
usb × 155
systemd × 96
devices × 84
debian × 80
ubuntu × 64
arch-linux × 46
mount × 40
usb-drive × 39
networking × 38
keyboard × 33
shell-script × 32
usb-device × 32
automounting × 31
block-device × 29
network-interface × 25
kernel × 24
bash × 22
drivers × 21
raspberry-pi × 20
serial-port × 20
permissions × 19
centos × 18
linux-kernel × 18