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

learn more… | top users | synonyms

3
votes
1answer
205 views

Removing device from USB hub triggers udev event for removing hub

I have a udev rule to halt the system when a usb hub is removed: SUBSYSTEM=="usb", ACTION=="remove", ENV{ID_VENDOR_ID}="050d", ENV{ID_MODEL_ID}="0237", RUN+="/sbin/halt" Unfortunately, this also ...
2
votes
0answers
209 views

Failed to execute shell script from “network” udev rule to change the MAC-address

I am trying to execute a shell script from udev rule, when a network interface is added, as follows: SUBSYSTEM=="net", ACTION=="add", KERNEL=="eth*", PROGRAM="/usr/local/bin/changemac.sh", ...
1
vote
1answer
450 views

Reserve Ports for modem

I have a modem with 16 ports using for sending SMS. When it's connected to my Linux machine, I get 16 ports from ttyUSB0 to ttyUSB15. Currently if I remove this modem and attached another it,I get it ...
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 ...
2
votes
0answers
119 views

Can a FAT32 and NTFS file system exist without UUID?

I have an USB disk drive partioned with 2 FAT32 partitions, which is not getting detected in the embedded device, but gets detected in a Fedora system. Basically in the udev rules, I am not able to ...
1
vote
2answers
507 views

RHEL 5.5 - Need to refresh /dev/disk/by-label links

I've added a fibrechannel disk to a RHEL 5.5 server. The disk is present and shows under /dev/sdxx - But I need to give udev a kick and have it refresh the /dev/disk/by-label/LABEL links; this is ...
3
votes
1answer
1k views

FUSE : Allow any user in the fuse group to unmount

I'm currently trying to write a couple of systemd/udev configuration files that will allow me to automount/unmount MTP Android devices on my Archlinux laptop. It took me some time, but so far it works ...
4
votes
1answer
671 views

How does udev create /dev/sr*? (Or: Which rule does create /dev/sr*?)

udev is responsible for populating /dev. It adds and removes device nodes to /dev dynamically based on rules/configs/scripts under /lib/udev and /etc/udev/. If I have a CDROM device node /dev/sr0 I ...
3
votes
2answers
3k views

building my own initrd, how to populate dev directory

I am trying to learn stuff about initrd. I have followed this tutorial to build my own initrd from scratch, and I installed busybox on it. Then I made an .iso from it with isolinux, so I could test it ...
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 ...
1
vote
1answer
929 views

Network Interface Names output from ifconfig

So this has been driving me nuts for a good couple of hours, so I thought I'd ask about it here (let me know if there's a better forum for this question). I have a CentOS Virtual Machine on ESXi. I ...
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 ...
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
1answer
777 views

Udev usb mouse rule

I am pretty new to udev and wanted to write a rule that upon connecting an usb mouse disables my touchpad. This is what I have come up with(mostly by ear): ACTION=="add", SUBSYSTEM=="input", ...
6
votes
2answers
1k views

Auto-run script when Wifi card is plugged in (udev)

I've been trying to use udev to make a Debian system run a bash script when a wireless card is connected. So far I created this file /etc/udev/rules.d/wifi-detect.rules: ACTION=="add", ...
7
votes
1answer
4k views

Understand output of `udevadm info -a -n /dev/sdb`

I plug an external HDD into my laptop. I try to find out the information by $ udevadm info -a -n /dev/sdb Udevadm info starts with the device specified by the devpath and then walks up the chain of ...
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?
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
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 ...
2
votes
1answer
243 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 ...
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 ...
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 ...
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 ...
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 ...
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
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
0answers
354 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 ...
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 ...
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, ...
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-* ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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
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 ...
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 ...
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
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 ...