I can manually mount my various external devices (CD-ROM drive, hard drive, USB memory drives) fine, but I am baffled how to get udev to automatically mount them.
E.g. plugging in the CD-ROM drive, /var/log/syslog shows:
Code: Select all
Feb 21 15:20:27 komputronik udevd[4966]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:1a.7/usb1/1-3 1 5': No such file or directory
Feb 21 15:20:27 komputronik kernel: [27140.600959] usb 1-3: New USB device found, idVendor=059b, idProduct=0252
Feb 21 15:20:27 komputronik kernel: [27140.600964] usb 1-3: New USB device strings: Mfr=56, Product=63, SerialNumber=79
Feb 21 15:20:27 komputronik kernel: [27140.600968] usb 1-3: Product: Optical USB 2.0
Feb 21 15:20:27 komputronik kernel: [27140.600971] usb 1-3: Manufacturer: Iomega
Feb 21 15:20:27 komputronik kernel: [27140.600974] usb 1-3: SerialNumber: DEF109FBFA5F
Feb 21 15:20:27 komputronik kernel: [27140.601333] scsi10 : usb-storage 1-3:1.0
Feb 21 15:20:28 komputronik kernel: [27141.601133] scsi 10:0:0:0: CD-ROM LITE-ON DVDRW SOHW-1673S JS05 PQ: 0 ANSI: 0
Feb 21 15:20:28 komputronik kernel: [27141.604226] sr1: scsi3-mmc drive: 48x/48x writer cd/rw xa/form2 cdda tray
Feb 21 15:20:28 komputronik kernel: [27141.604491] sr 10:0:0:0: Attached scsi CD-ROM sr1
The automounting fails on both our computers which have debian sid installed. I see via ps that udevd is running. I am new to tinkering with udev stuff; is there some simple thing I'm overlooking? As far as I can tell, udev is supposed to normally "just work", and you shouldn't normally need to explicitly create udev rules, right? (Since one of the goals is to be able to plug in arbitrary disk drives or memory sticks and have them transparently automatically mount, right?)
E.g. http://www.crazysquirrel.com/computing/debian/udev.jspx makes it sound like normally auto-mounting should "just work" and needing to write custom rules is the exception.
Verifying some obvious stuff:
/lib/udev/rules.d has plenty of rule files, including for cdrom:
Code: Select all
40-hplip.rules 69-cd-sensors.rules
42-qemu-usb.rules 69-libmtp.rules
50-udev-default.rules 69-xserver-xorg-input-wacom.rules
55-dm.rules 70-udev-acl.rules
56-hpmud_support.rules 75-cd-aliases-generator.rules
60-cdrom_id.rules 75-net-description.rules
60-fuse.rules 75-persistent-net-generator.rules
60-gnupg.rules 75-probe_mtd.rules
60-libgphoto2-2.rules 75-tty-description.rules
60-libsane.rules 78-sound-card.rules
60-persistent-alsa.rules 80-drivers.rules
60-persistent-input.rules 80-networking.rules
60-persistent-serial.rules 85-hwclock.rules
60-persistent-storage-dm.rules 90-pulseaudio.rules
60-persistent-storage.rules 91-permissions.rules
60-persistent-storage-tape.rules 95-cd-devices.rules
60-persistent-v4l.rules 95-keyboard-force-release.rules
61-accelerometer.rules 95-keymap.rules
64-xorg-xkb.rules 95-udev-late.rules
Code: Select all
# This file was automatically generated by the /lib/udev/write_cd_rules
# program, run by the cd-aliases-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and set the $GENERATED variable.
# DVD_RW_AD-7191A (pci-0000:03:00.0-scsi-0:0:0:0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:03:00.0-scsi-0:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:03:00.0-scsi-0:0:0:0", SYMLINK+="cdrw", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:03:00.0-scsi-0:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:03:00.0-scsi-0:0:0:0", SYMLINK+="dvdrw", ENV{GENERATED}="1"
# DVDRW_SOHW-1673S (pci-0000:00:1a.7-usb-0:3:1.0-scsi-0:0:0:0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1a.7-usb-0:3:1.0-scsi-0:0:0:0", SYMLINK+="cdrom1", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1a.7-usb-0:3:1.0-scsi-0:0:0:0", SYMLINK+="cdrw1", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1a.7-usb-0:3:1.0-scsi-0:0:0:0", SYMLINK+="dvd1", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1a.7-usb-0:3:1.0-scsi-0:0:0:0", SYMLINK+="dvdrw1", ENV{GENERATED}="1"
# DVDRW_SOHW-1673S (pci-0000:00:1a.7-usb-0:3:1.0-scsi-0:0:0:0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="LITE-ON_DVDRW_SOHW-1673S_DEF109FBFA5F-0:0", SYMLINK+="cdrom2", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="LITE-ON_DVDRW_SOHW-1673S_DEF109FBFA5F-0:0", SYMLINK+="cdrw2", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="LITE-ON_DVDRW_SOHW-1673S_DEF109FBFA5F-0:0", SYMLINK+="dvd2", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="LITE-ON_DVDRW_SOHW-1673S_DEF109FBFA5F-0:0", SYMLINK+="dvdrw2", ENV{GENERATED}="1"
Similarly for external hard drives and other usb devices. Any help or advice appreciated!