You are not logged in.
Pages: 1
Hi !
A few days ago I did a pacman -ySu but I ran into some problems.
After updating xorg and catalyst graphic drivers my X was "broken" (xinerama/xrandr related issues). So before I did a 'pacman -ySu' I saved my local database with 'yaourt -B backup.tar.bz2', after trying to get X to work I decided to resotre the backup. To make it short, I think I completly messed up pacman. So after that I redid a 'pacman -ySu', but it was annoying me with the 'file exist' thing, so I did 'pacman -ySuf' which overwrited existing files. And I ended up with some "hidden" issues, like the 'core/dbus' package being installed (according to pacman), but files like '/usr/lib/libdbus-1.so' where missing (I had that for few packages, but since it only appers when I'm actually using theses packages, there might be a lot more to come). Reinstalling thses packages solves this problem.
So that was the context, in the case my problem could be related to this.
The problem is, I'm using AutoFS and udev to auto-mount my usb keys and external hard drive.
Udev creates a special node in '/dev/' (e,g, for my usb key it creates '/dev/usbstick') and AutoFS then automatically mounts /dev/usbstick to /media/key.
It used to work perfectly but after that upgrade (I also installed hal and acpid in the meantime), it doesn't seem to work. The node '/dev/usbstick' doesn't get created.
Here is the rule I'm using to do so:
/etc/udev/rules.d/07-key.rules
$>cat /etc/udev/rules.d/07-key.rules
ATTRS{product}=="Flash Drive", KERNEL=="sd?[1-9]", NAME="%k", SYMLINK+="usbstick", GROUP="storage"
ATTRS{product}=="USB Flash Memory", KERNEL=="sd?[1-9]", NAME="%k", SYMLINK+="usbstick", GROUP="storage"
So with this only, udev is supposed to create a node in '/dev/usbstick' right ?
But 'ls /dev/ | grep usbstick' returns nothing.
Udev is running correctly:
$> ps aux | grep udevd
root 818 0.0 0.0 1852 716 ? S<s 16:26 0:00 /sbin/udevd --daemon
Here is dmesg's output:
$>dmesg
usb 4-1: new high speed USB device using ehci_hcd and address 16
usb 4-1: configuration #1 chosen from 1 choice
scsi20 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 16
usb-storage: waiting for device to settle before scanning
scsi 20:0:0:0: Direct-Access USB Flash Memory 1.00 PQ: 0 ANSI: 2
sd 20:0:0:0: [sdd] 3953664 512-byte hardware sectors (2024 MB)
sd 20:0:0:0: [sdd] Write Protect is off
sd 20:0:0:0: [sdd] Mode Sense: 0b 00 00 08
sd 20:0:0:0: [sdd] Assuming drive cache: write through
sd 20:0:0:0: [sdd] 3953664 512-byte hardware sectors (2024 MB)
sd 20:0:0:0: [sdd] Write Protect is off
sd 20:0:0:0: [sdd] Mode Sense: 0b 00 00 08
sd 20:0:0:0: [sdd] Assuming drive cache: write through
sdd: sdd1
sd 20:0:0:0: [sdd] Attached SCSI removable disk
sd 20:0:0:0: Attached scsi generic sg4 type 0
usb-storage: device scan complete
And udevadm info's output:
$>udevadm info -a -p `udevadm info -q path -n /dev/sdd` | grep ATTRS{product}
ATTRS{product}=="USB Flash Memory"
ATTRS{product}=="EHCI Host Controller"
Thanks!
Last edited by arsenist (2008-12-14 19:30:26)
Offline
Pages: 1