LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting via CD icon works, but via command line = permission denied (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-via-cd-icon-works-but-via-command-line-%3D-permission-denied-154048/)

nmoog 03-05-2004 10:23 PM

Mounting via CD icon works, but via command line = permission denied
 
Im having some serious woes trying to mount stuff on my Slackware box.

I have tried everything I could google up (right now, I think even your toaster has access to my CD-ROM) but when i do "mount /dev/cdrom /mnt/cdrom" I always get "mount: only root can do that". Same for when I try to mount my USBdisk.

BUT, when I choose "mount" from the KDE cdrom icon, it mounts fine. And if I run KsCD cd player it plays fine too.

My fstab file has
/dev/cdrom /mnt/cdrom iso9660 noauto,umask=000,users,ro 0 0
/dev/sda /mnt/usbdisk auto noauto,users 0 0

in it, and everything related to the drives has full access to everyone AND the SUID bit set (I'll change it when i fix it - promise!)

Does anyone have any suggestions I might try to get this to mount?

Thanks!

Mikhail_16 03-05-2004 10:24 PM

Edit: oops did not finish reading your post..

swap them places like this:
/dev/cdrom /mnt/cdrom iso9660 noauto,users,ro,umask=000 0 0

and do not forget to reboot. sorry but sometimes it messes up if you add options and only reboot will clear it up.
Why do you need umask too?

Also check that the account you are using is in 'users' group.

pablob 03-06-2004 04:42 AM

Sometimes "automount"/"supermount" file-systems forbid to mount them by hand, also.

320mb 03-06-2004 08:59 AM

Code:

/dev/cdrom /mnt/cdrom iso9660 noauto,owner,users,ro
you might try this also........

nmoog 03-06-2004 09:41 PM

No go! Added "owner", checked account was in "users" group... no good :(

Maybe it is the automount thing.... Is there any way I can check if it is the automount thing you suggested pablob?

Thanks!

TheOneAndOnlySM 03-06-2004 10:17 PM

try just doing mount /dev/cdrom or mount /mnt/cdrom

if you leave some blanks, mount will search your fstab for appropriate entries and use those optitions you specified; otherwise, explicitly telling mount where and what to mount ignores fstab

also, if that above doesn't work, try changing "users" to "user" in your fstab options line

nmoog 03-07-2004 02:26 AM

Holy moly - just doint mount /mnt/cdrom worked! Ive never seen that advice anywhere else - you have ended my many-houred search! Thank you - You indeed are the OneAndOnlySM! :)


All times are GMT -5. The time now is 04:53 AM.