LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-25-2006, 02:11 PM   #1
spes_hominis
Member
 
Registered: Jun 2004
Location: N. Ireland
Distribution: Zenwalk 6.2
Posts: 30

Rep: Reputation: 15
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.
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) 
Bus 2 Device 1: ID 0000:0000  
Bus 1 Device 4: ID 059f:0651 LaCie, Ltd 
Bus 1 Device 3: ID 05e3:0703 Genesys Logic, Inc. Card Reader
Bus 1 Device 1: ID 0000:0000
Kernel version 2.6.17.13 (untouched huge.i)
udev 107 (source version)
udev 097 (!) (listed in packages)
hal 0.5.8.1
dbus 0.93 (linuxpackages.net)
 
Old 11-25-2006, 03:42 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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
read man mount for more
 
Old 11-25-2006, 05:27 PM   #3
spes_hominis
Member
 
Registered: Jun 2004
Location: N. Ireland
Distribution: Zenwalk 6.2
Posts: 30

Original Poster
Rep: Reputation: 15
Already have done:
Code:
/dev/hda4        swap             swap        defaults         0   0
/dev/hda2        /                ext3        defaults         1   1
/dev/hda1        /boot            ext2        defaults         1   2
/dev/hda3        /home            ext3        defaults         1   2
/dev/sda1        /usb/usb1         auto noauto,rw,user 0 0
/dev/cdrom       /mnt/cdrom       iso9660 noauto,ro,user 0 0 
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
It was one of the first things I tried. Besides,I want to use udev to do this for me.
 
Old 11-26-2006, 04:33 AM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev & /udev and cdrom / dvd drives craftybytes Debian 2 11-12-2006 06:02 PM
udev .071, usb drives satinet Slackware 13 05-15-2006 11:24 AM
Slackware 10.1 + Udev Permissions and USB Drives rignes Slackware 3 03-07-2005 09:12 PM
CDRW won't mount audio CDs Perrin7 Linux - Hardware 4 01-11-2005 12:13 PM
udev, USB Flash Drives, and usb-mount talkingwires Debian 13 11-07-2004 12:15 PM


All times are GMT -5. The time now is 03:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration