LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-17-2006, 05:20 AM   #1
kookie
LQ Newbie
 
Registered: Jan 2006
Posts: 21

Rep: Reputation: 15
mount cdrom does not work


I have tried to mount my cdrom drive as a user and get the following error message:

Code:
mount /dev/hdc /media/cdrom
mount: must be superuser to use mount
I run this as root and the drive mounts fine.
I'm currently running Slackware with kernel 2.6.17.13 with udev support. I have turned off rc.hotplug from /etc/rc.d

my fstab is as follows

Code:
/dev/hda2        swap             swap        defaults         0   0
/dev/hda5        /                reiserfs    defaults         1   1
/dev/hda1        /boot            ext3        defaults         1   2
/dev/hda6        /video           jfs         defaults         1   2
/dev/hdb1        /backup          reiserfs    defaults         1   2
/dev/cdrom       /media/cdrom     auto        ro,noauto,user,exec   0   0
/dev/fd0         /media/floppy    auto        noauto,user      0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
The permissions on my /dev/cdrom* is as follows:

Code:
ls -al /dev |grep cdrom
lrwxrwxrwx  1 root root          6 2006-11-17 21:54 cdrom -> cdrom0
lrwxrwxrwx  1 root root          3 2006-11-17 21:54 cdrom0 -> hdc
brw-rw----  1 root cdrom   22,   0 2006-11-18 08:53 hdc
Permissions on the directory
Code:
ls -al |grep cdrom
lrwxrwxrwx  1 root users   6 2006-10-18 03:36 cdrom -> cdrom0
drwxrwxr-x  2 root users  48 2006-09-26 10:50 cdrom0
drwxrwxr-x  2 root users  48 2006-09-26 10:50 cdrom1
I have tried everything i can think of and no solution. Thanks in advance.
 
Old 11-17-2006, 05:40 AM   #2
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,151
Blog Entries: 5

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Permission of /dev/hdc are such that only root user or a user belonging to group "cdrom" can access the cdrom.

So either add your user to group "cdrom" (see adduser man pages) or change permission of /dev/hdc.

To change permission of /dev/hdc, type in as root

chmod 666 /dev/hdc

then type in as your user:

mount /media/cdrom

It should be fine
 
Old 11-17-2006, 05:47 AM   #3
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,640

Rep: Reputation: 144Reputation: 144
Quote:
Originally Posted by kookie
I have tried to mount my cdrom drive as a user and get the following error message:

Code:
mount /dev/hdc /media/cdrom
mount: must be superuser to use mount
Just omit the /dev/hdc:
Code:
$ mount /media/cdrom
 
Old 11-17-2006, 06:36 AM   #4
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
Quote:
mount /dev/hdc /media/cdrom
as titopoquito said the mount command is not proper
you can either give "mount /media/cdrom"
or the full manual command as root like, "mount -t iso9660 /dev/hdc /media/cdrom"

also dont change /dev permissons
IMPORTANT i found that there are unwanted simlinks pointing to your cd drive /dev/hdc please remove all the simlinks to /dev/hdc and please make a new one like "ln -sf /dev/hdc /dev/cdrom"
 
Old 11-17-2006, 07:21 AM   #5
kookie
LQ Newbie
 
Registered: Jan 2006
Posts: 21

Original Poster
Rep: Reputation: 15
I've tried all of the above suggestions and have still come up with the same error of :

Code:
mount: must be superuser to use mount
i've noticed that everytime the computer has been restarted udev rewrites the permissions and symlinks in the /dev directory.
 
Old 11-17-2006, 07:48 AM   #6
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,640

Rep: Reputation: 144Reputation: 144
Have you somehow changed the permissions of /bin/mount?

Code:
-rwsr-xr-x 1 root root 60576 2006-09-25 10:48 /bin/mount
 
Old 11-17-2006, 07:54 AM   #7
kookie
LQ Newbie
 
Registered: Jan 2006
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by titopoquito
Have you somehow changed the permissions of /bin/mount?

Code:
-rwsr-xr-x 1 root root 60576 2006-09-25 10:48 /bin/mount

How do you reset the permission for mount.
I'm not sure how you got the rws???
 
Old 11-17-2006, 07:58 AM   #8
kookie
LQ Newbie
 
Registered: Jan 2006
Posts: 21

Original Poster
Rep: Reputation: 15
Thank.

Its working now. Not sure what happen to the permissions on the mount and umount command.
I fixed this up and now i can mount the drive as a user. Thanks guys for all your help.
 
  


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
CDROM refuses to mount, /dev/cdrom does not exist shane25119 Linux - Hardware 10 08-02-2009 10:43 PM
mount /dev/hdc /dev/cdrom doesn't work ShrikesHarvest Linux - Newbie 10 02-21-2009 07:05 AM
Cant mount cdrom in normal user, tried to set permissions, no work. Kindly help me. RHLinuxGUY Slackware 2 09-13-2004 09:35 PM
mount cdrom won't work, consultations please! richiangpan9 Linux - Newbie 5 04-10-2004 09:52 PM
mount /media/cdrom doesn't work HDD Linux - Hardware 4 03-05-2004 09:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:46 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration