Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
About mounting... [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Sun Nov 22, 2009 9:22 am    Post subject: About mounting... [SOLVED] Reply with quote

I have a small problem in my new Gentoo system.
When I put a CD, I reveive the message: "Cannot mount volume: You are not privileged to mount the volume "(cd_name)".
Also, when I put a USB stick in, nothing happens.
Who can I make my system recognize and open automatically the CD/DVD and the USB sticks/devices?


Last edited by rpil on Mon Nov 23, 2009 9:50 am; edited 1 time in total
Back to top
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 895
Location: Germany

PostPosted: Sun Nov 22, 2009 9:30 am    Post subject: Reply with quote

Hello.

You might need to add your user to the right groups - assuming automounting works when you're logged in as root. if it doesn't then soemthing's wrong in a different place.

IF root works fine, try and add your user to the plugdev and cdrom group. That should work.
If you have entries in fstab for your cdrom and usb-sticks, you should add "user" in the 4th column (the one having noatime, noauto and stuff in it).
_________________
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Back to top
View user's profile Send private message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Sun Nov 22, 2009 10:28 am    Post subject: Reply with quote

You mean, like this?
Code:
/dev/sda1               /boot           ext2            defaults,noatime        1 2
/dev/sda3               /               ext3            noatime         0 1
/dev/sda2               none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom      auto            noauto,ro,user  0 0
/dev/usb                /mnt/usb        auto            noauto,user             0 0

shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
Back to top
View user's profile Send private message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Sun Nov 22, 2009 10:34 am    Post subject: Reply with quote

I added the "user" line and I saved the file. After, I putted a CD and it opened! That's good. When I closed the CD window and I tried to open it from the "Computer" section, I received the message
Code:
"Unable to mount location - Can't mount file".

Why is that? :?

After, I pushed the eject button, the CD drive opened, but the following message appeared:
Code:
Cannot eject volume
There was an error ejecting the volume or drive.

org.freedesktop.Hal.Device.Volume.UnknownFailure: umount: /mnt/cdrom: not mounted
eject: unmount of `/mnt/cdrom' failed
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Sun Nov 22, 2009 7:44 pm    Post subject: Reply with quote

rpil: check out this website: Gentoo Handbook It explains everything you need to know about adding your user to the right groups.

to modify a users, and add a group use:
Code:
usermod -a -G ftp tony

to add tony to the ftp group for example
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Sun Nov 22, 2009 9:22 pm    Post subject: Reply with quote

Well, I added myself in those groups, with
Code:
gpasswd -a
command. Is this wrong? :?
Back to top
View user's profile Send private message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Mon Nov 23, 2009 9:50 am    Post subject: Reply with quote

I've found the solution!
Here it is: http://www.justlinux.com/forum/archive/index.php/t-148808.html

I gave:
Code:
mkdir /home/drphibes/cdrom
nano -w /etc/fstab


I added the line: /dev/hdc /home/drphibes/cdrom auto noauto,users,ro 0 0

and after:
Code:
mount cdrom/


Finally:
Code:
drphibes drphibes # ls -l /dev/cd*
lrwxrwxrwx 1 root root 3 Nov 23 09:00 /dev/cdrom -> hdc
lrwxrwxrwx 1 root root 3 Nov 23 09:00 /dev/cdrw -> hdc


And the CD mounted automatically! :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum