data CDrom is not autodetected

Dear forum members,

I have installed openSUSE 11.2 on a brand new computer.
I want to read in DATA-CDroms, but they are not recognized automatically.
No message appears on KDE4 desktop after insertion into the DVD-drive and cease of drive activity.
In K3b the Volume ID is seen after media check and the mount button is offered in the context menu, which however has no effect. However Audio-CDs and data DVD are autodetected and can be accessed.
I searched the internet and this forum and detected a lot of cdrom mount problems.I tried all those hints and don’t know any further.

I added disk, cdrom, haldaemon successively to my groups membership, without change of behaviour.

The excerpts from the system log show errors during insertion of the data CDrom, but also for an Audio CD, which however is automatically recognised as “Volume”.

Please tell, what diagnostics or settings I should perform, so that this problem may be solved?

**Many thanks
**

From here printouts of several tools:

BS: Linux 2.6.31.5-0.1-desktop x86_64
System: openSUSE 11.2 (x86_64)
KDE: 4.3.1 (KDE 4.3.1) “release 6”
Prozessor (CPU): AMD Phenom™ II X2 550 Processor

:~> eject -v
eject: benutze Standardgerät /dev/cdrom' eject: Gerätename ist /dev/cdrom’
eject: erweiterter Name ist /dev/cdrom' eject: /dev/cdrom’ ist ein Link auf /dev/sr0' eject: /dev/sr0’ ist nicht gemountet
eject: /dev/sr0' ist kein mount point eject: /dev/sr0’ ist kein Gerät mit mehreren Partitionen
eject: Versuche `/dev/sr0’ mit dem CD eject Befehl auszuwerfen
eject: CD eject war erfolgreich

:~> /usr/sbin/hwinfo --cdrom
27: SCSI 300.0: 10602 CD-ROM (DVD)
[Created at block.247]
UDI: /org/freedesktop/Hal/devices/storage_model_CDDVDW_SH_S223B
Unique ID: KD9E.ReCez3kN7BB
Parent ID: WL76.yE7770eiVn1
SysFS ID: /class/block/sr0
SysFS BusID: 3:0:0:0
SysFS Device Link: /devices/pci0000:00/0000:00:09.0/host3/target3:0:0/3:0:0:0
Hardware Class: cdrom
Model: “TSSTcorp CDDVDW SH-S223B”
Vendor: “TSSTcorp”
Device: “CDDVDW SH-S223B”
Revision: “SB01”
Driver: “ahci”, “sr”
Driver Modules: “ahci”
Device File: /dev/sr0 (/dev/sg1)
Device Files: /dev/sr0, /dev/block/11:0, /dev/scd0, /dev/disk/by-path/pci-0000:00:09.0-scsi-3:0:0:0, /dev/disk/by-label/Raumschiff, /dev/cdrom, /dev/cdrw, /dev/dvd, /dev/dvdrw
Device Number: block 11:0 (char 21:1)
Features: CD-R, CD-RW, DVD, DVD-R, DVD-RW, DVD+R, DVD+RW, DVD+DL, DVDRAM
Config Status: cfg=no, avail=yes, need=no, active=unknown
Attached to: #14 (IDE interface)
Drive Speed: 48
Volume ID: “RAUMSCHIFF”
Application: “EASY CD CREATOR 4.1 (202) COPYRIGHT (C) 1996-1999 ADAPTEC, INC.”
Creation date: “2001031918270200”
:~>

~> ls -l /dev/cdrom
lrwxrwxrwx 1 root root 3 29. Nov 21:33 /dev/cdrom -> sr0

I mounted it manually under the fancy name “romcd”, which made it readable in the path /media/romcd/…
But of course it was not integrated into KDE:

:~> sudo mkdir /media/romcd
:~> sudo mount -t iso9660 /dev/sr0 /media/romcd
mount: blockorientiertes Gerät /dev/sr0 ist schreibgeschützt, wird eingehängt im Nur-Lese-Modus

===============================================================

with a DATA-CDrom in /var/log/messages are 7 repetitions of these lines:
Nov 29 23:04:42 linux-usoj kernel: 37.919323] sr 3:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Nov 29 23:04:42 linux-usoj kernel: 37.919359] sr 3:0:0:0: [sr0] Sense Key : Illegal Request [current]
Nov 29 23:04:42 linux-usoj kernel: 37.919384] sr 3:0:0:0: [sr0] Add. Sense: Illegal mode for this track
Nov 29 23:04:42 linux-usoj kernel: 37.919411] end_request: I/O error, dev sr0, sector 1319704
Nov 29 23:04:42 linux-usoj kernel: 37.919433] Buffer I/O error on device sr0, logical block 329926

An Audio CD is recognised as “Volume” and displayed in Dolphin below trash. It can be played with KsCD…
this time however similar error messages are found in /var/log/messages repeatedly:
Nov 29 23:20:20 linux-usoj kernel: 976.272574] sr 3:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Nov 29 23:20:20 linux-usoj kernel: 976.272621] sr 3:0:0:0: [sr0] Sense Key : Illegal Request [current]
Nov 29 23:20:20 linux-usoj kernel: 976.272645] sr 3:0:0:0: [sr0] Add. Sense: Illegal mode for this track
Nov 29 23:20:20 linux-usoj kernel: 976.272670] end_request: I/O error, dev sr0, sector 0

The used openSuse 11.2 DVD is recognised as “CDROM” and listed in dolphin file manager below the trash.
After DVD-insertion no error is reported in /var/log/messages :

Nov 29 23:44:23 linux-usoj rsyslogd: – MARK –
Nov 29 23:45:36 linux-usoj kernel: 2491.747506] ISO 9660 Extensions: Microsoft Joliet Level 3
Nov 29 23:45:36 linux-usoj kernel: 2491.782016] ISO 9660 Extensions: RRIP_1991A
Nov 29 23:45:36 linux-usoj hald: mounted /dev/sr0 on behalf of uid 1000

Using following, the drive does not open any longer, and there is really no text after the =:
~> lshal --monitor

Start monitoring devicelist:

23:58:43.837: storage_model_CDDVDW_SH_S223B condition EjectPressed =

Next try, after eject from dolphin, then insert DVD, eject DVD, insert CDrom:
:~> lshal -m

Start monitoring devicelist:

00:04:33.656: storage_model_CDDVDW_SH_S223B property storage.removable.media_available = true
00:04:33.696: storage_model_CDDVDW_SH_S223B property storage.cdrom.write_speeds = {‘24930’, ‘22160’, ‘16620’, ‘11080’, ‘8310’, ‘5540’}
00:04:33.698: storage_model_CDDVDW_SH_S223B property storage.cdrom.write_speed = 24930 (0x6162)
00:04:39.091: volume_label_CDROM added
00:04:57.033: storage_model_CDDVDW_SH_S223B property storage.removable.media_available = false
00:04:57.176: storage_model_CDDVDW_SH_S223B property storage.cdrom.write_speed = 3176 (0xc68)
00:04:57.191: volume_label_CDROM removed
//now insert data CDrom
00:05:32.648: storage_model_CDDVDW_SH_S223B property storage.removable.media_available = true
00:05:32.731: storage_model_CDDVDW_SH_S223B property storage.removable.media_size = 190935040 (0xb617000)
00:05:32.733: storage_model_CDDVDW_SH_S223B property storage.cdrom.write_speed = 8468 (0x2114)
00:05:32.734: storage_model_CDDVDW_SH_S223B property storage.cdrom.read_speed = 2823 (0xb07)

:~> zypper lr -d

| Alias | Name | Aktiviert | Aktualisieren | Priorität | Typ | URI | Dienst

–±----------------±----------------------±----------±--------------±----------±-------±----------------------------------------------------------------±------
1 | Packman-RPMs | Packman-RPMs | Ja | Ja | 90 | rpm-md | ftp://ftp.uni-erlangen.de/%2Fpub/mirrors/packman/suse/11.2/ |
2 | nVidia | nVidia | Ja | Ja | 99 | rpm-md | http://download.nvidia.com/opensuse/11.2 |
3 | openSUSE 11.2-0 | openSUSE 11.2-0 | Ja | Nein | 99 | yast2 | cd:/// |
4 | repo-debug | openSUSE-11.2-Debug | Nein | Ja | 99 | NONE | Index of /debug/distribution/11.2/repo/oss |
5 | repo-non-oss | openSUSE-11.2-Non-Oss | Ja | Ja | 99 | yast2 | Index of /distribution/11.2/repo/non-oss |
6 | repo-oss | openSUSE-11.2-Oss | Ja | Ja | 99 | yast2 | Index of /distribution/11.2/repo/oss |
7 | repo-source | openSUSE-11.2-Source | Nein | Ja | 99 | NONE | Index of /source/distribution/11.2/repo/oss |
8 | repo-update | openSUSE-11.2-Update | Ja | Ja | 99 | rpm-md | Index of /update/11.2

Do you have ‘Places’ enabled in Dolphin? (From the View menu - Panels)
Do you not get a notification when you insert the CD?

CD media is normally mounted to the /media directory

Thanks for the answer.

Yes, places are enabled. There is a list in German top down: Persönlicher Ordner (~), Netzwerk, Basisordner (/), Mülleimer (trash).
When I insert a data DVD e.g. installation medium OpenSuse 11.1, I am prompted for possible actions. I select view with file manager, then in Dolphin beneath that list the volume name “SU1110.001” will appear, and the DVD is mounted under /media/SU1110.001.

If I insert an audio CDrom, then I am prompted for possible actions, I can play it or use Dolphin and at the end of the list in Dolphin “Volume” appears with a green pictogramm of a note. For this data carrier type there is no visible mount in /media.
In /media there are these two files only:
-rw-r–r-- 1 root root 0 1. Dez 22:52 .hal-mtab
-rw------- 1 root root 0 1. Dez 22:46 .hal-mtab-lock

For a data CD there is no prompt for actions at all and also no mount in /media.
In the system log in /var/log/messages, there are the weird error reports as sent with the first contribution.

Maybe my DVD-drive has an incompatibility with the Linux-driver or vice versa?

With the audio cd try typing this in the location bar:

audiocd:/

Dear caf,

thanks for the interest.

Typing audiocd:/ into the location line of the Konqueror, some directories typical for an audio CD are displayed and unevenly numbered wav-files , namely Stück1.wav,Stück3.wav, …, Stück13.wav. with a reasonable file size of several Megabytes. After that the file size is constantly 44 Bytes and the parts=Stücke are counted up in uneven steps until 64 from there in increment 1 until infinity. The Konqueror is heavily busy, it gets hundreds of thousands of those file trunks, the status line at its lower edge counts this up. After a while the monitor gets a black out and the desktop program PLASMA restarts, at other trials the Konqueror crashes solely. Dolphin lists the same, but doesn’t crash. Dolphin is slowing down and must be terminated in the no response state.

However KsCD plays the audio CD well and all expected Stücke are accessible. I hear the music in parallel to this post.

Today I updated the system with the last changes, including hal, in the hope that the problem gets better somehow. But a data CD can still not be read. http://forums.opensuse.org/images/smiliesnew/crying.png

I also installed for diagnostic purposes in addition a very old CDrom-drive with an IDE-cable as ata - drive. This device is detected by the system as sr1, but there are many errors in /var/log/messages and no detection neither of audio nor of data CDROM. Maybe the BIOS does not do the autodetect correct. So I disabled the second CDrom drive in the BIOS for the moment, until I learn more about obsolete hardware.

Am I the only one, who can’t read data cdroms with opensuse 11.2 ?

Here is the list of errors from /var/log/messages ,which are recorded, when I eject the audio CD and insert it again on the modern SATA DVD-drive. Is the “Illegal…” not a sign, that there is a hardware/driver incompatibility ?

2009-12-03 00:14:52 linux-usoj kernel 2794.703023] sr0: CDROM not ready. Make sure there is a disc in the drive.
2009-12-03 00:14:55 linux-usoj kernel 2797.877681] sr0: CDROM not ready yet.
2009-12-03 00:14:57 linux-usoj kernel 2799.906072] sr0: CDROM not ready yet.
2009-12-03 00:14:59 linux-usoj kernel 2801.934462] sr0: CDROM not ready yet.
2009-12-03 00:15:01 linux-usoj kernel 2803.962869] sr0: CDROM not ready yet.
2009-12-03 00:15:02 linux-usoj kernel 2804.850543] sr 3:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
2009-12-03 00:15:02 linux-usoj kernel 2804.850580] sr 3:0:0:0: [sr0] Sense Key : Illegal Request [current]
2009-12-03 00:15:02 linux-usoj kernel 2804.850605] sr 3:0:0:0: [sr0] Add. Sense: Illegal mode for this track
2009-12-03 00:15:02 linux-usoj kernel 2804.850635] end_request: I/O error, dev sr0, sector 0
2009-12-03 00:15:02 linux-usoj kernel 2804.850656] __ratelimit: 66 callbacks suppressed
2009-12-03 00:15:02 linux-usoj kernel 2804.850675] Buffer I/O error on device sr0, logical block 0
2009-12-03 00:15:02 linux-usoj kernel 2804.850697] Buffer I/O error on device sr0, logical block 1
2009-12-03 00:15:02 linux-usoj kernel 2804.850719] Buffer I/O error on device sr0, logical block 2
2009-12-03 00:15:02 linux-usoj kernel 2804.850738] Buffer I/O error on device sr0, logical block 3
2009-12-03 00:15:02 linux-usoj kernel 2804.850758] Buffer I/O error on device sr0, logical block 4
2009-12-03 00:15:02 linux-usoj kernel 2804.850777] Buffer I/O error on device sr0, logical block 5
2009-12-03 00:15:02 linux-usoj kernel 2804.850796] Buffer I/O error on device sr0, logical block 6
2009-12-03 00:15:02 linux-usoj kernel 2804.850816] Buffer I/O error on device sr0, logical block 7
2009-12-03 00:15:02 linux-usoj kernel 2804.850835] Buffer I/O error on device sr0, logical block 8
2009-12-03 00:15:02 linux-usoj kernel 2804.850855] Buffer I/O error on device sr0, logical block 9
2009-12-03 00:15:02 linux-usoj kernel 2804.851905] sr 3:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
2009-12-03 00:15:02 linux-usoj kernel 2804.851933] sr 3:0:0:0: [sr0] Sense Key : Illegal Request [current]
2009-12-03 00:15:02 linux-usoj kernel 2804.851958] sr 3:0:0:0: [sr0] Add. Sense: Illegal mode for this track
2009-12-03 00:15:02 linux-usoj kernel 2804.851984] end_request: I/O error, dev sr0, sector 0
2009-12-03 00:15:02 linux-usoj kernel 2805.007293] sr 3:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
2009-12-03 00:15:02 linux-usoj kernel 2805.007327] sr 3:0:0:0: [sr0] Sense Key : Illegal Request [current]
2009-12-03 00:15:02 linux-usoj kernel 2805.007352] sr 3:0:0:0: [sr0] Add. Sense: Illegal mode for this track
2009-12-03 00:15:02 linux-usoj kernel 2805.007380] end_request: I/O error, dev sr0, sector 0
2009-12-03 00:15:02 linux-usoj kernel 2805.008615] sr 3:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
2009-12-03 00:15:02 linux-usoj kernel 2805.008644] sr 3:0:0:0: [sr0] Sense Key : Illegal Request [current]
2009-12-03 00:15:02 linux-usoj kernel 2805.008667] sr 3:0:0:0: [sr0] Add. Sense: Illegal mode for this track
2009-12-03 00:15:02 linux-usoj kernel 2805.008696] end_request: I/O error, dev sr0, sector 0
2009-12-03 00:15:02 linux-usoj kernel 2805.173353] sr 3:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
2009-12-03 00:15:02 linux-usoj kernel 2805.173386] sr 3:0:0:0: [sr0] Sense Key : Illegal Request [current]
2009-12-03 00:15:02 linux-usoj kernel 2805.173412] sr 3:0:0:0: [sr0] Add. Sense: Illegal mode for this track
2009-12-03 00:15:02 linux-usoj kernel 2805.173440] end_request: I/O error, dev sr0, sector 0
2009-12-03 00:15:02 linux-usoj kernel 2805.274135] sr 3:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
2009-12-03 00:15:02 linux-usoj kernel 2805.274168] sr 3:0:0:0: [sr0] Sense Key : Illegal Request [current]
2009-12-03 00:15:02 linux-usoj kernel 2805.274194] sr 3:0:0:0: [sr0] Add. Sense: Illegal mode for this track
2009-12-03 00:15:02 linux-usoj kernel 2805.274222] end_request: I/O error, dev sr0, sector 0
2009-12-03 00:15:02 linux-usoj kernel 2805.275368] sr 3:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
2009-12-03 00:15:02 linux-usoj kernel 2805.275396] sr 3:0:0:0: [sr0] Sense Key : Illegal Request [current]
2009-12-03 00:15:02 linux-usoj kernel 2805.275421] sr 3:0:0:0: [sr0] Add. Sense: Illegal mode for this track
2009-12-03 00:15:02 linux-usoj kernel 2805.275450] end_request: I/O error, dev sr0, sector 0

I can’t pretend to understand all that spew. But it smacks of hardware issues, obviously. But you already know that. And it is unclear to me if that relates to the sata CD or your old pata device, though it is listing: sr0
So unless you had your old device connected on it’s own, it can only be your new device.??

I can tell you I have no problem reading audio CD’s, as to play them in KsCD or to browse in Konqueror - little use that it is anyway.
The important thing is to get the audio off it, and for that I use k3b, no problem there either.

This problem cannot be a hardware issue. Suse 11.0 and XP works fine with data cdrom. It seems that 11.2 can read and show the contents of a cdrom if the media is until the last bit full.
If I insert a cd with only 120MB contents it seems to be not recognized.
Funny, I can make a copy with k3b which 11.2 do not show, but 11.0 and XP without any problem.
I tried also all the tricks mentioned in the first post.
This is a bug!
Many users more have the same problem.

Hopefully a solution will be found.

Regards

I have this same problem on my openSUSE 11.2 (KDE 4.3.4)
It had this bug on my (9,10) Kubuntu too.

P.S.
mount terminal way is still work, I have type:
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cd /mnt/cdrom

and i have access now to data cd but still in
KDE device list it’s missing.

Thanks! At least I can read out the data cdroms which are not automatically recognized by KDE.A little bit complicated, but it works. :wink:

There seems to be an issue with detection of cdroms. See this thread: cdrom drive wont mount after initial boot. - openSUSE Forums.

This may/may not solve your problem however this is how I solved a problem I’m having with applications accessing audio CD’s

Yes, I find that I cannot access an Audio CD using either Kaffeine, grip, KsCD or any other audio player. In addition xine-check responds with the fact that /dev/cdrom and /dev/dvd do not exist.

Here’s how, in my case, I fixed the problem, two methods are given, the first is a temporary fix the second method is the one I would recommend which provides a permanent fix, ie after a reboot it still works.

As I had already determined /dev/cdrom and /dev/dvd don’t exist on my system. Maybe that’s because my CDROM drive is /dev/sr0, I don’t know, however if you create these two symbolic links you should now find that your audio apps can access the cdrom/dvd drive. Replace sr0 with whatever your device name of your cdrom happens to be.

Method 1 (don’t use this method as the links will disappear after a reboot, use method 2 instead)

ln -s sr0 /dev/cdrom
ln -s sr0 /dev/dvd

Method 2 (Use this for a permanent fix)

udev is responsible for populating the /dev/… directory, so we should really have udev do the job of creating the /dev/cdrom and /dev/dvd devices. Add the following two lines to the end of /etc/udev/rules.d/70-persistent-cd.rules

Added by steelskin to provide /dev/cdrom and /dev/dvd

SUBSYSTEM==“block”, KERNEL==“sr0”, SYMLINK+=“cdrom”, GROUP=“cdrom”, ENV{GENERATED}=“1”
SUBSYSTEM==“block”, KERNEL==“sr0”, SYMLINK+=“dvd”, GROUP=“cdrom”, ENV{GENERATED}=“1”

That’s two rules and each rule MUST be on one line. So two lines! otherwise it may not work. (Just in case it’s not obvious from the way the forum formats the posts)

If you already have a audio cd or dvd in the drive just eject and put it back and udev will now use the new rules to create /dev/cdrom and /dev/dvd. You should now find kaffeine, xine, KsCD, amarok will now work properly with audio cd’s.

Good Luck :slight_smile:

hi there,

unfortunately, it doesn’t help. i think the bug is not concerned with udev itself as it is KDE specific - under Gnome CDs automount perfectly. the only workaround that i’m applying at the moment is using Nautilus when i want to browse data CDroms. but this is obviously uncomfortable.

Same problem!! data CDrom is not autodetected. How to act?

Just for reference purposes, (I’m using KDE 4.3, openSUSE 11.0) and with a data CD/DVD present, I open Dolphin and a ‘Places’ entry appears for the relevant CD/DVD. Upon clicking on the entry the disk contents are then shown, or is this where the problem is? Do you have the ‘Places’ panel present? (View > Places enabled).