l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
November 4: Social gathering
Next Installfest:
TBD
Latest News:
Oct. 24: LUGOD election season has begun!
Page last updated:
2006 May 17 10:45

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] udev rule syntax (was: KDE with automounter,external hard disk, and rsync)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] udev rule syntax (was: KDE with automounter,external hard disk, and rsync)



On Tue, May 16, 2006 at 03:11:28PM -0500, Ken Bloom wrote:
...
> > point of the HD. I'd like to ensure that the HD is always mounted to the
> > same mountpoint (e.g., /media/backupHD) and likewise for the camera
> > (e.g., /media/camera). Any suggestions? Does there exist a GUI version
> > of rsync for KDE that would operate better in this situation? A web
> > search failed to find such a thing.
> 
> Write some udev rules to give them consistent device names (or
> symlinks), then create mount points and fstab entries for them.A For
> example, for my camera I have the rule:
> KERNEL="sd?1",SYSFS{model}="ACEMAR          ",SYSFS{vendor}="IDIGAT L",SYMLINK="camera"
> 
> the KERNEL="sd?1" rule says that partion 1 of whatever scsi device...
> 
> --Ken

Just a quick note; I was using some udev rules similar to what Ken
posted above and found that they suddenly stopped working a little while
ago.  I finally got around to tracking down the problem yesterday and
found that the syntax of the udev rules (under Debian sid) has now
changed slightly; the KERNEL and SYSFS _tests_ now require "==" as the
operator instead of "="; the SYMLINK and NAME _assignments_ still use a
single "=" sign.

To make this more clear, here's what my rules look like now:

    mattrope@hades:~$ cat /etc/udev/rules.d/060_local.rules 
    # Local udev rules

    # Iomega USB hard drive
    BUS=="usb", KERNEL=="sd?1", SYSFS{product}=="Iomega HDD USB 2.0 Drive", NAME="%k", SYMLINK="usbhd"

    # Neuros MP3 player
    BUS=="usb", KERNEL=="sd?1", SYSFS{product}=="NEUROS Digital Audio Device", NAME="%k", SYMLINK="neuros"

    # Picture Card reader
    BUS=="usb", KERNEL=="sd?1", SYSFS{product}=="Flash Reader", NAME="%k", SYMLINK="piccard"

Unfortunately I wasn't paying close enough attention to say exactly what
version of udev the syntax changed in; I'm not sure if the change has
propagated to Debian testing yet or whether it's present in other
distributions, but I figured I should post this for future reference in
case anybody else runs across this issue.


Matt

-- 

*************************************************
* Matt Roper <matt@mattrope.com>                *
* http://www.mattrope.com                       *
* PGP Key: http://www.mattrope.com/mattrope.asc *
*************************************************

Attachment: signature.asc
Description: Digital signature

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.