Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Users cannot access cd drive

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
dragos240
Apprentice
Apprentice
Posts: 252
Joined: Sun Apr 19, 2009 2:04 pm

Users cannot access cd drive

  • Quote

Post by dragos240 » Sun May 29, 2011 8:01 pm

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: Select all

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: Select all

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
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun May 29, 2011 8:50 pm

dragos240,

In /etc/fstab you should ahve a line like

Code: Select all

 /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.
Top
dragos240
Apprentice
Apprentice
Posts: 252
Joined: Sun Apr 19, 2009 2:04 pm

  • Quote

Post by dragos240 » Sun May 29, 2011 9:00 pm

NeddySeagoon wrote:dragos240,

In /etc/fstab you should ahve a line like

Code: Select all

 /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: Select all

mplayer /dev/hda
I can play cds (in root)

But I can't play cds when doing this:

Code: Select all

mplayer cdda://
I also have no /dev/cdrom but rather a /dev/hda

Will that be fixed by editing my fstab?
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Sun May 29, 2011 9:25 pm

Search for libata migration threads.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun May 29, 2011 10:26 pm

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.
Top
dragos240
Apprentice
Apprentice
Posts: 252
Joined: Sun Apr 19, 2009 2:04 pm

  • Quote

Post by dragos240 » Sun May 29, 2011 10:41 pm

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.
Top
dwbowyer
Apprentice
Apprentice
Posts: 155
Joined: Fri Apr 18, 2008 1:18 am

  • Quote

Post by dwbowyer » Sun May 29, 2011 11:58 pm

Outdated isn't about WHEN you installed the kernel but rather HOW you CONFIGURED the kernel.
Top
dragos240
Apprentice
Apprentice
Posts: 252
Joined: Sun Apr 19, 2009 2:04 pm

  • Quote

Post by dragos240 » Mon May 30, 2011 2:47 pm

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.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic