[sane-devel] udev updates /dev/..., sane accesses /proc/...

Klaus Dahlke klaus.dahlke at gmx.de
Wed Jan 3 21:39:05 CET 2007


On Wed, 03 Jan 2007 00:18:08 +0100
"Felix E. Klee" <felix.klee at inka.de> wrote:

> I've installed sane-backends-1.0.18 on a Slackware 10.2 system with
> kernel 2.6.14.4 and libusb 0.1.12.  Also, I've installed the udev rules
> that are part of the sane backends, just as explained in README.linux:
>
>   cp sane-backends-1.0.18/tools/udev/libsane.rules \
>   /etc/udev/rules.d/50-libsane.rules
>
Hi Felix,
I created some udev-rules for certain devices on my own, mainly for two reasons: defining a decent mount point for /etc/fstab and setting the appropriate permissions (like 660).

Here is an example of two rules in /etc/udev/rules.d/11-udev.rules:
# creating /dev/scanner with root:scanner (I have a SCSI scanner)
BUS=="scsi", SYSFS{model}=="Astra 2200      ", NAME="scanner", GROUP="scanner"
# creating a link from /dev/sd?1 to /dev/usbdisk, which is used in /etc/fstab with the mount point /mnt/usbdisk
BUS=="scsi", SYSFS{vendor}=="WDC WD16", NAME="%k", SYMLINK="usbdisk"

I would create a similar rule like
BUS=="usb"; SYSFS{model}=="your model goes here", NAME="scanner", GROUP"scanner"
and make sure you belong to group scanner

Cheers,
Klaus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20070103/a9e7f5ad/attachment.pgp


More information about the sane-devel mailing list