LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-28-2005, 03:57 PM   #1
Hotfeet
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 39

Rep: Reputation: 15
Unable to mount cd under user account [Still unsolved =(]


I have no clue what to do with this. While under root, it auto-mounts cd's with no problem at all. But when I'm logged into my user account, it won't mount at all. After running the mount command, even under superuser, I get

Code:
mount: wrong fs type, bad option, bad superblock on /dev/hdc,
       or too many mounted file systems
I've checked permissions, and they're alright. I've added the user to the different user groups (yes, I have added it to the cdrom group), as suggested by other people. I'm running a Sarge install, 2.6.8-1-386 kernel, on an Averatec 3200 laptop. Here's my fstab:

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda2       /               ext3    defaults,errors=remount-ro 0       1
/dev/hdc        /media/cdrom    iso9660 ro,user,noauto  0       0
/dev/hdc        /cdrom          iso9660 ro,user,noauto  0       0
/dev/hda1 /mnt/windows ntfs ro,user,umask=000 0 0
[EDIT] Forgot to add what commands I used to try and mount it...

mount -t iso9660 /dev/hdc /media/cdrom
mount /media/cdrom
mount /dev/hdc

All came out with the same result.

[EDIT 2] Removing one of the two fstab entries comes out with the same effect.

Last edited by Hotfeet; 03-28-2005 at 11:22 PM.
 
Old 03-28-2005, 04:12 PM   #2
APB_4
Member
 
Registered: Nov 2004
Location: England
Distribution: Ubuntu 9.04; Crunchee; EEE Xandros
Posts: 289

Rep: Reputation: 30
Add the group you want to the visudoers file with something like this:
visudo
%group ALL=NOPASSWD: /sbin/mount /cdrom,/sbin/umount /cdrom
then just type mount /cdrom as a user. You might have to type sudo mount /cdrom until you have rebooted.
Good luck
 
Old 03-28-2005, 04:13 PM   #3
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
try removing the /media/cdrom line and see how you go. Why is there two lines for the cd player?
 
Old 03-28-2005, 04:15 PM   #4
Hotfeet
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 39

Original Poster
Rep: Reputation: 15
I've tried removing one line at a time, and it still doesn't work. I'm not sure why there's two entries, that's just how the installer put it and I didn't want to mess with it too much.
 
Old 03-28-2005, 04:22 PM   #5
initialdrifteg6
Member
 
Registered: Oct 2004
Location: France, Kentucky
Distribution: debian
Posts: 173

Rep: Reputation: 38
have you tried to go under system->user and groups...

under the last tab add CDROM to that user
 
Old 03-28-2005, 04:30 PM   #6
Hotfeet
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 39

Original Poster
Rep: Reputation: 15
Yes, I have added my user the cdrom group.

I'm really not sure what to do with visudoers, I don't have it installed, and looking on their website I don't even have a /etc/sudoers file.
 
Old 03-28-2005, 04:31 PM   #7
fripper
LQ Newbie
 
Registered: Feb 2005
Posts: 4

Rep: Reputation: 0
/dev/hdc /media/cdrom iso9660 ro,user,noauto 0 0
Try putting a 0(zero)after /media/cdrom,it needs an identifier.
My fstab entry is: /dev/hdc /media/cdrom0 iso9660
 
Old 03-28-2005, 04:32 PM   #8
Hotfeet
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by fripper
/dev/hdc /media/cdrom iso9660 ro,user,noauto 0 0
Try putting a 0(zero)after /media/cdrom,it needs an identifier.
My fstab entry is: /dev/hdc /media/cdrom0 iso9660
The folder it's mounting to doesn't have a 0, it's just /media/cdrom, so no, I don't need a zero on it.
 
Old 03-28-2005, 04:36 PM   #9
APB_4
Member
 
Registered: Nov 2004
Location: England
Distribution: Ubuntu 9.04; Crunchee; EEE Xandros
Posts: 289

Rep: Reputation: 30
have you tried running visudo? Just type visudo into a terminal as root
 
Old 03-28-2005, 04:37 PM   #10
Hotfeet
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 39

Original Poster
Rep: Reputation: 15
Visudo isn't recognized as a command, nor is there a /etc/sudoers file, which is what visudo is designed to edit, from what I can see.
 
Old 03-28-2005, 04:42 PM   #11
fripper
LQ Newbie
 
Registered: Feb 2005
Posts: 4

Rep: Reputation: 0
Quote:
Originally posted by Hotfeet
The folder it's mounting to doesn't have a 0, it's just /media/cdrom, so no, I don't need a zero on it.
Well that would make sense
 
Old 03-28-2005, 04:49 PM   #12
APB_4
Member
 
Registered: Nov 2004
Location: England
Distribution: Ubuntu 9.04; Crunchee; EEE Xandros
Posts: 289

Rep: Reputation: 30
Quote:
or too many mounted file systems
having two mount points for one device is probably the cause of it get rid of one and reboot and see if that works.
 
Old 03-28-2005, 04:50 PM   #13
Hotfeet
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by APB_4
having two mount points for one device is probably the cause of it get rid of one and reboot and see if that works.
I already mentioned that I'd tried this, it didn't work.
 
Old 03-28-2005, 04:56 PM   #14
APB_4
Member
 
Registered: Nov 2004
Location: England
Distribution: Ubuntu 9.04; Crunchee; EEE Xandros
Posts: 289

Rep: Reputation: 30
Did you reboot after changing it though?
 
Old 03-28-2005, 05:09 PM   #15
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
mount -t iso9660 /dev/hdc /media/cdrom
mount /media/cdrom
mount /dev/hdc
Have you checked that you actually have /dev/hdc and /media/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
unable to open apps when 'su'ing to root from user account ganja_guru Linux - Software 3 06-03-2005 11:51 AM
Unable to mount NTFS partition as user vharishankar Linux - General 4 04-02-2005 10:22 AM
unable to log in to a user account cheema Mandriva 1 12-25-2004 10:34 AM
Mount SMB Share from user account jeopardyracing Linux - Newbie 3 12-03-2004 06:04 PM
trouble w/user account & ntfs mount Blow Linux - Hardware 11 03-25-2004 03:41 AM


All times are GMT -5. The time now is 03:02 PM.

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