LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-28-2006, 12:22 PM   #1
d00bid00b
Member
 
Registered: Aug 2005
Location: London, UK
Distribution: Debian Testing
Posts: 157

Rep: Reputation: 31
ripperX denies me access to CD Drive


Hi all

I am a member of the CDROM group (accessed via kuser as root and I entered my userid as a member) and manually changed the permissions as well for the device, yet whenever I open ripperX it always gives me an error 32 and tells me to ensure I am a member of the CD group or have proper permissions.

What gives? Any help?
 
Old 04-28-2006, 12:50 PM   #2
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Have you logged out since? Adding yourself to new groups won't take effect until your next login.

What happens when you try to mount a CD manually?
Can you open and close the tray (eject, eject -t)?

If you can't do that, then there must be some error with the permissions.

Quote:
manually changed the permissions
You mean the permissions and the group too, right?
 
Old 04-28-2006, 12:57 PM   #3
d00bid00b
Member
 
Registered: Aug 2005
Location: London, UK
Distribution: Debian Testing
Posts: 157

Original Poster
Rep: Reputation: 31
Hey there ioerror

Yep I've logged out and back in again. I can play the CD as a user as well as mount the CD when it only has data on it, as well as eject using "eject".
Evidently I am allowed to access it, so I just don't know what ripperX is going on about.
 
Old 04-28-2006, 01:10 PM   #4
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Presumably some problem with ripperX then (no idea what it could be, I've never heard of it before). Have you tried any other ripper programs?

Do you know what this error 32 is? Is it some internal ripperX thing? If it's referring to a system error number, on Linux error number 32 is EPIPE (broken pipe), maybe it's trying to run a sub-process and not finding it or something?

edit:
Most graphical rippers use cdparanoia to do the actual work, maybe that's what it can't find, though why that would result in a broken pipe I don't know.

Have you tried running cdparanoia from the command line?

Last edited by ioerror; 04-28-2006 at 01:13 PM.
 
Old 04-28-2006, 01:27 PM   #5
d00bid00b
Member
 
Registered: Aug 2005
Location: London, UK
Distribution: Debian Testing
Posts: 157

Original Poster
Rep: Reputation: 31
Hi again

This is an excerpt from cdparanoia -vsQ at the command line:

Checking /dev/hdb for cdrom...
Testing /dev/hdb for cooked ioctl() interface
Device /dev/hdb is not a CDROM
Testing /dev/hdb for SCSI interface
/dev/hdb is not a SCSI device

This is just bizarre - when I boot up /dev/hdb is identified as a CDROM drive and this is what I added to the LILO line hdb=ide-scsi for emulation.
 
Old 04-28-2006, 02:18 PM   #6
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
That's weird. It should show up as one or the other. Are you sure all the relevant modules are being loaded?

Info on scsi devices is in /proc/scsi (you should have a /proc/scsi/ide-scsi/0), and /proc/sys/dev/cdrom has (some) info any IDE cdrom(s). There may be a clue in there somewhere.
 
Old 04-28-2006, 02:38 PM   #7
d00bid00b
Member
 
Registered: Aug 2005
Location: London, UK
Distribution: Debian Testing
Posts: 157

Original Poster
Rep: Reputation: 31
Output from less /proc/sys/dev/cdrom/info:

CD-ROM information, Id: cdrom.c 3.12 2000/10/18

drive name: sr0
drive speed: 52
drive # of slots: 1
Can close tray: 1
Can open tray: 1
Can lock tray: 1
Can change speed: 1
Can select disk: 0
Can read multisession: 1
Can read MCN: 1
Reports media changed: 1
Can play audio: 1
Can write CD-R: 1
Can write CD-RW: 1
Can read DVD: 0
Can write DVD-R: 0
Can write DVD-RAM: 0

Unless I've killed too many brain cells already, this would suggest that my system can actually find my cdrom. Perhaps the problem is not so much with my system and instead with cdparanoia ... although that hardly seems likely.
 
Old 04-28-2006, 09:57 PM   #8
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
Are you using the 2.6.? kernel? If so, you don't need the "hdb=ide-scsi". The new kernel doesn't use it anymore. Try editing lilo, run /sbin/lilo when you're done and reboot or unload that module. That's probably what's causing your error.
 
Old 04-29-2006, 01:28 PM   #9
d00bid00b
Member
 
Registered: Aug 2005
Location: London, UK
Distribution: Debian Testing
Posts: 157

Original Poster
Rep: Reputation: 31
Nope I am using the vanilla 2.4.* kernel that ships with Slack 10.2. I only know of ripperX and grip, but since I have not loaded the Gnome libraries, grip won't work. Are there other ripping programs - perhaps I could download those and experiment. No doubt that they are all front-ends for cdparanoia, and from a previous post, if cdparanoia can't find my cdrom, then I guess that I am up shit creek without a cd-ripper, unless I invoke the program as root.
Still, I am really curious as to what is causing this problem, so at an intellectual level it would be nice to get to the bottom of this.
Cheers for any further help
 
Old 04-29-2006, 03:00 PM   #10
basileus
Member
 
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Rep: Reputation: 30
Try if you can find any info on cdparanoia website, man pages, other documents etc. I guess that if ripping works as root, then the problem must be related to permissions. Try compiling cdparanoia yourself, instead of using the default. Package maintainers sometimes make broken builds by mistake.
 
Old 04-30-2006, 03:34 PM   #11
d00bid00b
Member
 
Registered: Aug 2005
Location: London, UK
Distribution: Debian Testing
Posts: 157

Original Poster
Rep: Reputation: 31
ripperX denies me access to CD Drive :: FIXED

I guess the error is related to permissions also, but for the life of me I cannot figure out anything about how to correct it from the ripperX website and the docs don't address this.
However, I have found a fix: cdparanoia apparently uses an 'sg' interface to read scsi devices.
By changing permissions here, this seems to work.

Therefore the fix is:
Quote:
chmod 777 /dev/sg0
and hey presto! works like a charm

Last edited by d00bid00b; 04-30-2006 at 03:36 PM. Reason: Update title
 
  


Reply



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
in.rsdh denies access to root sylliaad Linux - Security 2 07-13-2005 06:23 PM
Problems with ripperx encoding walterbyrd Linux - Software 1 03-09-2005 03:04 PM
ripperX problem doralsoral Linux - Software 1 12-07-2004 10:01 AM
Here on Win/Iexplorer: Linux denies Access to the Net? JZL240I-U Linux - General 6 07-19-2004 12:29 AM
ripperX perms doralsoral Linux - Software 5 05-02-2004 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:26 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