UDEV weirdness Hi all,
at least I do believe that I have read the documentation, twiki etc on
UDEV, but I still have some questions on some behavior of UDEV:
Config: amd64, kernel 2.6.8-gentoo-r4, DEVFS off, coldplug/hotplug at boot
time.
1) removable devices:
when not using device.tar.bz2:
three scsi hard disk are identified as sda, sdb, sdc (correct). When I
attach a Cardreader to an USB port, sdd is created, when inserting a CF
card afterwords, nothing happens. When inserting the card first into the
reader and then attaching the reader to the USB port, sdd and sdd1 got
created and CF card can be mounted via sdd1.
How to tell udev to have 'a second glance' at sdd to find the partitions?
2) permissions
I have a SCSI scanner weired to the controller, but usually switched off.
When not using device.tar.bz2 I got problems to get the scanner working
for normal users. In /etc/udev/permissions.d/50-udev.permissions I set for
all scanner and all sg* the permissions to root:scanner 660.
Compared to the use of 'device.tar.bz2' the module sg has to be loaded
(not a big deal) and before starting xsane, a small script add an entry
into proc/scsi/scsi with the current controller number, scsi ID etc. UDEV
then create a link of sg7 -->
bus/pci/domain0000/bus00/slot0d/function0/scsi/bus0/target1/lun0/generic,
but the permissions are: root:root:660, so that a normal user can't use
it. Normal user are member of group 'scanner', that's why the permission
for sg* should be set to root:scanner:660.
Thanks for your help,
Klaus |