The kernel's device manager, responsible for the contents of /dev.

learn more… | top users | synonyms

16
votes
1answer
4k views

How do I change the keymap of a single device (Logitech presenter)?

My Logitech R400 presenter sends the following key codes: keycode 112 (keysym 0xff55, Prior) [page up] keycode 117 (keysym 0xff56, Next) [page down] keycode 60 (keysym 0x2e, period) keycode 71 ...
12
votes
4answers
5k views

How to run a script when a distinct flash-drive is mounted?

Is there a way to run a script when a specific USB device is mounted? I keep my videos on a separate USB and would like to run a script that would mount the video folder on the USB device to the one ...
9
votes
2answers
657 views

What happens under the hood when an USB drive is inserted?

Some systems use udev / pmount to automatically mount thumbdrives. How is that solved in Ubuntu (specifically, Ubuntu 12.04)? Apparently, neither the pmount package nor the corresponding udev rules ...
9
votes
4answers
8k views

Auto-switch audio to HDMI when HDMI monitor/receiver plugged into laptop

I have a laptop with an HDMI port. While we're homeless and staying with friends I've been plugging it into their surround sound receiver with an HDMI cable. To get sound working I have to open up the ...
8
votes
7answers
11k views

What is the correct way to restart udev?

I've changed the name of my eth1 interface to eth0. How to ask udev now to re-read the config? service udev restart and udevadm control --reload-rules don't help. So is there any valid way ...
7
votes
1answer
8k views

How do I set executable permissions on a removable drive?

I'm using Ubuntu 10.10 and using a usb drive but I'm finding that I can't chmod any programs on the drive to +x. It is being auto-mounted by Gnome (using udev, I think?) so I imagine the problem is a ...
6
votes
3answers
5k views

What is the best way to configure a Thinkpad's TrackPoint?

The previously useful ThinkWiki pages appear quite outdated. I am trying to permanently change my TrackPoint sensitivity and speed settings and enable middle mouse button scrolling. I have tried ...
6
votes
1answer
827 views

How do I make noatime mounts default?

I'm making an Ubuntu derivative, and I want to make noatime the default mount option for all filesystems (instead of relatime which is default in Ubuntu). There seems to be a boolean default_relatime ...
5
votes
2answers
4k views

Configure udev to change permissions on USB HID device?

I have a USB scale, a USB HID. Currently, when it is plugged in, the permissions only allow the superuser to access it. How can I configure udev to let anybody access this device? I have the vendor ...
5
votes
1answer
91 views

Why is this udev rule blocking?

Here is a rule from my /lib/udev/rules.d directory: SUBSYSTEM=="input", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="008c", RUN+="/home/mikeknoop/scripts/udev-receiver.sh" Here is the simple contents ...
5
votes
1answer
699 views

How do I hide / remove a partition from the Nautilus left panel?

I have a luks setup with encrypted partition. And I don't want everyone on my computer to see that I have such partition. Unfortunately it shows up in the nautilus "devices" panel as "Encrypted ...
4
votes
1answer
3k views

How does automated hotplug mounting work?

I was reading a bit about gnome-mount, HAL, udev, etc. It left me with a couple of faint ideas how mounting a hotplug device might work in the latest Ubuntu release. Could someone give a detailed ...
4
votes
2answers
1k views

Start script when connecting phone through usb

Trying to run a script when my phone is plugged in via USB, a made a udev rule looks like this in /etc/udev/rules.d/85-lazydroid.rule ATTRS{idVendor}=="22b8", ATTRS{idProduct}=="428c", ...
4
votes
2answers
734 views

Rebuild /dev accidentally deleted

How to rebuild /dev on an ubuntu lucid where all files in /dev were accidentally deleted ? MAKEDEV std and MAKEDEV pty aren't enough, which isn't surprising on a system under udev. I haven't reboot ...
4
votes
0answers
932 views

Run script AFTER automounting usb hdd (udev, mount --bind) [duplicate]

Possible Duplicate: How to run a script when a distinct flash-drive is mounted? When plugging-in my USB HDD, it is mounted automatically, as expected. After that event, I'd like to ...
3
votes
3answers
7k views

How to distinguish between identical USB-to-serial adapters?

I use a number of identical USB-to-serial adapters with my laptop (Ubuntu 9.10). The adapters are manufactured by Sabrent and are built around a Prolific PL2303 IC, as shown by lsusb: Bus 001 Device ...
3
votes
1answer
744 views

Udev webcam rule read, but not respected?

I have two usb-webcams on them machine, but at boot they sometimes switch /dev/video number. The solution to this problem seems to be creating a new udev rule. I have added this rule ...
3
votes
2answers
1k views

How can I create a new socket in /dev?

I want to create a new socket file in /dev. Does the way to get it is adding a new rule to udev?
3
votes
1answer
1k views

Assign fixed path to printer (/dev/usb/lp0)

I have two USB printers. They are assigned a path depending on the order of turning them on. The first one is /deb/usb/lp0 and the second one /deb/usb/lp1. However, I sometimes echo to these printers ...
3
votes
1answer
226 views

virutalbox always get back the same ip

I exported a virtual machine from my work station, and I am trying to renew the ip-address at home. I put one copy on my laptop and one copy on my PC. I've done this sudo rm ...
3
votes
1answer
136 views

Can I prevent an IDENTIFY PACKET DEVICE command to a specific device at boot?

This is related to a previous question related to installation that is now resolved. I'm opening a new question, because I still need to get my DVD drive working. Problem: Failed boot when my ASUS ...
3
votes
1answer
2k views

Ubuntu won't save my settings for thinkpad trackpoint

I'm using Ubuntu 12.04 on a Thinkpad X200. To configure the trackpoint, I use "configure TrackPoint". Unfortunately I can't make Ubuntu saving my settings (concerning the sensitivity etc.). Whenever I ...
3
votes
1answer
235 views

dpkg with no shell

How to run dpkg without shell? Here is my problem: I made and autorun.sh script in my USB key. To run this script, I created rules in /etc/udev/rules/49-usb-rules: SUBSYSTEM=="block", ...
3
votes
1answer
2k views

Problem with executing udev rules for olimex's avr-usb-jtag

I'm using Ubuntu 12.04 for programming purposes and recently decided to bring my previous atmel's micro-controller projects from Win to Linux. Namely AVR. I installed the tool chain all right. It ...
3
votes
1answer
2k views

USB device changes using udev and D-Bus

I am trying to get a list of currently plugged in USB devices in Ubuntu 10.10 and monitor changes that happen, like devices being plugged in or out using udev and D-Bus. I'm fairly new to ...
3
votes
0answers
367 views

udev hide partition in nautilus for specific user/group

I'm trying to hide a partition form a specific group of users in Ubuntu 12.04. I have created a new rule in /etc/udev/rules.d/99-hide-disk.rules with KERNEL="sda3",ENV{UDISKS_PRESENTATION_HIDE}="1" ...
3
votes
0answers
118 views

How can I link some device (given by its device ID) with an specific firmware? [closed]

Imagine I have a new device which it's not working on Linux. I get its device ID with lsusb: Bus 001 Device 003: ID1164:7efdYUAN High-Tech Development Co., Ltd Imagine I know that this device will ...
3
votes
0answers
785 views

Do something when CD/DVD/Blu-Ray inserted [closed]

I have a headless 10.04 server with a BD drive. I'd like to be able to insert a blu-ray or dvd into the drive and have the server immediately begin ripping it with makeMKV/Handbrake. Basically, I need ...
3
votes
1answer
1k views

How do you change udev rules without restarting (e.g. to change eth1 to eth0)?

TLDR; How do you apply changes to /etc/udev/rules.d/70-persistent-net.rules without restarting? (See this documentation about ethernet interface logical names.) Long version: I have a bootable USB ...
2
votes
2answers
511 views

Third mouse-button emulation

Up until version 11.04 of ubuntu I could simply add an option to my X InputClass to emulate a third mouse button for my HP TrackPoint like this: Section "InputClass" Identifier "Trackpoint" ...
2
votes
3answers
1k views

Can udev be used (udev rules) to whitelist certain usb devices?

Can udev be used (udev rules) to whitelist certain usb devices? What I mean is that only devices in a list I create (containing device IDs that I can obtain with lsusb) will be passed on / processed ...
2
votes
1answer
479 views

automatically starting crashplan backup when a usb harddisc is connected

Using CrashPlan I've configured two backup sets: online backup in crashplan's cloud (this is running perfectly) a local backup on a usb harddisc directly connected to the local laptop. The USB ...
2
votes
1answer
322 views

How can I use HAL in recent versions of Ubuntu?

I've found that HAL seems to be the only way to generate events when a CD/DVD/Blu-ray is inserted (if you know of a better way, please reply to this question), so I'm trying to get HAL running on my ...
2
votes
1answer
88 views

How to create udev event that runs a command for mx510 usb mouse?

I have Logitech mx510 mouse which uses 400cpi resolution by default. I want to set it to 800cpi automatically. How can i set a udev rule that runs lomoco -8 when I plug in the mouse?
2
votes
1answer
815 views

NTFS partitions mount as root instead of user as set in /etc/fstab

I recently upgraded a server to Ubuntu 12.04 with a fresh install and my NTFS partitions won't mount as user at boot but I can mount them as user manually from the console with $ sudo mount -a. Using ...
2
votes
1answer
2k views

How can I properly create /dev/dvd?

Certain programs look for /dev/dvd by default to find DVDs, but that doesn't exist on my system for some reason. I'd like it to. /dev/sr0 is always how udev names my DVD drive. How do I ensure that ...
2
votes
1answer
99 views

Fail to mount on boot

I have just created a Ubuntu server and all is working well however at boot I receive the following error message which is causing problems. I am running Ubuntu Server 12.04 Here is the error any ...
2
votes
0answers
105 views

Udev rule gets matched twice with a smartphone in storage mode

I have a problem with an udev-rule, that gets matched always twice when i connect my device. I wouldn't ask here if was not very sure that i made up an absolutely correct rule. I think the problem is ...
2
votes
1answer
236 views

How do I let other users access my /media/[username]/HARDDRIVE with Ubuntu 12.10?

I am trying to let other users access my external 1TB NTFS hard drive mounted automatically at /media/[username]/STORAGE The problem is that by default, udisk2 (present with Ubuntu 12.10) ...
2
votes
0answers
65 views

How can I temporarily suspend Nautilus filesystem automounting, without making permanent changes to the system and user configuration?

I have written a tool which automatically formats and copies files to USB flash drives when they are inserted. It needs the drive to be unmounted to format it. Normally Nautilus will automatically ...
2
votes
1answer
429 views

Trying to automount USB drive in VirtualBox via udev but changes have been made in ubuntu 12.04

So i'm trying to automount my usb sticks on my VirtualBox guest via udev. There was a fine guide to it here: https://forums.virtualbox.org/viewtopic.php?f=7&t=39374 The problem is that guide is ...
2
votes
0answers
262 views

Define a Policykit action for Upstart

I'm trying to get some user to start, stop and reload services by using the udev Upstart interface. I'm using Ubuntu 10.04. I created the file ...
2
votes
0answers
99 views

How to manually power-on the webcam?

I have a Clevo laptop with a built in webcam, on the keyboard there's a helpful Fn+F10 hotkey that seems to power the device on and off. I'd like to have some control over the webcam without needing ...
1
vote
1answer
2k views

How do I configure libfitbit?

To use Ubuntu to upload FitBit data you need libfitbit which is available as ppa now. However I couldn't find configuration instructions. I also wonder if cuttlefish could help to get the same ...
1
vote
1answer
513 views

How to disable udev net rule generation?

In our cloud, we generate MACs with the prefix 2c:c2:60 for instances. When we re-use an instance, or duplicate it, the new copy gets another MAC address. When the new copy boots, the NIC gets the ...
1
vote
1answer
617 views

udev rule group ownership not working

I have added a udev rule for my Arduino, but the symlink gets the ownership "root root" instead of "root dialout". $ cat /etc/udev/rules.d/47-Arduino.rules SUBSYSTEM=="usb", ATTR{idVendor}=="2341", ...
1
vote
1answer
2k views

How to get Bus and Device relationship for a /dev/ttyUSB

I need to write an script for restart USB dongles. I have all tools but I can't link my /dev/ttyUSBx to physical BUS and DEVICE. An issue is that I have three dongles with the same id vendor and id ...
1
vote
2answers
419 views

Disable mount for internal HDDs

I'm fairly new to Ubuntu (I'm using 12.04) and I am looking for a way to make it so that when I boot from my USB stick the internal HDDs of the computer I'm using dont mount. I would also like to know ...
1
vote
1answer
2k views

/dev/sdb2: No such file or directory

I was trying to add a swap partition in my secondary drive, I created the partition space with fdisk and when running mkswap I was greeted with an error: $ sudo mkswap -c /dev/sdb2 /dev/sdb2: No such ...
1
vote
2answers
587 views

The Fn keys on my HP dv6t are mapped all wrong

I've tried going through the keyboard fixing process documented with that udev README file (as described here), but I get confused pretty much right off the bat. I'm using that "/lib/udev/keymap" tool ...

1 2