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

learn more… | top users | synonyms

2
votes
1answer
309 views

Differentiate between Galaxy Nexus and Galaxy Tab in UDEV rule?

I love Samsung devices, I have a Samsung Series 9 Laptop, Galaxy Nexus Phone (SCH-i515), and a Galaxy Tab 8.9 (GT-P7310) Tablet. For the most part, they're all great products. Samsung made one major ...
5
votes
1answer
2k views

How do I disable udevd in systemd?

I'm trying to boot a Fedora Rawhide LXC container from a Fedora 16 host, and it's not working - systemd just keeps dropping into emergency mode. Because udevd doesn't work in LXC containers, I thought ...
4
votes
3answers
2k views

Why is pcmanfm such a headache when it comes to mounting filesystems?

If I would have known how much 'customization' it takes to get LXDE and its default file manager, pcmanfm, just working, I would probably have never chosen to try it. I've got a problem. Lots of ...
4
votes
4answers
3k views

UDEV rule when USB flash drive is unplugged

I wrote a rule to automount my USB stick to certain folder but when I unplug it the folder still mounted and when I ls there I see a lot of errors like: Directory bread (block: NNNN) failed I tried ...
17
votes
2answers
13k views

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 ...
2
votes
1answer
384 views

udev weirdness: /dev/hda1 mounted but file not present

I think my question is related to udev and/or udisks, but I am really not sure at all what's going on here. To start with, my system works more or less fine. The less part is due to the fact that, ...
17
votes
1answer
10k views

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 ...
5
votes
2answers
2k views

Making UDEV ignore certain devices during boot.

I'm trying to make UDEV stop mounting one of my devices at boot time, and I've created a rule in /etc/udev/rules.d/ called 1-myblacklist.rules. All the rule does is matches the device by kernel ...
1
vote
0answers
123 views

Program does not terminate when called from udev

I've written a program in C#/Mono that probes a device to determine if it is a modem. The program works fine from the command line. However, when it is called from PROGRAM= in a udev rule, the ...
4
votes
3answers
10k views

Automounting USB sticks on Debian

I'm running Debian Squeeze on a plug computer (so SSH only, no GUI) and what I'm trying to do is get it so that when a USB stick is plugged in, it gets automatically mounted. What I've done is ...
2
votes
0answers
475 views

Access a variable by name in udev?

I'm trying to get access to the partition type (the one-byte field in the master boot record) in udev, so that I can set ownership and permissions based on partition type. The challenge is of course ...
3
votes
2answers
119 views

Where to install local software that runs before /usr is available?

I'm writing a local program to be called by a udev IMPORT{program} rule. Normally, I'd install local software in /usr/local, but these udev rules are run when block devices appear. So they're running ...
5
votes
2answers
3k views

Permanently changing the ownership (or group) of LVM volume

How can I permanently change the ownership (or at least the group) of a LVM volume? I figured that I have to use udev, but I don't know how the rule should look like? Let's say I want to change the ...
8
votes
2answers
568 views

What's the difference between udev and hald?

I'm just beginning to dive into the internals of Linux, and I was wondering what the difference is between udev and the hal daemon. From what I gather, both seem to be responsible for managing hot ...
0
votes
1answer
148 views

How check which user plug in device

I have some rules for example: KERNEL=="sdb[1-9]", RUN+="some_script.sh" In some_script.sh how can I determine which user is plug in device.
32
votes
3answers
3k views

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?
3
votes
2answers
121 views

Reference material about device management

Can anybody recommend materials about device management in the Linux environment? From the point where I insert a cdrom or usb device to the point where it is mounted in /media/somedir. I know that I ...
2
votes
2answers
3k views

Where is udev getting the ID for iSCSI devices?

I'm using iscsi-initiator-utils successfully to use some iscsi devices on CentOS 5, and I have some symlinks created by udev in /dev/disk: # ls -l /dev/disk/by-path/ip-* /dev/disk/by-id/scsi-* ...
0
votes
2answers
735 views

Detecting monitor on boot time?

I am using my laptop in several monitor configurations that do require xorg.conf (say, I am driving a T221 from my laptop) and it's very inconvenient to manually switch them. Is there something in ...
4
votes
1answer
761 views

Change permissions for LEDs (e.g. ThinkLight) with udev

/edit/ Getting the question more generic: How can I change the permissions to alter the state of a LED/light using udev? \edit\ I've got a Thinkpad and would like to use the ThinkLight (the ...
6
votes
2answers
1k views

mknod permanent in archlinux

I have a custom kernel module (on ArchLinux) that I can load manually and interact with. What I would like to do is have it loaded at boot time. So far I have managed to get the device appear in ...
3
votes
1answer
3k views

xrandr command not executed within shell command called from udev rule

I own a Thinkpad with an UltraBase (a docking station). My operating system is Ubuntu 10.10. Now, I would like to react on the "docking" event by setting the resolution of my external display ...
3
votes
1answer
1k views

script does not behave properly when called by acpi and udev events

I have the following files in /etc/acpi/events and /etc/udev/rules.d /etc/acpi/events/lidclose # Pass all events to our one handler script event=button/lid action=/etc/acpi/monitors.sh ...
31
votes
5answers
7k views

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 ...
7
votes
1answer
1k views

Suggestions needed for udev, udisks, autofs, notification setup for a complete automounting solution on Linux

Continuing on Automounting plugged devices in linux, which left things a bit basic. Running Gentoo, I'm automounting a combination of local and network devices on my laptop with autofs-5.0.4-r5. Doing ...
2
votes
1answer
3k views

How to troubleshoot udev not creating /dev/hda3 on gentoo boot?

My old gentoo laptop seem to have an issue with udev probably due to me updating software using emerge, upgrading udev+kernel, getting some messages "do these things after upgrading udev/kernel" and ...
3
votes
2answers
4k views

Arch Linux not booting after system update

After running a system update pacman -Syu with the testing repo not commented, my computer no longer boots. It shows the udev loading, then shows a black screen with a cursor blinking in upper left. I ...
2
votes
1answer
381 views

Removing the [ OK ] From start_udev

Under /sbin/start_udev, how can I remove the [ OK ] so it's not printed? I'm trying to change /etc/rc.sysinit to display the information I like, and I have managed to remove all the info output ...
4
votes
2answers
2k views

udev rules don't appear to be working

I'm running Arch Linux on my server, and I need to let users of the group usb access my weather station. Here's my rule: /etc/udev/rules.d/usb-70.rules SYSFS {idVendor} == "1941", SYSFS {idProduct} ...
9
votes
3answers
2k views

Fake serial number of USB device

I have a mobile phone connected to my PC via USB. When viewing the device info using sudo udevadm info --attribute-walk the product and vendor id's show up fine, but there is no ATTR{serial}. An ...
28
votes
7answers
8k views

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 ...
3
votes
2answers
948 views

Auto-mounting to a directory other than /media in Fedora 13

I am using Fedora 13. I need to be able to configure how media are mounted automatically. For an example, I want to change the parent of all mounted media to be a directory other than /media. All the ...
4
votes
1answer
2k views

Preventing mounting some partition by user (gnome+udisk)

I'd like to prevent automounting one partition (known UUID etc. ) on one external harddrive. Others should be automounted. Distro is 'modern' (uses lots of beta software) and uses udisk+udev for ...