DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using KDE and I'm having problems playing an audio CD. The CD Player application reports: "Drive error". CD Player preferences shows CD Player Device as "/dev/cdrom". I think the links are correct (I had to recreate them after moving my CD drive in the IDE chain):
I am using KDE and I'm having problems playing an audio CD. The CD Player application reports: "Drive error". CD Player preferences shows CD Player Device as "/dev/cdrom". I think the links are correct (I had to recreate them after moving my CD drive in the IDE chain):
I can mount a data CD ok, and play mp3s that way. My fstab entry for the CD is:
Code:
/dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0
CD Player reports the same "Drive error" message when I use it with a data CD mounted.
Any ideas?
PS I am not doing logged in as root to play a CD.
Well the first thing I would do is duplicate the entry you already have for the cdrom in the /etc/fstab and change too /dev/cdrom for the mount point then that will actually exist for things looking for that in the /etc/fstab. Then I would make sure that the /media/cdrom actually points to the /dev/hdc for anything that uses that. The links on my machine are.
With the link ending up at the /dev/scd0 because I still use ide-scsi emulation for my cdrom/burners.
I would also check with the groups command to make sure that I was a member of the audio and cdrom groups. If not then as root in a console window/at the console use adduser user_name audio and repeat the same for the cdrom if necessary then logout and back in for the change to take effect.
BTW an audio cd player (what are you using anyways) is for audio disks not disks with mp3's on them you have to play them as files. So if this is what you are trying to do then the behavior you are seeing is to be expected.
BTW an audio cd player (what are you using anyways) is for audio disks not disks with mp3's on them you have to play them as files. So if this is what you are trying to do then the behavior you are seeing is to be expected.
No, I am trying to play an audio CD. Playing mp3s from a mounted data CD is no problem.
Still no change, [i]CD Player[i] displays the "Drive Error" message. Frustrating. I do have some new information though. On startup I get this message before the CD drive is properly identified:
Code:
$ dmesg | grep -A 2 -B 2 hdc
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci0000:00:11.1
ide0: BM-DMA at 0xb800-0xb807, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdc:DMA, hdd:DMA
hda: SAMSUNG SP1604N, ATA DISK drive
Using anticipatory io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: no response (status = 0x80), resetting drive
hdc: LITE-ON CD-RW SOHR-5238S, ATAPI CD/DVD-ROM drive
hdd: Maxtor 6Y120L0, ATA DISK drive
ide1 at 0x170-0x177,0x376 on irq 15
--
EXT3 FS on hda8, internal journal
Generic RTC Driver v1.07
hdc: ATAPI 52X CD-ROM CD-R/RW CD-MRW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
This part here is a little strange hdc: no response (status = 0x80), resetting drive in the boot messages it should not be doing that did you have a cd in the drive when booting. Lets try this install the cdtool package then use cdplay in a console window to confirm that the cd will play from the command line if this is so then there is something wrong with the package you are using for playing graphically. You of course use cdstop to stop playing the cd.
$ cdplay
cdplay: can't open cdrom (/dev/cdrom)
cdplay: error opening /dev/cdrom
/dev/cdrom is owned by group "disk"
Try, as root: chgrp --dereference cdrom /dev/cdrom
cdplay: CD status is no_disc
$ su
Password:
$ chgrp --dereference cdrom /dev/cdrom
$ exit
exit
$ cdplay
That was it. Thanks! (That's 3 of my problems that you've fixed already. Much appreciated!)
I caused this problem by moving my cdrom drive to a different IDE chain. Is there anything in Debian that tracks that for you?
I get that hdc: no response (status = 0x80), resetting drive message with or without a CD in the drive. It is a little annoying because it does add 5-10 seconds to my boot time. But I can live with it for the time being.
Originally posted by malbery That's one friendly command-line application:
Code:
$ cdplay
cdplay: can't open cdrom (/dev/cdrom)
cdplay: error opening /dev/cdrom
/dev/cdrom is owned by group "disk"
Try, as root: chgrp --dereference cdrom /dev/cdrom
cdplay: CD status is no_disc
$ su
Password:
$ chgrp --dereference cdrom /dev/cdrom
$ exit
exit
$ cdplay
That was it. Thanks! (That's 3 of my problems that you've fixed already. Much appreciated!)
You welcome, most times it always best to go back to the command line them fancy graphics tell you nothing about what is really happening.
Quote:
I caused this problem by moving my cdrom drive to a different IDE chain. Is there anything in Debian that tracks that for you?
No you the administrator of the system are expected to make the proper changes to the system when you move things around. Now if you had been using ide-scsi like I am then you could safely moved the disk as long as you did not put it on the system with another cdrom in between, it would still have for me been detected as scd0 the first cd device using ide-scsi so the link would have worked, it is not the same when using the /dev/hd?.
Quote:
I get that hdc: no response (status = 0x80), resetting drive message with or without a CD in the drive. It is a little annoying because it does add 5-10 seconds to my boot time. But I can live with it for the time being.
That sucks almost sounds like the drive is getting ready to die off on you then.
That sucks almost sounds like the drive is getting ready to die off on you then.
I hope not, it's brand new!
Quote:
No you the administrator of the system are expected to make the proper changes to the system when you move things around. Now if you had been using ide-scsi like I am then you could safely moved the disk as long as you did not put it on the system with another cdrom in between, it would still have for me been detected as scd0 the first cd device using ide-scsi so the link would have worked, it is not the same when using the /dev/hd?.
This CD drive I also intend to use as a CD burner. From what I've read elsewhere it appears that I will need to setup this ide-scsi anyway. Is that correct?
Originally posted by malbery
I hope not, it's brand new!
It may just something strange the system does not like about the drive but a message telling you it is resetting it all the time is not a good sign.
Quote:
This CD drive I also intend to use as a CD burner. From what I've read elsewhere it appears that I will need to setup this ide-scsi anyway. Is that correct? [/B]
Not really I believe you are using a 2.6 kernel are you not if so the try cdrecord -dev:ATA -scanbus and it should find the burner.
Code:
[HappyTux:/home/stephen]# cdrecord -scanbus
Cdrecord-Clone 2.01a34 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
and thus may have bugs that are not present in the original version.
Please send bug reports and support requests to <cdrtools@packages.debian.org>.
The original author should not be bothered with problems of this version.
Linux sg driver version: 3.5.31
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) 'HL-DT-ST' 'DVDRAM GSA-4040B' 'A104' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
Now this show what it looks like with ide-scsi but the principle is the same you get the number in my case 0,0,0 then if I want to record something from the command line then cdrecord -v -eject driveropts=burnfree speed=8 dev=0,0,0 some.iso you would just change to dev=ATA:0,0,0 and the number(s) if it differs and programs like K3b should be able to find the burner using the ATA instead of ide-scsi without problems.
Yes, I am using kernel 2.6. Straight off the bat, cdrecord doesn't see it. I'll have a proper look at it later. Thanks for the help.
Code:
$ cdrecord -dev:ATA -scanbus
Cdrecord-Clone 2.01a34 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
and thus may have bugs that are not present in the original version.
Please send bug reports and support requests to <cdrtools@packages.debian.org>.
The original author should not be bothered with problems of this version.
scsidev: ':ATA'
devname: ':ATA'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
cdrecord: No such file or directory. Cannot open ':ATA'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
cdrecord:
cdrecord: For more information, install the cdrtools-doc
cdrecord: package and read /usr/share/doc/cdrecord/README.ATAPI.setup .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.