[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Changed device for camera..



Charlie <ariestao@clearmail.com.au> writes:

> Thanks for that very extensive explanation Patrick. It is much appreciated and 
> though I was going to leave the whole thing as is till another time. I am 
> prompted by the time you have taken to explain this to write more.

You're very welcome.  I only hope that it helps you out.

> I don't have /etc/udev/rules.d/10-local.rules But do 
> have /etc/udev/rules.d/udev.rules

Yes, you will have to create that file if you decide to go the udev
route.  I wouldn't use any other already existing rules files, should
you be tempted to do that, just because it may mess up something in your
system udev setup.  I also think the above 10-local.rules loads earlier
than those files, and this is what you want.  

> I did:
>
> # udevinfo -a -p $(udevinfo -q path -n /dev/sda1)
>
> I get two entries for the Olympus camera:
>
[snip udevinfo]
>
> Then did:
>
> KERNEL=="sda1", SUBSYSTEMS=="usb", {serial}=="X11017714", SYMLINK+="cam"

Okay, I think I can see what is causing you trouble here.  Rather than
{serial}==... I believe you should have ATTRS{serial}==...  I am
certainly no expert, and it has been a while since I messed about with
any udev rules as I am trying to cut back on my drinking ;-), but I
do think the entire label is necessary.  That seems backed up by your
result of "command not found" for the {serial}... input.  I believe you
could add the ATTRS and find it will then work.

> As far as uuid is concerned, I get an id, but not a uuid, so I tried to enter 
> the appropriate id into /etc/fstab but it didn't take there either. Not the 
> id. There was no uuid i could discover, but forget what command I used to 
> find the id.

If you type `ls -l /dev/disk/by-uuid` in a terminal you should get back
a list of all your disks uuid symlinks.  If you plugged in your camera
already, one of them should be something like CAMERA-UUID -> ../../sda1.
This is what you are looking for, and you put this symlink in your
fstab.  Just use the format of UUID=CAMERA-UUID in place of /dev/sda1.
For example, mine is "UUID=3874-E1C0 /mnt/sansa vfat user,noauto 0 0"
rather than "/dev/sda1 /mnt/sansa ..."  In the end, much less messy than
udev rules I think.

Hope you get it working.

Patrick


Reply to: