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

learn more… | top users | synonyms

7
votes
2answers
2k views

How can I hide messages of udev?

When I plug in a usbhub (7 sticks in) udev displays a lot of messages in console. Can I hide these messages or send them to /dev/null?
4
votes
1answer
827 views

Problems copying large files to USB drive

I've got some issues when copying larger files to my USB drive. First of all, my system stopped recognizing my USB drives automatically. I now have to run modprobe usb-storage in order for my USB ...
1
vote
1answer
151 views

Monitoring interface changes with udev, especially if a route is set

Is there a way to monitor interface up/downs, especially to check if a route is setup or removed, with udev?
2
votes
0answers
2k views

Understanding udev rules and permissions in libusb

I had a problem with my scanner. Xsane worked only as root. Using it as normal user it didn't find any devices. Adding the user to the groups saned or scanner didn't help. Finally I solved the ...
0
votes
0answers
356 views

Automount in Xfce4 just stopped working

A little while ago my usb drives stopped auto mounting. It might have been after an update but not sure where to look. I have been manually mounting them as root and that is a pain. Is there maybe ...
2
votes
1answer
244 views

Prevent specific USB device from automounting

I have a SD card which is always inserted in my SD-card slot. However, I do not often use it (but do not want to take it out). Currently, it's being auto-mounted every time I start my computer. I feel ...
5
votes
1answer
2k views

Udev rule is not being used?

I'm setting up udev to handle my external USB hard drive when it gets plugged in and removed (no mounting yet). So far, I've made two new rules in /etc/udev/rules.d/10-local.rules to log ...
1
vote
0answers
376 views

How to achieve fast user switching with multiple graphics adapters, prevent virtual terminal switch?

My boxen has two video nVidia graphics adapters which I'd like to assign to separate seats, including virtual terminals. This question most likely isn't display manager specific, but in this case I'm ...
24
votes
4answers
31k views

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.
0
votes
0answers
485 views

upstart-udev-bridge is using 100% CPU (and a known fix doesn't help)

I'm running Linux Mint 12 on a Latitude D630 and every time I start my laptop (and sometimes when I come back from being suspended), top shows that upstart-udev-bridge is using 100% CPU (and if I do ...
3
votes
1answer
456 views

udev randomly mixing up ethernet devices on Debian Squeeze

Installing Squeeze with newer kernels on servers with 4, 6 or more interfaces, I keep getting this really annoying problem: interfaces are always mixed up across cards, and don't even follow ascending ...
4
votes
1answer
1k views

Udev triggers are not firing on insert of CF card into USB card reader (anymore)

I've got a udev rule that triggers a shell script that copies photos off my CF card when I insert the card into my USB card reader. This worked fine for a while. But after a recent upgrade it has ...
8
votes
2answers
4k views

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?
3
votes
1answer
75 views

Starting backintime at disk plug

I use backintime, you can tell it to backup via backintime -b as user (not root, but I can change that if needed). Now I'd like it to start as soon as I plug my backup hd. As udev is likely the right ...
3
votes
1answer
230 views

UDEV assign ATTRS{variable} to ENV{variable}

I am writing my first udev rule. I read many how tos but can't find a way to assign ATTRS{variable} to ENV{variable} in order to have access to that variable from RUN like ...
2
votes
2answers
2k views

Where is the official udev source and other dev information?

I'm trying to find a changelog or commit history for udevd, but I can't seem to find the official source. Where is that?
2
votes
0answers
355 views

Automatically update MPD database upon external storage insertion

I have an Alix board in my living room running Voyage MPD edition and acting as jukebox. In order to play "guest" music, I would like that MPD automatically updates its database with the content of ...
2
votes
1answer
305 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
1k 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 ...
16
votes
2answers
10k 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
359 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
8k 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
1k 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
120 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 ...
3
votes
3answers
9k 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
436 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
118 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 ...
4
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
512 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
142 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.
31
votes
3answers
2k 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
118 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
709 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
711 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 ...
30
votes
5answers
5k 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
3k 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
347 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
1k 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
1k 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 ...
22
votes
5answers
7k 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
898 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 ...