Udev and eject problems with Ipod
Ok so I have my ipod nano working with amarok but there are 2 things that are unsatisfactory.
Problem 1. I have to mount it with /dev/sdc2. For my other usb devices I have udev rules to create specific /dev/ files but I cannot get this to work with the ipod, possibly because it has to be sd*2 rather than 1. I have seen various suggestions eg BUS=="scsi", SYSFS{model}=="iPod*", NAME=="ipod" BUS=="scsi", SYSFS{model}=="iPod*" KERNEL=="sd?2", NAME+="ipod", SYMLINK="%k", MODE="0777", GROUP="ipod" but none of these work for me. Problem 2 To eject I have to su to root. How can I eject as a user? One suggestion I have seen is to edit the sudoers file as below. Is that safe? Quote:
|
Quote:
BUS=="scsi", SYSFS{model}=="iPod*", KERNEL=="sd?2", NAME="%k", SYMLINK+="ipod", MODE="0664", GROUP:="ipod" This assumes you want all users to be able to read the device, and only members of group 'ipod' to write to it, and that group 'ipod' actually exists, and that your user is a member of that group. See http://slackwiki.org/Udev for more information on the syntax used and such... Quote:
|
When you say don't change the name, use the symlink - is that for the ipod or for all devices. I generally change the name and have found that it works fine for me. This is my rules file.
Quote:
|
I don't recall specifics now, and it's late (0215 here), so I don't feel like searching for the relevant information, but I do recall reading somewhere (from one of the udev maintainers, I think) that renaming devices can potentially cause some problems (but again, I don't recall specifics). So far as I'm concerned, that is/was good enough reason to not do it, especially since creating the custom symlinks works just fine. For me, it seems to be a bit more elegant solution too, but that's just me... :-)
|
All times are GMT -5. The time now is 02:47 AM. |