Udev newbie wants to mount audio CDs & USB drives
I have a permissions problem and a udev problem.Right now,I can only mount as root. I read the advice given in this thread and added myself to the cdrom and disk groups,but it still comes up with "You must be superuser to do this". I tried adding mount with the NOPASSWD rule to sudo,but it gave the same result. Bizarrely,if I try to use sudo to mount,it asks for the password three times then refuses anyway:scratch:.
I'd like to write a udev rule or rules that will let me automatically access my card reader, USB hard drive & DVD-RW (especially ripping/playing audio & burning CDs)as a normal user. As I understand this,this will let me do so without needing to change /etc/fstab. lsusb gives this: Code:
Bus 2 Device 2: ID 0458:0037 KYE Systems Corp. (Mouse Systems) udev 107 (source version) udev 097 (!) (listed in packages) hal 0.5.8.1 dbus 0.93 (linuxpackages.net) |
It's not possible to mount audio CD, they don't have a file system (or something). You don't need to mount CDs to rip, play or burn audio CDs.
To mount a USB drive or a card reader as a user, add the option `user' to the options in /etc/fstab like so Code:
/dev/sda1 /mnt/usb auto user,noauto 0 0 |
Already have done:
Code:
/dev/hda4 swap swap defaults 0 0 |
Udev creates the device nodes in /dev, it doesn't handle mounting. That is handled by HAL or whatever application you're trying to use to access /usb/usb1 or /mnt/cdrom.
|
All times are GMT -5. The time now is 01:46 AM. |