Click to See Complete Forum and Search --> : problem with accessing audio cd


floyd_003
12-30-2001, 07:57 PM
I have Mandrake 8.1, and I have problem playing music cds. Everythink was fine before, though. I played with userdrake, and I am member of following groups: cdrom, audio, cdwriter, usb, xgrp, radio, news, games and floppy. I don't know if I broke somethning but the problem is that system is always looking for /mnt/cdrom while my cdrom is /dev/hdc. When I try to open music cd, it gives me error "could not mount device. /dev/hdc: Input/output error
mount:I could not determine the filesystem type, and none was specified.
I know that I can't mount audio files, and I can play them through xmms by configuring libcdaudio.so to point to /ev/hdc. However, I can't do anything with cdparanoia and smiliar programs since they can't access cd. And by the way, I don't have /dev/cdrom directory, there is /dev/cdroms directory. There is cdrom file in /dev directory. Also my fstab line for cdrom shows
/dev/hdc /mnt/cdrom auto user, iocharset=iso8859-1, umask=0, exec, codepage=850, ro, auto 0 0.
When I tried chmod 777 /dev/cdrom according to one post, I got error No such file or directory.
It seems to me that link is broken between /mnt/cdrom and /dev/hdc. When I tried ln -s /dev/hdc /mnt/cdrom I got hdc link created there, but still doesn't work. By the way,none of other folders in /mnt directory like cdrom2 (which is CDRW), disk nor floppy have any links in. Any help would be greatly appreciated, I was searching a last few days through forums and newsgroups but nothing. Thanks.

bdl
12-30-2001, 09:48 PM
I'm wondering if there's a problem with the CD auto-mounting; is it a 'mixed-mode' or 'enhanced' CD with data and audio tracks? I'd start with verifying that the link /dev/cdrom does point to your CD-ROM drive, that the group for /dev/hdc is 'cdrom' and that the perms are 660 on the device.

prompt# ln -sf /dev/hdc /dev/cdrom
prompt# chown root.cdrom /dev/hdc
prompt# chmod 660 /dev/hdc

Luck!

floyd_003
12-30-2001, 11:21 PM
I tried, don't work. Thanks though

Alex Cavnar, aka alc6379
12-30-2001, 11:35 PM
try editing your /etc/fstab file. change the entry for /mnt/cdrom from /dev/cdrom to /dev/hdc. See if that helps... When I ran MDK 8, it helped...

jdctx
12-31-2001, 09:44 AM
I think konqueror or Gnome equivalant has a problem understanding or telling the difference between an audio and software cd. If you open cdplayer it should automatically detect your audio cd for play.

mrBen
12-31-2001, 10:03 AM
A filesystem device on a Linux box has 2 files associated with it. The file in the /dev folder is, as it were, the 'raw' device file - /dev/hda for your first harddrive, /dev/fd0 for your first floppy, etc, etc. Filesystems, however, need to be mounted in order to be read correctly. This is where the /etc/fstab file comes in - it lists where all the default devices should be mounted.

So, for a normal CD-ROM, the actual device is /dev/hdc, and this is then mounted onto the directory /mnt/cdrom, which is where you then go to view the directories on the CD. So you shouldn't have a link from /mnt/cdrom to /dev/hdc. /mnt/cdrom should just be an ordinary directory. Mandrake also has some clever stuff meaning you don't have to mount and unmount the drives yourself, which is good.

Audio CDs, however, do not need mounting at all, IIRC. With any music play, say XMMS, in Mandrake you should be able to point it straight at /mnt/cdrom and it'll play. Or it should.

Lesson over, now a few questions. What are you trying to open audio CDs with? Can you open data CDs as normal?

HTH

evilcartman
12-31-2001, 10:12 AM
grip -d /dev/hdc :) Happy new year!!!!

camelrider
12-31-2001, 06:19 PM
mrBen's advice sounds good to me..
I think I read tht there was an issue with the version of automount in the 8.1 Mdk release. You might check their Mandrake-Update site.

[ 31 December 2001: Message edited by: camelrider ]

DMR
12-31-2001, 07:59 PM
<STRONG>...Everythink was fine before, though. I played with userdrake...</STRONG>You say that you "played with userdrake", can you remember specifically what you did? <STRONG>...but the problem is that system is always looking for /mnt/cdrom while my cdrom is /dev/hdc.</STRONG>On my Mandrake 8.0 system /mnt/cdrom is just a link to /dev/hdc, which is what it should be. I know you said that you created that link; are you sure it worked (ls -l /mnt/cdrom points to /dev/hdc)? <STRONG>When I try to open music cd, it gives me error "could not mount device. /dev/hdc: Input/output error
mount:I could not determine the filesystem type, and none was specified.</STRONG>As you said, you can't mount an audio CD, and that's what this error is complaining about. When you say that you tried to "open" the CD, how were you trying to do it (e.g., through what application)?
<STRONG>And by the way, I don't have /dev/cdrom directory, there is /dev/cdroms directory. There is cdrom file in /dev directory.</STRONG>Unless Mandrake 8.1 differs drastically from 8.0, you won't have a /dev/cdrom directory, just the /dev/cdrom symlink which should point to /dev/hdc. What is in the /dev/cdroms directory? <STRONG>Also my fstab line for cdrom shows
/dev/hdc /mnt/cdrom auto user, iocharset=iso8859-1, umask=0, exec, codepage=850, ro, auto 0 0.</STRONG>That's cool for data CDs, but as we've both said- audio CDs aren't mountable (because they don't have a filesystem), which means that the fstab entry doesn't apply to them. <STRONG>When I tried chmod 777 /dev/cdrom according to one post, I got error No such file or directory.
It seems to me that link is broken between /mnt/cdrom and /dev/hdc. When I tried ln -s /dev/hdc /mnt/cdrom I got hdc link created there, but still doesn't work.</STRONG>You really should go back and verify that the link is working. Again, do "ls -l /dev/cdrom" to verify that it points to /dev/hdc.

Sorry to provide more questions than answers, but it just seems like some small point is getting overlooked here...

BTW- Happy New Year!

floyd_003
01-01-2002, 05:51 AM
Ok guys, I appreciate your help. Maybe I made some mistakes here but I thought that I should be able to browse through audio cd as well as data one. I created CDROM shortcut on my desktop pointing to device /dev/hdc with mounting point /mnt/cdrom. However, it seems that I can't browse audio CD since it can't be mounted which is logical. However, what confuse me is that I got the very same error when I open CD Player. I can play audio CDs with xmms or grip. I found out that CD Player points to /dev/cdrom, and when I tried to change it to /dev/hdc application crash. I can't submit report because I can't enter my e-mail address (read only field). So it seems to me more like CD Player bug then anything else. I can play audio CDs but I was just curious why CD Player doesn't work. I guess this is the way how to learn Linux, digg in. Thanks for all your help guys.

floyd_003
01-01-2002, 05:53 AM
I forgot to say that I can browse through data CDs, I guess since they can be mounted. And Happy New Year to all of you

floyd_003
01-01-2002, 06:11 AM
It's me again, I guess too much beer for New Year's eve. So the real problem is that every application for burning CDs can't work because I can't browse audio CDs. I tried cddoit, gnometoaster, eroaster, ripperX. When I need to add audio files I can't because they are not visible in /mnt/cdrom since it's not mounted which is logical. But how am I supposed to copy audio CD? I haven't tried to burn mp3s, but it shouldn't be the problem. Any ideas? Thanks

evilcartman
01-01-2002, 06:55 AM
I wont say again grrrrrrr.....Go to terminal and grip -d /dev/hdc Grip can rip copy do whatever you want!

floyd_003
01-03-2002, 03:17 AM
Guys, I do need your help. It seesm that I screwed something trying to fix previous problem. No I can't open even data CD. It gives me error :Could not mount device. The reported error was: /dev/hdc: Input/output error mount: I could not determine the file system type, and none was specified. I got the same error when I try to mount it. Again, my fstab entries
/dev/hdc /mnt/cdrom auto user,exec,nodev,nosuid,ro,umask=0,iocharset=iso885 9-1,codepage=850 0 0
/dev/scd0 /mnt/cdrom2 auto user,exec,nodev,nosuid,rw,umask=0,iocharset=iso885 9-1,codepage=850 0 0
Both CD ROMs are IDE but Linux recognize CD RW (cdrom2) as SCSI. I also have hdc link in /mnt/cdrom directory.
When I do ls -l /mnt/cdrom I got
total 0 lrwxrwxrwx 1 root root 8 Dec 30 18:48 hdc-&gt; /dev/hdc which is right I guess. ?dev/cdroms directory has six cdrom links, from cdrom1 to cdrom6. Any ideas guys? What did I screwed this time? Thanks.

camelrider
01-03-2002, 01:03 PM
In /etc/fstab should there be a comma between "auto" and "user" ??

floyd_003
01-03-2002, 11:17 PM
Hey thanks buddy. It's miracleous what one comma means. I just burned my first CD. Thanks everyone for help. Take care :)

DMR
01-03-2002, 11:56 PM
It's always the little things in life that come 'round to bite you in the butt,eh?
;)