View previous topic :: View next topic |
Author |
Message |
rpil Guru
Joined: 23 May 2008 Posts: 314
|
Posted: Sun Nov 22, 2009 9:22 am Post subject: About mounting... [SOLVED] |
|
|
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 |
|
|
Clad in Sky l33t
Joined: 04 May 2007 Posts: 895 Location: Germany
|
Posted: Sun Nov 22, 2009 9:30 am Post subject: |
|
|
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 |
|
|
rpil Guru
Joined: 23 May 2008 Posts: 314
|
Posted: Sun Nov 22, 2009 10:28 am Post subject: |
|
|
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 |
|
|
rpil Guru
Joined: 23 May 2008 Posts: 314
|
Posted: Sun Nov 22, 2009 10:34 am Post subject: |
|
|
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 |
|
|
Sade Guru
Joined: 22 Mar 2005 Posts: 406 Location: Netherlands - Eindhoven
|
Posted: Sun Nov 22, 2009 7:44 pm Post subject: |
|
|
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 |
|
|
rpil Guru
Joined: 23 May 2008 Posts: 314
|
Posted: Sun Nov 22, 2009 9:22 pm Post subject: |
|
|
Well, I added myself in those groups, with command. Is this wrong? |
|
Back to top |
|
|
rpil Guru
Joined: 23 May 2008 Posts: 314
|
Posted: Mon Nov 23, 2009 9:50 am Post subject: |
|
|
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:
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! |
|
Back to top |
|
|
|