Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Users cannot access cd drive
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
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Sun May 29, 2011 8:01 pm    Post subject: Users cannot access cd drive Reply with quote

Hi,

My gentoo install isn't letting users access the cd drive. I do have a user in the cdrom group, but he can't access it. He can however access it when using sudo. Sorry if this is a bit vague.

User output of cd-info:
Code:
cd-info version 0.80 x86_64-pc-linux-gnu
Copyright (c) 2003, 2004, 2005, 2007, 2008 R. Bernstein
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
++ WARN: could not retrieve file info for `image.nrg': No such file or directory
++ WARN: can't open nrg image file image.nrg for reading
cd-info: Error in automatically selecting driver.


Root (sudo):
Code:
cd-info version 0.80 x86_64-pc-linux-gnu
Copyright (c) 2003, 2004, 2005, 2007, 2008 R. Bernstein
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
CD location   : /dev/hda
CD driver name: GNU/Linux
   access mode: ioctl

Vendor                      : TSSTcorp
Model                       : CD/DVDW TS-H652D
Revision                    : GA01
Hardware                                  : CD-ROM or DVD
Can eject                                 : Yes
Can close tray                            : Yes
Can disable manual eject                  : Yes
Can select juke-box disc                  : No

Can set drive speed                       : No
Can read multiple sessions (e.g. PhotoCD) : Yes
Can hard reset device                     : Yes

Reading....
  Can read Mode 2 Form 1                  : Yes
  Can read Mode 2 Form 2                  : Yes
  Can read (S)VCD (i.e. Mode 2 Form 1/2)  : Yes
  Can read C2 Errors                      : Yes
  Can read IRSC                           : Yes
  Can read Media Channel Number (or UPC)  : Yes
  Can play audio                          : Yes
  Can read CD-DA                          : Yes
  Can read CD-R                           : Yes
  Can read CD-RW                          : Yes
  Can read DVD-ROM                        : Yes

Writing....
  Can write CD-RW                         : Yes
  Can write DVD-R                         : Yes
  Can write DVD-RAM                       : Yes
  Can write DVD-RW                        : No
  Can write DVD+RW                        : No
__________________________________

Disc mode is listed as: No information
++ WARN: error in ioctl CDROMREADTOCHDR: Input/output error

cd-info: Can't get first track number. I give up.


There's nothing in the cd-drive.

Thanks in advance,
Dragos240
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55015
Location: 56N 3W

PostPosted: Sun May 29, 2011 8:50 pm    Post subject: Reply with quote

dragos240,

In /etc/fstab you should ahve a line like
Code:
 /dev/cdrom              /mnt/cdrom      udf,iso9660     users,noauto,ro 0 0
unless you use an auto mounter, in which case, /dev/cdrom should not be in/etc/fstab at all.

The users in users,noauto,ro allows any user to mount and unmount cdroms.
If it were user (no s) any user can mount cdroms bout only the same user can unmount them.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Sun May 29, 2011 9:00 pm    Post subject: Reply with quote

NeddySeagoon wrote:
dragos240,

In /etc/fstab you should ahve a line like
Code:
 /dev/cdrom              /mnt/cdrom      udf,iso9660     users,noauto,ro 0 0
unless you use an auto mounter, in which case, /dev/cdrom should not be in/etc/fstab at all.

The users in users,noauto,ro allows any user to mount and unmount cdroms.
If it were user (no s) any user can mount cdroms bout only the same user can unmount them.


Oh I see. I will add that and reboot. Many thanks!

Also I when using something like:
Code:
mplayer /dev/hda


I can play cds (in root)

But I can't play cds when doing this:
Code:
mplayer cdda://


I also have no /dev/cdrom but rather a /dev/hda

Will that be fixed by editing my fstab?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sun May 29, 2011 9:25 pm    Post subject: Reply with quote

Search for libata migration threads.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55015
Location: 56N 3W

PostPosted: Sun May 29, 2011 10:26 pm    Post subject: Reply with quote

dragos240,

No reboot was required. /etc/fstab is consulted for the missing information every time the lazy mount is used.
e.g. mount /dev/cdrom as mount needs to find out where /dev/cdrom should be mounted.

You should not have any /dev/hdX nodes now as udev no longer makes them.
You need to migrate to libata, however, I suspect you may have an out of date system, so go carefully.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Sun May 29, 2011 10:41 pm    Post subject: Reply with quote

NeddySeagoon wrote:
dragos240,

No reboot was required. /etc/fstab is consulted for the missing information every time the lazy mount is used.
e.g. mount /dev/cdrom as mount needs to find out where /dev/cdrom should be mounted.

You should not have any /dev/hdX nodes now as udev no longer makes them.
You need to migrate to libata, however, I suspect you may have an out of date system, so go carefully.


Out of date? This system was insalled 3 weeks ago and updated 2 days ago. But thanks for the link.
Back to top
View user's profile Send private message
dwbowyer
Apprentice
Apprentice


Joined: 18 Apr 2008
Posts: 155

PostPosted: Sun May 29, 2011 11:58 pm    Post subject: Reply with quote

Outdated isn't about WHEN you installed the kernel but rather HOW you CONFIGURED the kernel.
Back to top
View user's profile Send private message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Mon May 30, 2011 2:47 pm    Post subject: Reply with quote

dwbowyer wrote:
Outdated isn't about WHEN you installed the kernel but rather HOW you CONFIGURED the kernel.


I see... I mean everything *seems* to be fine though..... Except for the CD Drive.
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