Bug 1020034

Summary: mixed mode CD only recognized as audio-CD
Product: [openSUSE] openSUSE Distribution Reporter: Michael Metz-Heimburg <ml.heimburg>
Component: BasesystemAssignee: Stanislav Brabec <sbrabec>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: forgotten_8OtnHtSGgZ, juergen, kde-maintainers, ml.heimburg, sbrabec, wbauer
Version: Leap 42.2   
Target Milestone: Leap 42.2   
Hardware: x86-64   
OS: openSUSE 42.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Michael Metz-Heimburg 2017-01-15 12:38:25 UTC
Hello,

openSUSE Leap42.2 recognize mixed mode CD in ISO9660 with one Data-track and audio-tracks only as audio-CD. So the mixed mode CD is not automounted in Dolphin or other file-manager (konqueror, nautilus).
The result of blkid in the terminal as root is just nothing. The device dev/sr0, dev/dvd or dev/cdrom does not exist.
The results of cd-info or cdctl - independent of their versions - were always one data-track in ISO9660, several audio-tracks and the correct volume-label of the CD.

Mixed mode CD can only be mounted by creating a mountpoint and mounting in a root-terminal with mount -t iso9660 /dev/sr0 /mnt/mountpoint.


In all other earlier versions of openSUSE with the implemented autofs for automounting all removable devices were recognize and automounted in Dolphin correctly.

I tested this behaviour for mixed mode CD under following conditions with the same results:
openSUSE Leap42.2

Test 1:
Kernel Version: 4.4.27-2.1
kde4 libraries: 4.14.25-1.1
kdebase4 libraries: 16.08.2-1.1
kdebase4workspace libraries: 4.11.22-3.24
Plasma libraries: 5.8.2-1.1
Plasmaframework libraries: 5.27.0-20160928

Test 2:
Kernel Version: 4.4.36-8.1
kde4 libraries: 4.14.25-1.1
kdebase4 libraries: 16.08.2-1.1
kdebase4workspace libraries: 4.11.22-3.24
Plasma libraries: 5.8.3-5.1
Plasmaframework libraries: 5.27.0-20160928

Test 3:
Kernel Version: 4.1.36-35.1 (from openSUSE Leap42.1)
kde4 libraries: 4.14.25-1.1
kdebase4 libraries: 16.08.2-1.1
kdebase4workspace libraries: 4.11.22-3.24
Plasma libraries: 5.8.3-5.1
Plasmaframework libraries: 5.27.0-20160928

Test 4:
Kernel Version: 4.1.36-35.1 (from openSUSE Leap42.1)
kde4 libraries: 4.14.17-7.1 (from openSUSE Leap42.1)
kdebase4 libraries: 15.2.3-15.8 (from openSUSE Leap42.1)
kdebase4workspace libraries: 14.11.22-1.7 (from openSUSE Leap42.1)
Plasma libraries: 5.5.4-9.1 (from openSUSE Leap42.1)
Plasmaframework libraries: 5.21.0-15.1 (from openSUSE Leap42.1)

In all test conditions mixed mode CD were not recognized and not automounted in a file-manager.


Then I reinstalled openSUSE Leap42.1. Mixed mode CD were recognized and automounted in a file-Manager correctly.

I tested this behaviour for mixed mode CD under following conditions with the same results:

openSUSE Leap42.1:

Test 5:
Kernel Version: 4.1.12-1.1
kde4 libraries: 4.14.10-2.1
kdebase4 libraries: 15.08.2-2.1
kdebase4workspace libraries: 14.11.22-1.7
Plasma libraries: 5.4.2-1.2
Plasmaframework libraries: 5.21.0-15.1

Test 6:
Kernel Version: 4.1.36-8.1
kde4 libraries: 4.14.25-1.1
kdebase4 libraries: 15.12.3-15.8
kdebase4workspace libraries: 14.11.22-1.7
Plasma libraries: 5.5.4-9.1
Plasmaframework libraries: 5.21.0-15.1

Test 7:
Kernel Version: 4.4.27-2.1
kde4 libraries: 4.14.25-1.1
kdebase4 libraries: 15.12.3-15.8
kdebase4workspace libraries: 14.11.22-1.7
Plasma libraries: 5.5.4-9.1
Plasmaframework libraries: 5.21.0-15.1

Test 8:
Kernel Version: 4.4.36-8.1
kde4 libraries: 4.14.25-1.1
kdebase4 libraries: 16.08.2-1.1
kdebase4workspace libraries: 4.11.22-3.24
Plasma libraries: 5.5.4-9.1
Plasmaframework libraries: 5.21.0-15.1.


Under all test condition mixed mode CD were recognized and automounted in a file-manager correctly.

I guess that there is a bug maybe in the libkf5solid libraries or other libraries for detecting devices in opensuse Leap42.2 distribution.
Comment 1 Wolfgang Bauer 2017-01-15 22:28:16 UTC
Well, I very much doubt that this problem is caused by a change in KDE (solid), especially if it worked in 42.1.

There hasn't been any change AFAIK, and definitely not in the KDE4 version that Konqueror would use in 42.2...

Rather a problem/change in a lower layer I suppose.

Just a thought, there is a running update for systemd currently that is supposed to fix some CD problems:
https://build.opensuse.org/project/show/openSUSE:Maintenance:6153

Can you try this please, and report back if it fixes your problem?
Add the test repo and install it from there, I think that should already contain that systemd version:
http://download.opensuse.org/update/leap/42.2-test/

Thanks.
Comment 2 Wolfgang Bauer 2017-01-15 22:56:11 UTC
PS, this is the patchinfo of the running systemd update:
https://build.opensuse.org/patchinfo/show/openSUSE:Maintenance:6153/patchinfo

As mentioned, please try it and report back whether it helps.
Comment 3 Michael Metz-Heimburg 2017-01-17 15:22:31 UTC
Thank you for this info. Next weekend I will have time for installing openSUSE Leap42.2 again and try your proposal.
Comment 4 Michael Metz-Heimburg 2017-01-21 14:32:17 UTC
I tested the patch of the systemd update and the systemd-version und udev-version of openSUSE Leap 42.1.

Mixed mode cd (CD with a datatrack in ISO 9660 and Joliet 1 and several audiotracks) are recognized only as audio-cd and can not be mounted in a file manager. 

I downgraded also all kio libraries to openSUSE Leap 42.1 without any success.

In the terminal hwinfo --cdrom mixed mode cd with data and audio tracks are recognized correctly.

I don't have any idea on what it depends that mixed mode cd can not be automounted in a file manager.

So I will reinstall openSUSE Leap 42.1 until this problem  is solved.

Thank you for your help.
Comment 5 Michael Metz-Heimburg 2017-01-29 14:23:54 UTC
I installed the newest version of opensuse Leap 42.2 on an external HDD. Mixed mode CD are not detected correctly with the updated version of libblkid. The data track of a mixed mode is not detected.

I made tests with the version libblkid-2.28-7.1-x86_64.rpm from repository http://download.opensuse.org/update/leap/42.2/oss and the version ibblkid-2.28-7.1-x86_64.rpm to libblkid-2.25-18.1-x86_64.rpm from repository http://download.opensuse.org/update/leap/42.1/oss.

The detection is correct with the version of opensuse Leap 42.1.

So I guess that there is probably a bug in the newest version of libblkid.so from the official update repository of opensuse Leap 42.2. Maybe there is a solution for correcting this error.

I attached the output of two tests.

Test1:
With version libblkid-2.28-7.1-x86_64.rpm from repository http://download.opensuse.org/update/leap/42.2/oss

libblkid-2.28-7.1-x86_64.rpm
libblkid-devel-2.28-7.1-x86_64.rpm

Output of cdinfo:

lie225@Bibliothek:~> cdinfo
CD Info 1.1 | (c) 1996-98 Gerd Knorr & Heiko Ei�feldt
__________________________________
track list (1 - 10)
 nr: msf      lba      ctrl adr  type
  1: 00:02:00 (000000) 0x4 0x1 data 
  2: 45:37:68 (205193) 0x0 0x1 audio
  3: 48:36:36 (218586) 0x0 0x1 audio
  4: 50:55:62 (229037) 0x0 0x1 audio
  5: 53:13:15 (239340) 0x0 0x1 audio
  6: 55:27:15 (249390) 0x0 0x1 audio
  7: 58:12:31 (261781) 0x0 0x1 audio
  8: 60:34:05 (272405) 0x0 0x1 audio
  9: 64:05:06 (288231) 0x0 0x1 audio
 10: 66:31:01 (299176) 0x0 0x1 audio
170: 68:38:17 (308717) 0x0 0x1 audio (leadout)
__________________________________
what ioctl's report
get mcn     : 
disc status : unknown (failed?)
multisession: 0
audio status: invalid
__________________________________
try to find out what sort of CD this is
CD-ROM with iso9660 fs and joliet extension level 1
iso9660: 400 MB size, label `SAGA                            '
mixed mode CD   

Device notifications:
Copy with k3b
Play Audio CD with Kaffeine
Extract Digital Audio with K3b
Open with VLC media player

Mounting in dolphin not possible

Output of lsblk:

lie225@Bibliothek:~> lsblk -o NAME,UUID,FSTYPE,SIZE,LABEL,MOUNTPOINT
NAME   UUID FSTYPE   SIZE LABEL MOUNTPOINT
sda                465,8G       
├─sda1                 7M       
├─sda2                 8G       
├─sda3                40G       
└─sda4             417,8G       
sdb                465,8G       
├─sdb1                 1M       
├─sdb2                 8G       
├─sdb3                40G       
└─sdb4             417,8G       
sdc                931,5G       
├─sdc1                19M       
├─sdc2                 8G       [SWAP]
├─sdc3                45G       /var/log
└─sdc4             878,5G       /home
sr0                  603M       
sr1                 1024M

Test2:

After downgrading libblkid-2.28-7.1-x86_64.rpm to libblkid-2.25-18.1-x86_64.rpm from repository http://download.opensuse.org/update/leap/42.1/oss

libblkid-2.25-18.1-x86_64.rpm
libblkid-devel-2.25-18.1-x86_64.rpm

Output from cdinfo

lie225@Bibliothek:~> cdinfo
CD Info 1.1 | (c) 1996-98 Gerd Knorr & Heiko Ei�feldt
__________________________________
track list (1 - 10)
 nr: msf      lba      ctrl adr  type
  1: 00:02:00 (000000) 0x4 0x1 data 
  2: 45:37:68 (205193) 0x0 0x1 audio
  3: 48:36:36 (218586) 0x0 0x1 audio
  4: 50:55:62 (229037) 0x0 0x1 audio
  5: 53:13:15 (239340) 0x0 0x1 audio
  6: 55:27:15 (249390) 0x0 0x1 audio
  7: 58:12:31 (261781) 0x0 0x1 audio
  8: 60:34:05 (272405) 0x0 0x1 audio
  9: 64:05:06 (288231) 0x0 0x1 audio
 10: 66:31:01 (299176) 0x0 0x1 audio
170: 68:38:17 (308717) 0x0 0x1 audio (leadout)
__________________________________
what ioctl's report
get mcn     : 
disc status : unknown (failed?)
multisession: 0
audio status: invalid
__________________________________
try to find out what sort of CD this is
CD-ROM with iso9660 fs and joliet extension level 1
iso9660: 400 MB size, label `SAGA                            '
mixed mode CD   


Device notifications:
Download Photos with digiKam
Open with File Manager
Copy with k3b
Play Audio CD with Kaffeine
Extract Digital Audio with K3b
Open with VLC media player

output of lsblk after mounted in dolphin

lsblk -o NAME,UUID,FSTYPE,SIZE,LABEL,MOUNTPOINT
NAME   UUID                                 FSTYPE   SIZE LABEL MOUNTPOINT
sda                                                465.8G       
├─sda1                                                 7M       
├─sda2 bd90cc71-1a13-4b38-8c76-fd9e35a101bd swap       8G       
├─sda3 da59c449-50c6-46c0-90e4-98cc534fb150 btrfs     40G       
└─sda4 c6669ee6-3fe4-4d84-ba79-30b876e91dca ext4   417.8G       
sdb                                                465.8G       
├─sdb1                                                 1M       
├─sdb2 ca11ca5e-6502-4755-b500-28a7ba6d637f swap       8G       
├─sdb3 b291571f-7561-40c6-b91f-69f04645b8dd btrfs     40G       
└─sdb4 5c7be590-4157-43f8-9443-621d5a93f172 ext4   417.8G       
sdc                                                931.5G       
├─sdc1                                                19M       
├─sdc2 3707a293-c43b-4d83-9db0-65844358322e swap       8G       [SWAP]
├─sdc3 90690922-531a-4e4c-8b0a-e32b4842fbb0 btrfs     45G       /var/log
└─sdc4 04b8657a-a8e3-4f69-a837-a3946765b2d1 ext4   878.5G       /home
sr0                                                  603M       /run/media/lie225/Saga
sr1                                                 1024M
Comment 6 Wolfgang Bauer 2017-01-29 17:12:08 UTC
Thank you for the further debugging.

But if libblkid reports it wrong, that's definitely unrelated to KDE (which gets the information from udisks2 anyway, which in turn uses blkid I think though I'm not really sure in this particular case).

Reassigning to "Basesystem" then and adding the util-linux bugowner to CC.
Comment 7 Michael Metz-Heimburg 2017-02-01 11:24:08 UTC
I guess that only the versions 2.28 of libblkid.so from the opensuse Leap 42.2 OSS and update repositories cause the problems not detecting mixed mode CD.

I tested two mixed mode CD with several versions of libblkid.so

Only the versions 2.28 could not detect the datatrack of these CD and reports that this is an audio CD.
The versions of opensuse Leap 42.1 and opensuse Leap 42.2 tumbleweed work well. 

Here are the results of the tests

libblkid-2.25-18.1-x86_64.rpm (opensuse 42.1 update repository)

Output of blkid

1. mixed mode CD
/dev/sda1: PARTLABEL="primary" PARTUUID="13b01de7-2084-438c-959b-8ba118aeb172"
/dev/sda2: UUID="bd90cc71-1a13-4b38-8c76-fd9e35a101bd" TYPE="swap" PARTLABEL="primary" PARTUUID="2291bd95-a4f4-4d14-b1ed-6f1db52c5b7f"
/dev/sda3: UUID="da59c449-50c6-46c0-90e4-98cc534fb150" UUID_SUB="252a9c20-d849-490c-ae3e-f0bfb6e0b082" TYPE="btrfs" PTTYPE="dos" PARTLABEL="primary" PARTUUID="fd00c289-a61a-4f9a-97d4-02d97cf63510"
/dev/sda4: UUID="c6669ee6-3fe4-4d84-ba79-30b876e91dca" TYPE="ext4" PARTLABEL="primary" PARTUUID="6caddcf3-afb3-4aa6-a196-74855d37de97"
/dev/sdb1: PARTLABEL="primary" PARTUUID="2d12f4ca-1e65-4825-8c90-7e5f04c4d3cb"
/dev/sdb2: UUID="ca11ca5e-6502-4755-b500-28a7ba6d637f" TYPE="swap" PARTLABEL="primary" PARTUUID="449f180c-72d6-4aa4-9a5f-f6e35858e01a"
/dev/sdb3: UUID="b291571f-7561-40c6-b91f-69f04645b8dd" UUID_SUB="f373acde-1248-42fc-be8f-c795edf59550" TYPE="btrfs" PTTYPE="dos" PARTLABEL="primary" PARTUUID="51dfb89f-c053-495b-b323-ccb848db2cbb"
/dev/sdb4: UUID="5c7be590-4157-43f8-9443-621d5a93f172" TYPE="ext4" PARTLABEL="primary" PARTUUID="d75b90be-37ff-4799-8aa3-d0bed67d2cf5"
/dev/sr0: UUID="2003-11-10-09-20-19-95" LABEL="Saga" TYPE="iso9660"
/dev/sdc1: PARTUUID="b01e4df1-01"
/dev/sdc2: UUID="3707a293-c43b-4d83-9db0-65844358322e" TYPE="swap" PARTUUID="b01e4df1-02"
/dev/sdc3: UUID="90690922-531a-4e4c-8b0a-e32b4842fbb0" UUID_SUB="036cc1e5-7c39-49b6-8f6d-5320028dfeb5" TYPE="btrfs" PTTYPE="dos" PARTUUID="b01e4df1-03"
/dev/sdc4: UUID="04b8657a-a8e3-4f69-a837-a3946765b2d1" TYPE="ext4" PARTUUID="b01e4df1-04"

2. mixed mode CD

/dev/sda2: UUID="bd90cc71-1a13-4b38-8c76-fd9e35a101bd" TYPE="swap" PARTLABEL="primary" PARTUUID="2291bd95-a4f4-4d14-b1ed-6f1db52c5b7f"
/dev/sda3: UUID="da59c449-50c6-46c0-90e4-98cc534fb150" UUID_SUB="252a9c20-d849-490c-ae3e-f0bfb6e0b082" TYPE="btrfs" PTTYPE="dos" PARTLABEL="primary" PARTUUID="fd00c289-a61a-4f9a-97d4-02d97cf63510"
/dev/sda4: UUID="c6669ee6-3fe4-4d84-ba79-30b876e91dca" TYPE="ext4" PARTLABEL="primary" PARTUUID="6caddcf3-afb3-4aa6-a196-74855d37de97"
/dev/sdb2: UUID="ca11ca5e-6502-4755-b500-28a7ba6d637f" TYPE="swap" PARTLABEL="primary" PARTUUID="449f180c-72d6-4aa4-9a5f-f6e35858e01a"
/dev/sdb3: UUID="b291571f-7561-40c6-b91f-69f04645b8dd" UUID_SUB="f373acde-1248-42fc-be8f-c795edf59550" TYPE="btrfs" PTTYPE="dos" PARTLABEL="primary" PARTUUID="51dfb89f-c053-495b-b323-ccb848db2cbb"
/dev/sdb4: UUID="5c7be590-4157-43f8-9443-621d5a93f172" TYPE="ext4" PARTLABEL="primary" PARTUUID="d75b90be-37ff-4799-8aa3-d0bed67d2cf5"
/dev/sr0: UUID="2003-11-05-17-22-00-00" LABEL="Cultures" TYPE="iso9660"
/dev/sdc2: UUID="3707a293-c43b-4d83-9db0-65844358322e" TYPE="swap" PARTUUID="b01e4df1-02"
/dev/sdc3: UUID="90690922-531a-4e4c-8b0a-e32b4842fbb0" UUID_SUB="036cc1e5-7c39-49b6-8f6d-5320028dfeb5" TYPE="btrfs" PTTYPE="dos" PARTUUID="b01e4df1-03"
/dev/sdc4: UUID="04b8657a-a8e3-4f69-a837-a3946765b2d1" TYPE="ext4" PARTUUID="b01e4df1-04"
/dev/sda1: PARTLABEL="primary" PARTUUID="13b01de7-2084-438c-959b-8ba118aeb172"
/dev/sdb1: PARTLABEL="primary" PARTUUID="2d12f4ca-1e65-4825-8c90-7e5f04c4d3cb"
/dev/sdc1: PARTUUID="b01e4df1-01"


libblkid-2.28-7.1-x86_64.rpm (opensuse 42.2 update repository)

Output of blkid

1. mixed mode CD
/dev/sda1: PARTLABEL="primary" PARTUUID="13b01de7-2084-438c-959b-8ba118aeb172"
/dev/sda2: UUID="bd90cc71-1a13-4b38-8c76-fd9e35a101bd" TYPE="swap" PARTLABEL="primary" PARTUUID="2291bd95-a4f4-4d14-b1ed-6f1db52c5b7f"
/dev/sda3: UUID="da59c449-50c6-46c0-90e4-98cc534fb150" UUID_SUB="252a9c20-d849-490c-ae3e-f0bfb6e0b082" TYPE="btrfs" PTTYPE="dos" PARTLABEL="primary" PARTUUID="fd00c289-a61a-4f9a-97d4-02d97cf63510"
/dev/sda4: UUID="c6669ee6-3fe4-4d84-ba79-30b876e91dca" TYPE="ext4" PARTLABEL="primary" PARTUUID="6caddcf3-afb3-4aa6-a196-74855d37de97"
/dev/sdb1: PARTLABEL="primary" PARTUUID="2d12f4ca-1e65-4825-8c90-7e5f04c4d3cb"
/dev/sdb2: UUID="ca11ca5e-6502-4755-b500-28a7ba6d637f" TYPE="swap" PARTLABEL="primary" PARTUUID="449f180c-72d6-4aa4-9a5f-f6e35858e01a"
/dev/sdb3: UUID="b291571f-7561-40c6-b91f-69f04645b8dd" UUID_SUB="f373acde-1248-42fc-be8f-c795edf59550" TYPE="btrfs" PTTYPE="dos" PARTLABEL="primary" PARTUUID="51dfb89f-c053-495b-b323-ccb848db2cbb"
/dev/sdb4: UUID="5c7be590-4157-43f8-9443-621d5a93f172" TYPE="ext4" PARTLABEL="primary" PARTUUID="d75b90be-37ff-4799-8aa3-d0bed67d2cf5"
/dev/sdc1: PARTUUID="b01e4df1-01"
/dev/sdc2: UUID="3707a293-c43b-4d83-9db0-65844358322e" TYPE="swap" PARTUUID="b01e4df1-02"
/dev/sdc3: UUID="90690922-531a-4e4c-8b0a-e32b4842fbb0" UUID_SUB="036cc1e5-7c39-49b6-8f6d-5320028dfeb5" TYPE="btrfs" PTTYPE="dos" PARTUUID="b01e4df1-03"
/dev/sdc4: UUID="04b8657a-a8e3-4f69-a837-a3946765b2d1" TYPE="ext4" PARTUUID="b01e4df1-04"

2. mixed mode CD
/dev/sda2: UUID="bd90cc71-1a13-4b38-8c76-fd9e35a101bd" TYPE="swap" PARTLABEL="primary" PARTUUID="2291bd95-a4f4-4d14-b1ed-6f1db52c5b7f"
/dev/sda3: UUID="da59c449-50c6-46c0-90e4-98cc534fb150" UUID_SUB="252a9c20-d849-490c-ae3e-f0bfb6e0b082" TYPE="btrfs" PTTYPE="dos" PARTLABEL="primary" PARTUUID="fd00c289-a61a-4f9a-97d4-02d97cf63510"
/dev/sda4: UUID="c6669ee6-3fe4-4d84-ba79-30b876e91dca" TYPE="ext4" PARTLABEL="primary" PARTUUID="6caddcf3-afb3-4aa6-a196-74855d37de97"
/dev/sdb2: UUID="ca11ca5e-6502-4755-b500-28a7ba6d637f" TYPE="swap" PARTLABEL="primary" PARTUUID="449f180c-72d6-4aa4-9a5f-f6e35858e01a"
/dev/sdb3: UUID="b291571f-7561-40c6-b91f-69f04645b8dd" UUID_SUB="f373acde-1248-42fc-be8f-c795edf59550" TYPE="btrfs" PTTYPE="dos" PARTLABEL="primary" PARTUUID="51dfb89f-c053-495b-b323-ccb848db2cbb"
/dev/sdb4: UUID="5c7be590-4157-43f8-9443-621d5a93f172" TYPE="ext4" PARTLABEL="primary" PARTUUID="d75b90be-37ff-4799-8aa3-d0bed67d2cf5"
/dev/sdc2: UUID="3707a293-c43b-4d83-9db0-65844358322e" TYPE="swap" PARTUUID="b01e4df1-02"
/dev/sdc3: UUID="90690922-531a-4e4c-8b0a-e32b4842fbb0" UUID_SUB="036cc1e5-7c39-49b6-8f6d-5320028dfeb5" TYPE="btrfs" PTTYPE="dos" PARTUUID="b01e4df1-03"
/dev/sdc4: UUID="04b8657a-a8e3-4f69-a837-a3946765b2d1" TYPE="ext4" PARTUUID="b01e4df1-04"
/dev/sda1: PARTLABEL="primary" PARTUUID="13b01de7-2084-438c-959b-8ba118aeb172"
/dev/sdb1: PARTLABEL="primary" PARTUUID="2d12f4ca-1e65-4825-8c90-7e5f04c4d3cb"
/dev/sdc1: PARTUUID="b01e4df1-01"

libblkid-2.29-2.1-x86_64.rpm (opensuse Leap 42.2 tumbleweed)

Output of blkid

1. mixed mode CD
/dev/sdb1: PARTLABEL="primary" PARTUUID="2d12f4ca-1e65-4825-8c90-7e5f04c4d3cb"
/dev/sdb2: UUID="ca11ca5e-6502-4755-b500-28a7ba6d637f" TYPE="swap" PARTLABEL="primary" PARTUUID="449f180c-72d6-4aa4-9a5f-f6e35858e01a"
/dev/sdb3: UUID="b291571f-7561-40c6-b91f-69f04645b8dd" UUID_SUB="f373acde-1248-42fc-be8f-c795edf59550" TYPE="btrfs" PTTYPE="dos" PARTLABEL="primary" PARTUUID="51dfb89f-c053-495b-b323-ccb848db2cbb"
/dev/sdb4: UUID="5c7be590-4157-43f8-9443-621d5a93f172" TYPE="ext4" PARTLABEL="primary" PARTUUID="d75b90be-37ff-4799-8aa3-d0bed67d2cf5"
/dev/sda1: PARTLABEL="primary" PARTUUID="13b01de7-2084-438c-959b-8ba118aeb172"
/dev/sda2: UUID="bd90cc71-1a13-4b38-8c76-fd9e35a101bd" TYPE="swap" PARTLABEL="primary" PARTUUID="2291bd95-a4f4-4d14-b1ed-6f1db52c5b7f"
/dev/sda3: UUID="da59c449-50c6-46c0-90e4-98cc534fb150" UUID_SUB="252a9c20-d849-490c-ae3e-f0bfb6e0b082" TYPE="btrfs" PTTYPE="dos" PARTLABEL="primary" PARTUUID="fd00c289-a61a-4f9a-97d4-02d97cf63510"
/dev/sda4: UUID="c6669ee6-3fe4-4d84-ba79-30b876e91dca" TYPE="ext4" PARTLABEL="primary" PARTUUID="6caddcf3-afb3-4aa6-a196-74855d37de97"
/dev/sr0: UUID="2003-11-10-09-20-19-95" LABEL="Saga" TYPE="iso9660"
/dev/sdc1: PARTUUID="b01e4df1-01"
/dev/sdc2: UUID="3707a293-c43b-4d83-9db0-65844358322e" TYPE="swap" PARTUUID="b01e4df1-02"
/dev/sdc3: UUID="90690922-531a-4e4c-8b0a-e32b4842fbb0" UUID_SUB="036cc1e5-7c39-49b6-8f6d-5320028dfeb5" TYPE="btrfs" PTTYPE="dos" PARTUUID="b01e4df1-03"
/dev/sdc4: UUID="04b8657a-a8e3-4f69-a837-a3946765b2d1" TYPE="ext4" PARTUUID="b01e4df1-04"

2. mixed mode CD
/dev/sdb2: UUID="ca11ca5e-6502-4755-b500-28a7ba6d637f" TYPE="swap" PARTLABEL="primary" PARTUUID="449f180c-72d6-4aa4-9a5f-f6e35858e01a"
/dev/sdb3: UUID="b291571f-7561-40c6-b91f-69f04645b8dd" UUID_SUB="f373acde-1248-42fc-be8f-c795edf59550" TYPE="btrfs" PTTYPE="dos" PARTLABEL="primary" PARTUUID="51dfb89f-c053-495b-b323-ccb848db2cbb"
/dev/sdb4: UUID="5c7be590-4157-43f8-9443-621d5a93f172" TYPE="ext4" PARTLABEL="primary" PARTUUID="d75b90be-37ff-4799-8aa3-d0bed67d2cf5"
/dev/sda2: UUID="bd90cc71-1a13-4b38-8c76-fd9e35a101bd" TYPE="swap" PARTLABEL="primary" PARTUUID="2291bd95-a4f4-4d14-b1ed-6f1db52c5b7f"
/dev/sda3: UUID="da59c449-50c6-46c0-90e4-98cc534fb150" UUID_SUB="252a9c20-d849-490c-ae3e-f0bfb6e0b082" TYPE="btrfs" PTTYPE="dos" PARTLABEL="primary" PARTUUID="fd00c289-a61a-4f9a-97d4-02d97cf63510"
/dev/sda4: UUID="c6669ee6-3fe4-4d84-ba79-30b876e91dca" TYPE="ext4" PARTLABEL="primary" PARTUUID="6caddcf3-afb3-4aa6-a196-74855d37de97"
/dev/sr0: UUID="2003-11-05-17-22-00-00" LABEL="Cultures" TYPE="iso9660"
/dev/sdc2: UUID="3707a293-c43b-4d83-9db0-65844358322e" TYPE="swap" PARTUUID="b01e4df1-02"
/dev/sdc3: UUID="90690922-531a-4e4c-8b0a-e32b4842fbb0" UUID_SUB="036cc1e5-7c39-49b6-8f6d-5320028dfeb5" TYPE="btrfs" PTTYPE="dos" PARTUUID="b01e4df1-03"
/dev/sdc4: UUID="04b8657a-a8e3-4f69-a837-a3946765b2d1" TYPE="ext4" PARTUUID="b01e4df1-04"
/dev/sdb1: PARTLABEL="primary" PARTUUID="2d12f4ca-1e65-4825-8c90-7e5f04c4d3cb"
/dev/sda1: PARTLABEL="primary" PARTUUID="13b01de7-2084-438c-959b-8ba118aeb172"
/dev/sdc1: PARTUUID="b01e4df1-01"
Comment 8 Stanislav Brabec 2017-02-09 13:54:22 UTC
Do I understand correctly that:
util-linux-2.25 is OK.
util-linux-2.28 is broken.
util-linux-2.29 is OK again.

I see several changes in the git log that is related to CD.

I will look for some CD-Extra and make regression tests.
Comment 9 Michael Metz-Heimburg 2017-02-09 17:23:13 UTC
Sorry,

all versions of util-linux are ok. I tested it with all versions of opensuse Leap 42.1 and opensuse Leap 42.2

It depends only on the versions of libblkid1-2.28 that the data tracks of mixed mode CD are not recognized.

So 
the versions of libblkid1-2.25 are ok
the versions of libblkid1-2.28 are broken and
the versions of libblkid1-2.29 are ok again.
Comment 10 Stanislav Brabec 2017-02-10 19:11:40 UTC
I just tested CD-Extra in Tumbleweed, and the result is different than expected:

blkid does not show anything => This looks like a bug.

But XFCE file manager Thunar as well as GNOME Nautilus correctly shows both data and audio tracks.
Comment 11 Stanislav Brabec 2017-02-13 16:02:43 UTC
I tried to compile util-linux-2.25 for the current Tumbleweed.

Surprisingly, output of blkid /dev/sr0 with CD-Extra inserted is also empty.

I just tested, what happens, if I run blkid in a VirtualBox instance with a direct access to /dev/sr0 enabled. Virtual SLE12 SP1 ran inside VirtualBox in Tumbleweed shows nothing as well and I see 

Here is the log of blkid /dev/sr0 from such instance:

[  276.937530] sr 2:0:0:0: [sr0]  
[  276.937534] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  276.937535] sr 2:0:0:0: [sr0]  
[  276.937536] Sense Key : Illegal Request [current] 
[  276.937538] ILI
[  276.937539] sr 2:0:0:0: [sr0]  
[  276.937541] Add. Sense: Illegal mode for this track
[  276.937542] sr 2:0:0:0: [sr0] CDB: 
[  276.937543] Read(10): 28 00 00 00 00 00 00 00 02 00
[  276.937547] end_request: I/O error, dev sr0, sector 0
[  276.938203] Buffer I/O error on device sr0, logical block 0
[  276.938401] Buffer I/O error on device sr0, logical block 1
[  276.957444] sr 2:0:0:0: [sr0]  
[  276.957448] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  276.957454] sr 2:0:0:0: [sr0]  
[  276.957455] Sense Key : Illegal Request [current] 
[  276.957456] ILI
[  276.957457] sr 2:0:0:0: [sr0]  
[  276.957459] Add. Sense: Illegal mode for this track
[  276.957461] sr 2:0:0:0: [sr0] CDB: 
[  276.957461] Read(10): 28 00 00 00 00 00 00 00 01 00
[  276.957465] end_request: I/O error, dev sr0, sector 0
[  276.958164] Buffer I/O error on device sr0, logical block 0
[  276.977430] sr 2:0:0:0: [sr0]  
[  276.977433] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  276.977435] sr 2:0:0:0: [sr0]  
[  276.977436] Sense Key : Illegal Request [current] 
[  276.977437] ILI
[  276.977438] sr 2:0:0:0: [sr0]  
[  276.977440] Add. Sense: Illegal mode for this track
[  276.977441] sr 2:0:0:0: [sr0] CDB: 
[  276.977442] Read(10): 28 00 00 00 00 01 00 00 01 00
[  276.977446] end_request: I/O error, dev sr0, sector 4
[  276.978144] Buffer I/O error on device sr0, logical block 1


This is a kernel log in Tumbleweed:

[92566.296531] sr 2:0:0:0: [sr0] tag#2 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[92566.296534] sr 2:0:0:0: [sr0] tag#2 Sense Key : Illegal Request [current] 
[92566.296536] sr 2:0:0:0: [sr0] tag#2 Add. Sense: Illegal mode for this track
[92566.296537] sr 2:0:0:0: [sr0] tag#2 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00
[92566.296539] blk_update_request: I/O error, dev sr0, sector 0
[92566.296543] Buffer I/O error on dev sr0, logical block 0, async page read
[92566.308341] sr 2:0:0:0: [sr0] tag#4 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[92566.308344] sr 2:0:0:0: [sr0] tag#4 Sense Key : Illegal Request [current] 
[92566.308346] sr 2:0:0:0: [sr0] tag#4 Add. Sense: Illegal mode for this track
[92566.308348] sr 2:0:0:0: [sr0] tag#4 CDB: Read(10) 28 00 00 00 00 01 00 00 01 00
[92566.308349] blk_update_request: I/O error, dev sr0, sector 4
[92566.308353] Buffer I/O error on dev sr0, logical block 1, async page read
[92566.320433] sr 2:0:0:0: [sr0] tag#5 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[92566.320436] sr 2:0:0:0: [sr0] tag#5 Sense Key : Illegal Request [current] 
[92566.320437] sr 2:0:0:0: [sr0] tag#5 Add. Sense: Illegal mode for this track
[92566.320439] sr 2:0:0:0: [sr0] tag#5 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00
[92566.320440] blk_update_request: I/O error, dev sr0, sector 0
[92566.320444] Buffer I/O error on dev sr0, logical block 0, async page read
[92566.332410] sr 2:0:0:0: [sr0] tag#7 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[92566.332413] sr 2:0:0:0: [sr0] tag#7 Sense Key : Illegal Request [current] 
[92566.332415] sr 2:0:0:0: [sr0] tag#7 Add. Sense: Illegal mode for this track
[92566.332417] sr 2:0:0:0: [sr0] tag#7 CDB: Read(10) 28 00 00 00 00 01 00 00 01 00
[92566.332418] blk_update_request: I/O error, dev sr0, sector 4
[92566.332422] Buffer I/O error on dev sr0, logical block 1, async page read
[92566.344459] sr 2:0:0:0: [sr0] tag#8 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[92566.344461] sr 2:0:0:0: [sr0] tag#8 Sense Key : Illegal Request [current] 
[92566.344464] sr 2:0:0:0: [sr0] tag#8 Add. Sense: Illegal mode for this track
[92566.344465] sr 2:0:0:0: [sr0] tag#8 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00
[92566.344466] blk_update_request: I/O error, dev sr0, sector 0
[92566.344470] Buffer I/O error on dev sr0, logical block 0, async page read
[92566.356409] sr 2:0:0:0: [sr0] tag#10 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[92566.356412] sr 2:0:0:0: [sr0] tag#10 Sense Key : Illegal Request [current] 
[92566.356414] sr 2:0:0:0: [sr0] tag#10 Add. Sense: Illegal mode for this track
[92566.356416] sr 2:0:0:0: [sr0] tag#10 CDB: Read(10) 28 00 00 00 00 01 00 00 01 00
[92566.356417] blk_update_request: I/O error, dev sr0, sector 4
[92566.356421] Buffer I/O error on dev sr0, logical block 1, async page read
[92566.368506] sr 2:0:0:0: [sr0] tag#11 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[92566.368508] sr 2:0:0:0: [sr0] tag#11 Sense Key : Illegal Request [current] 
[92566.368511] sr 2:0:0:0: [sr0] tag#11 Add. Sense: Illegal mode for this track
[92566.368512] sr 2:0:0:0: [sr0] tag#11 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00
[92566.368514] blk_update_request: I/O error, dev sr0, sector 0
[92566.368518] Buffer I/O error on dev sr0, logical block 0, async page read
[92566.380580] sr 2:0:0:0: [sr0] tag#13 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[92566.380583] sr 2:0:0:0: [sr0] tag#13 Sense Key : Illegal Request [current] 
[92566.380585] sr 2:0:0:0: [sr0] tag#13 Add. Sense: Illegal mode for this track
[92566.380587] sr 2:0:0:0: [sr0] tag#13 CDB: Read(10) 28 00 00 00 00 01 00 00 01 00
[92566.380588] blk_update_request: I/O error, dev sr0, sector 4
[92566.380592] Buffer I/O error on dev sr0, logical block 1, async page read
[92566.392491] sr 2:0:0:0: [sr0] tag#14 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[92566.392493] sr 2:0:0:0: [sr0] tag#14 Sense Key : Illegal Request [current] 
[92566.392496] sr 2:0:0:0: [sr0] tag#14 Add. Sense: Illegal mode for this track
[92566.392497] sr 2:0:0:0: [sr0] tag#14 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00
[92566.392499] blk_update_request: I/O error, dev sr0, sector 0
[92566.392503] Buffer I/O error on dev sr0, logical block 0, async page read
[92566.404449] sr 2:0:0:0: [sr0] tag#16 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[92566.404452] sr 2:0:0:0: [sr0] tag#16 Sense Key : Illegal Request [current] 
[92566.404454] sr 2:0:0:0: [sr0] tag#16 Add. Sense: Illegal mode for this track
[92566.404456] sr 2:0:0:0: [sr0] tag#16 CDB: Read(10) 28 00 00 00 00 01 00 00 01 00
[92566.404457] blk_update_request: I/O error, dev sr0, sector 4
[92566.404461] Buffer I/O error on dev sr0, logical block 1, async page read
Comment 12 Stanislav Brabec 2017-02-14 15:02:42 UTC
Well, I cannot confirm output of blkid.

blkid consistently ignores both my CD-Extras (one is pressed and one is written on CD-R), exactly as it ignores audio discs, on all tested systems: openSUSE 13.1, openSUSE Leap 42.1, openSUSE Leap 42.2, openSUSE Tumbleweed.

However it can be considered as bug, XFCE consistently recognizes CD-Extra correctly.

So I suppose two different bugs:

1) libblkid not recognizing CD-Extra at all.

2) KDE not recognizing CD-Extra on systems, where GNOME recognizes CD-Extra.

As your CD-Extra (multi mode CD) returns different output on (probably) the same system, I suppose there is can be slight differences in a way how CD-Extra are made.
Comment 13 Wolfgang Bauer 2017-02-15 17:11:51 UTC
(In reply to Stanislav Brabec from comment #12)
> So I suppose two different bugs:
> 
> 1) libblkid not recognizing CD-Extra at all.
> 
> 2) KDE not recognizing CD-Extra on systems, where GNOME recognizes CD-Extra.

Hm, but comment#5 states that the KDE problem is fixed by replacing libblkid with a different version.
Comment 14 Wolfgang Bauer 2017-02-15 23:07:31 UTC
As util-linux/libblkid 2.29 works (but 2.28 not), I had a look at the changelogs myself.

I'll take a wild guess and say that this change (in 2.28.1 actually) may possibly fix the reported problem:
https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?h=stable/v2.28&id=5b7f8bbba13c6b2b26d14163569b35353ce9ceb9

Can you please try the libblkid1 package from here as a test and report back if it helps (in KDE)?
http://download.opensuse.org/repositories/home:/wolfi323:/branches:/OBS_Maintained:/util-linux/openSUSE_Leap_42.2_Update

Thanks.
Comment 15 Stanislav Brabec 2017-02-16 15:45:46 UTC
Michael Metz-Heimburg: Looking at the output of cdinfo in the comment 5, your CD is a non-standard CD, out of any specs. Desktops don't have to handle such strange things.

Standard CD-Extra has audio tracks first, then gap and then data track containing from a specially formatted ISO image with shifted start block.

Here is an example:

goblin:~ # cdinfo /dev/sr0 
CD Info 1.1 | (c) 1996-98 Gerd Knorr & Heiko Ei�feldt
__________________________________
track list (1 - 11)
 nr: msf      lba      ctrl adr  type
  1: 00:02:00 (000000) 0x0 0x1 audio
  2: 04:03:03 (018078) 0x0 0x1 audio
  3: 10:04:31 (045181) 0x0 0x1 audio
  4: 14:58:25 (067225) 0x0 0x1 audio
  5: 19:33:57 (087882) 0x0 0x1 audio
  6: 24:48:40 (111490) 0x0 0x1 audio
  7: 30:17:33 (136158) 0x0 0x1 audio
  8: 34:24:15 (154665) 0x0 0x1 audio
  9: 39:30:16 (177616) 0x0 0x1 audio
 10: 43:08:27 (193977) 0x0 0x1 audio
 11: 48:58:72 (220272) 0x4 0x1 data 
170: 52:39:68 (236843) 0x4 0x1 data  (leadout)
__________________________________
what ioctl's report
get mcn     : 
disc status : unknown (failed?)
multisession: 220272 XA
audio status: invalid
__________________________________
try to find out what sort of CD this is
session #2 starts at track 11, offset 220272, isofs size 229170
iso9660: 447 MB size, label `ALGIDANCD1                      '
CD-ROM with both Macintosh HFS and iso9660 fs
iso9660: 447 MB size, label `ALGIDANCD1                      '
XA sectors   Multisession, offset = 220272   CD-Plus/Extra   


Wolfgang Bauer: Thing made me a bit confused.

There is a big difference between output of lsblk and blkid:

- blkid shows directly output generated by blkid.

- lsblk shows all devices and its mount status, i. e. something that is dependent on a proper work of desktop system.


And there is one more source of confusion:
/dev/.blkid.tab

Tools can reuse information cached here and then make incorrect assumptions about the version that broken/fixed the stuff.


=> I need output of blkid from different versions. There are problably some differences in CD drives or CDs itself that affect

dmesg -C

# now insert the CD

rm /dev/.blkid.tab
LIBBLKID_DEBUG=65535 blkid /dev/sr0 >blkid.log 2>blkid-debug.log
dmesg -c >blkid-dmesg.log


On my system with my CD-Extra, blkid is consistently broken for CD-Extra, and both XFCE and GNOME consistently working across versions.

blkid needs to be fixed in all cases, but I suspect that it will not be sufficient for the reporter.


I see errors in the log while no errors while scanning both audio CD and CD-Extra and none on data CD. I am on util-linux-2.29 (which should contain your patch), and I still see blkid broken.

Your proposed patch may help, as libblkid can be confused by data tracks placed after the initial data session. blkid probably identifies standard data CD, then identifies more tracks/sessions. If the first track is a data track, next track should be next session of a multi-session CD. But its evaluation fails. => error
Comment 16 Stanislav Brabec 2017-02-16 16:13:30 UTC
Now things starts to make sense:

Standard CD-Extra is not detected correctly by the blkid, independently on the version.

But udev and desktop systems use a different utility to make an initial detection of CD - cdrom_id (which is independent on libblkid). The KDE daemon probably uses this result to perform further steps. Standard data CD are probably handled by an utility directly using libblkid (in GNOME and XFCE it is gvfsd). And blkid fails there in 2.28. In other version it is not, because errors are ignored.

Outputs of "/usr/lib/udev/cdrom_id /dev/sr0" with exclusion of lines describing the drive:

For a correct CD-Extra (pressed CD):
ID_CDROM_MEDIA=1
ID_CDROM_MEDIA_CD=1
ID_CDROM_MEDIA_SESSION_COUNT=2
ID_CDROM_MEDIA_SESSION_LAST_OFFSET=451117056
ID_CDROM_MEDIA_TRACK_COUNT=11
ID_CDROM_MEDIA_TRACK_COUNT_AUDIO=10
ID_CDROM_MEDIA_TRACK_COUNT_DATA=1

For data CD (CD-R):
ID_CDROM_MEDIA=1
ID_CDROM_MEDIA_CD_R=1
ID_CDROM_MEDIA_STATE=complete
ID_CDROM_MEDIA_SESSION_COUNT=1
ID_CDROM_MEDIA_TRACK_COUNT=1
ID_CDROM_MEDIA_TRACK_COUNT_DATA=1

For CD-audio (pressed CD):
ID_CDROM_MEDIA=1
ID_CDROM_MEDIA_CD=1
ID_CDROM_MEDIA_SESSION_COUNT=1
ID_CDROM_MEDIA_TRACK_COUNT=9
ID_CDROM_MEDIA_TRACK_COUNT_AUDIO=9
Comment 17 Michael Metz-Heimburg 2017-02-18 10:37:00 UTC
I tested the version of blkid from http://download.opensuse.org/repositories/home:/wolfi323:/branches:/OBS_Maintained:/util-linux/openSUSE_Leap_42.2_Update.

This version works well and all CD are recognized and can be mounted in file managers.

The outputs of blkid-dmesg, blkid, cdinfo and cdrom_id are identical to the versions 2.25 and 2.29 of libblkid.

Thank you for your help.

The outputs are attached below.

Bibliothek:~ # dmesg -c >blkid-dmesg.log
[ 1311.059379] ISO 9660 Extensions: Microsoft Joliet Level 1
[ 1311.153163] ISOFS: changing to secondary root
[ 1317.812861] sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1317.812872] sr 1:0:0:0: [sr0] tag#0 Sense Key : Illegal Request [current] 
[ 1317.812879] sr 1:0:0:0: [sr0] tag#0 Add. Sense: Illegal mode for this track
[ 1317.812885] sr 1:0:0:0: [sr0] tag#0 CDB: Read(10) 28 00 00 04 b5 ea 00 00 02 00
[ 1317.812890] blk_update_request: I/O error, dev sr0, sector 1234856
[ 1317.820866] sr 1:0:0:0: [sr0] tag#1 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1317.820876] sr 1:0:0:0: [sr0] tag#1 Sense Key : Illegal Request [current] 
[ 1317.820884] sr 1:0:0:0: [sr0] tag#1 Add. Sense: Illegal mode for this track
[ 1317.820889] sr 1:0:0:0: [sr0] tag#1 CDB: Read(10) 28 00 00 04 b5 ea 00 00 01 00
[ 1317.820893] blk_update_request: I/O error, dev sr0, sector 1234856
[ 1317.820898] Buffer I/O error on dev sr0, logical block 308714, async page read
[ 1317.828839] sr 1:0:0:0: [sr0] tag#3 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1317.828849] sr 1:0:0:0: [sr0] tag#3 Sense Key : Illegal Request [current] 
[ 1317.828855] sr 1:0:0:0: [sr0] tag#3 Add. Sense: Illegal mode for this track
[ 1317.828861] sr 1:0:0:0: [sr0] tag#3 CDB: Read(10) 28 00 00 04 b5 eb 00 00 01 00
[ 1317.828866] blk_update_request: I/O error, dev sr0, sector 1234860
[ 1317.828870] Buffer I/O error on dev sr0, logical block 308715, async page read
[ 1318.748895] sr 1:0:0:0: [sr0] tag#16 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1318.748906] sr 1:0:0:0: [sr0] tag#16 Sense Key : Illegal Request [current] 
[ 1318.748913] sr 1:0:0:0: [sr0] tag#16 Add. Sense: Illegal mode for this track
[ 1318.748919] sr 1:0:0:0: [sr0] tag#16 CDB: Read(10) 28 00 00 04 b4 80 00 00 40 00
[ 1318.748924] blk_update_request: I/O error, dev sr0, sector 1233408
[ 1318.757021] sr 1:0:0:0: [sr0] tag#18 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1318.757032] sr 1:0:0:0: [sr0] tag#18 Sense Key : Illegal Request [current] 
[ 1318.757039] sr 1:0:0:0: [sr0] tag#18 Add. Sense: Illegal mode for this track
[ 1318.757044] sr 1:0:0:0: [sr0] tag#18 CDB: Read(10) 28 00 00 04 b4 c0 00 00 40 00
[ 1318.757049] blk_update_request: I/O error, dev sr0, sector 1233664
[ 1318.764886] sr 1:0:0:0: [sr0] tag#19 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1318.764896] sr 1:0:0:0: [sr0] tag#19 Sense Key : Illegal Request [current] 
[ 1318.764903] sr 1:0:0:0: [sr0] tag#19 Add. Sense: Illegal mode for this track
[ 1318.764908] sr 1:0:0:0: [sr0] tag#19 CDB: Read(10) 28 00 00 04 b4 80 00 00 01 00
[ 1318.764912] blk_update_request: I/O error, dev sr0, sector 1233408
[ 1318.764917] Buffer I/O error on dev sr0, logical block 308352, async page read
[ 1318.772828] sr 1:0:0:0: [sr0] tag#21 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1318.772839] sr 1:0:0:0: [sr0] tag#21 Sense Key : Illegal Request [current] 
[ 1318.772845] sr 1:0:0:0: [sr0] tag#21 Add. Sense: Illegal mode for this track
[ 1318.772851] sr 1:0:0:0: [sr0] tag#21 CDB: Read(10) 28 00 00 04 b4 81 00 00 01 00
[ 1318.772855] blk_update_request: I/O error, dev sr0, sector 1233412
[ 1318.772860] Buffer I/O error on dev sr0, logical block 308353, async page read
[ 1318.848872] sr 1:0:0:0: [sr0] tag#23 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1318.848883] sr 1:0:0:0: [sr0] tag#23 Sense Key : Illegal Request [current] 
[ 1318.848889] sr 1:0:0:0: [sr0] tag#23 Add. Sense: Illegal mode for this track
[ 1318.848895] sr 1:0:0:0: [sr0] tag#23 CDB: Read(10) 28 00 00 04 b5 e8 00 00 02 00
[ 1318.848899] blk_update_request: I/O error, dev sr0, sector 1234848
[ 1318.856895] sr 1:0:0:0: [sr0] tag#24 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1318.856906] sr 1:0:0:0: [sr0] tag#24 Sense Key : Illegal Request [current] 
[ 1318.856913] sr 1:0:0:0: [sr0] tag#24 Add. Sense: Illegal mode for this track
[ 1318.856918] sr 1:0:0:0: [sr0] tag#24 CDB: Read(10) 28 00 00 04 b5 e8 00 00 01 00
[ 1318.856932] blk_update_request: I/O error, dev sr0, sector 1234848
[ 1318.856936] Buffer I/O error on dev sr0, logical block 308712, async page read
[ 1318.864819] sr 1:0:0:0: [sr0] tag#26 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1318.864829] sr 1:0:0:0: [sr0] tag#26 Sense Key : Illegal Request [current] 
[ 1318.864836] sr 1:0:0:0: [sr0] tag#26 Add. Sense: Illegal mode for this track
[ 1318.864841] sr 1:0:0:0: [sr0] tag#26 CDB: Read(10) 28 00 00 04 b5 e9 00 00 01 00
[ 1318.864846] blk_update_request: I/O error, dev sr0, sector 1234852
[ 1318.864850] Buffer I/O error on dev sr0, logical block 308713, async page read

Bibliothek:~ # blkid
/dev/sda1: PARTLABEL="primary" PARTUUID="13b01de7-2084-438c-959b-8ba118aeb172"
/dev/sda2: UUID="bd90cc71-1a13-4b38-8c76-fd9e35a101bd" TYPE="swap" PARTLABEL="primary" PARTUUID="2291bd95-a4f4-4d14-b1ed-6f1db52c5b7f"
/dev/sda3: UUID="3ede6e13-8d54-4561-96ea-a9f6b23c6b01" UUID_SUB="ea557408-ec7d-4bd3-b1b0-85053c52f99e" TYPE="btrfs" PTTYPE="dos" PARTLABEL="primary" PARTUUID="fd00c289-a61a-4f9a-97d4-02d97cf63510"
/dev/sda4: UUID="c6669ee6-3fe4-4d84-ba79-30b876e91dca" TYPE="ext4" PARTLABEL="primary" PARTUUID="6caddcf3-afb3-4aa6-a196-74855d37de97"
/dev/sdb1: PARTLABEL="primary" PARTUUID="2d12f4ca-1e65-4825-8c90-7e5f04c4d3cb"
/dev/sdb2: UUID="ca11ca5e-6502-4755-b500-28a7ba6d637f" TYPE="swap" PARTLABEL="primary" PARTUUID="449f180c-72d6-4aa4-9a5f-f6e35858e01a"
/dev/sdb3: UUID="b291571f-7561-40c6-b91f-69f04645b8dd" UUID_SUB="f373acde-1248-42fc-be8f-c795edf59550" TYPE="btrfs" PTTYPE="dos" PARTLABEL="primary" PARTUUID="51dfb89f-c053-495b-b323-ccb848db2cbb"
/dev/sdb4: UUID="5c7be590-4157-43f8-9443-621d5a93f172" TYPE="ext4" PARTLABEL="primary" PARTUUID="d75b90be-37ff-4799-8aa3-d0bed67d2cf5"
/dev/sr0: UUID="2003-11-10-09-20-19-95" LABEL="Saga" TYPE="iso9660"

Bibliothek:~ # cdinfo
CD Info 1.1 | (c) 1996-98 Gerd Knorr & Heiko Ei�feldt
__________________________________
track list (1 - 10)
 nr: msf      lba      ctrl adr  type
  1: 00:02:00 (000000) 0x4 0x1 data 
  2: 45:37:68 (205193) 0x0 0x1 audio
  3: 48:36:36 (218586) 0x0 0x1 audio
  4: 50:55:62 (229037) 0x0 0x1 audio
  5: 53:13:15 (239340) 0x0 0x1 audio
  6: 55:27:15 (249390) 0x0 0x1 audio
  7: 58:12:31 (261781) 0x0 0x1 audio
  8: 60:34:05 (272405) 0x0 0x1 audio
  9: 64:05:06 (288231) 0x0 0x1 audio
 10: 66:31:01 (299176) 0x0 0x1 audio
170: 68:38:17 (308717) 0x0 0x1 audio (leadout)
__________________________________
what ioctl's report
get mcn     : 
disc status : unknown (failed?)
multisession: 0
audio status: invalid
__________________________________
try to find out what sort of CD this is
CD-ROM with iso9660 fs and joliet extension level 1
iso9660: 400 MB size, label `SAGA                            '
mixed mode CD

Bibliothek:~ # /usr/lib/udev/cdrom_id /dev/sr0
ID_CDROM=1
ID_CDROM_CD=1
ID_CDROM_CD_R=1
ID_CDROM_CD_RW=1
ID_CDROM_DVD=1
ID_CDROM_DVD_R=1
ID_CDROM_DVD_RW=1
ID_CDROM_DVD_RAM=1
ID_CDROM_DVD_PLUS_R=1
ID_CDROM_DVD_PLUS_RW=1
ID_CDROM_DVD_PLUS_R_DL=1
ID_CDROM_BD=1
ID_CDROM_MRW=1
ID_CDROM_MRW_W=1
ID_CDROM_MEDIA=1
ID_CDROM_MEDIA_CD=1
ID_CDROM_MEDIA_SESSION_COUNT=1
ID_CDROM_MEDIA_TRACK_COUNT=10
ID_CDROM_MEDIA_TRACK_COUNT_AUDIO=9
ID_CDROM_MEDIA_TRACK_COUNT_DATA=1
Comment 18 Wolfgang Bauer 2017-02-23 15:34:07 UTC
As I found an old (pressed) mixed-mode CD lying around, I gave it a try.
And I experienced the same problem: KDE only offered AudioCD options, it showed a generic "CDROM" label instead of the actual one, and it wasn't possible to mount the data track.
Also, it didn't even show up in /dev/disk/by-label/ and /dev/disk/by-uuid/...

Updating libblkid1 (to 2.29, or 2.28 with the mentioned patch) fixed it here too.
Also blkid shows it now (it doesn't with the standard libblkid1 2.28):
wolfi@amiga:~/Desktop> blkid
/dev/fd0: SEC_TYPE="msdos" LABEL="LEER" UUID="29EC-76CA" TYPE="vfat"
/dev/sdb1: UUID="4E28576628574C59" TYPE="ntfs" PARTUUID="e3c1e3c1-01"
/dev/sdb2: UUID="e83f9e68-7d5e-4128-9561-877252a0fe83" TYPE="swap" PARTUUID="e3c1e3c1-02"
/dev/sda1: UUID="e2c9b751-d87b-4dbd-b240-391e01dbd8cd" TYPE="reiserfs" PTTYPE="dos" PARTUUID="d599471e-01"
/dev/sdc1: SEC_TYPE="msdos" UUID="1E63-B137" TYPE="vfat" PARTUUID="5d2e2084-01"
/dev/sdc2: UUID="2016-11-09-10-10-35-00" LABEL="openSUSE-Leap-42.2-NET-x86_64028" TYPE="iso9660" PARTUUID="5d2e2084-02"
/dev/sr0: UUID="2001-02-09-15-59-00-00" LABEL="AmigaOS3.9" TYPE="iso9660"

For completeness, here's the difference in the output of "udisksctl info -b /dev/sr0":
@@ -12,12 +12,12 @@
     HintPartitionable:          false
     HintSymbolicIconName:       
     HintSystem:                 false
-    Id:                         
-    IdLabel:                    
-    IdType:                     
-    IdUUID:                     
-    IdUsage:                    
-    IdVersion:                  
+    Id:                         by-uuid-2001-02-09-15-59-00-00
+    IdLabel:                    AmigaOS3.9
+    IdType:                     iso9660
+    IdUUID:                     2001-02-09-15-59-00-00
+    IdUsage:                    filesystem
+    IdVersion:                  Joliet Extension
     MDRaid:                     '/'
     MDRaidMember:               '/'
     PreferredDevice:            /dev/sr0
@@ -25,6 +25,10 @@
     Size:                       621805568
     Symlinks:                   /dev/cdrom
                                 /dev/disk/by-id/ata-TSSTcorpDVD-ROM_TS-H352A
+                                /dev/disk/by-label/AmigaOS3.9
                                 /dev/disk/by-path/pci-0000:00:0f.1-ata-2
                                 /dev/disk/by-path/pci-0000:00:0f.1-scsi-3:0:0:0
+                                /dev/disk/by-uuid/2001-02-09-15-59-00-00
                                 /dev/dvd
+  org.freedesktop.UDisks2.Filesystem:
+    MountPoints:        

So, would it be possible to do an update please?
(either just adding that patch or alternatively an update to 2.28.1 which contains that fix)

util-linux is coming from SLE...
Comment 19 Stanislav Brabec 2017-02-23 17:22:17 UTC
Comment 17: This is non a standard conforming CD-Extra. Standard CD-Extra contains audio first, then data track.

Comment 18: Could you provide a cdinfo output from your pressed CD-Extra?

I cannot reproduce with my CD-Extra. Even after downgrade of libblkid1 from Leap 42.2, "udisksctl info -b /dev/sr0" shows correct label. And even after upgrade to Tumbleweed, blkid shows nothing.

Proposed patch looks safe and it can be added to the next update round (To save work of Quality Assurance team, I am doing a batch update once per several months.)

But I suspect, that your CD is not a real standard conforming CD-Extra/CD-Plus. It will not help to fix blkid for a real CD-Extra. It would need more work.
Comment 20 Wolfgang Bauer 2017-02-23 18:20:06 UTC
(In reply to Stanislav Brabec from comment #19)
> Comment 17: This is non a standard conforming CD-Extra. Standard CD-Extra
> contains audio first, then data track.

Mixed mode is not the same as CD-Extra it seems:
https://en.wikipedia.org/wiki/Mixed_Mode_CD
https://en.wikipedia.org/wiki/CD_Extra

"A mixed mode CD is a Compact Disc which contains both data and audio in one session. Typically the first track is a data track while the rest are audio tracks."

"E-CDs are created through the "stamped multisession" technology, which creates two sessions on a disc. The first session of an E-CD contains audio tracks according to the Red Book"

> Comment 18: Could you provide a cdinfo output from your pressed CD-Extra?

Here you are:
wolfi@amiga:~/Desktop> /usr/lib/udev/cdrom_id /dev/sr0
ID_CDROM=1
ID_CDROM_CD=1
ID_CDROM_DVD=1
ID_CDROM_MRW=1
ID_CDROM_MRW_W=1
ID_CDROM_MEDIA=1
ID_CDROM_MEDIA_CD=1
ID_CDROM_MEDIA_SESSION_COUNT=1
ID_CDROM_MEDIA_TRACK_COUNT=2
ID_CDROM_MEDIA_TRACK_COUNT_AUDIO=1
ID_CDROM_MEDIA_TRACK_COUNT_DATA=1

> I cannot reproduce with my CD-Extra. Even after downgrade of libblkid1 from
> Leap 42.2, "udisksctl info -b /dev/sr0" shows correct label. And even after
> upgrade to Tumbleweed, blkid shows nothing.

It obviously only happens with certain CDs, I think. (Or maybe with all mixed mode CDs? No idea.)
Btw, I do get similar I/O errors in dmesg as mentioned in comment#9 and comment#17.

> Proposed patch looks safe and it can be added to the next update round (To
> save work of Quality Assurance team, I am doing a batch update once per
> several months.)

Ok, fine.
Thank you!

> But I suspect, that your CD is not a real standard conforming
> CD-Extra/CD-Plus.

No, it seems to be "mixed mode"...
I checked in k3b, the first track is data, the second track is audio.
Comment 21 Wolfgang Bauer 2017-02-23 18:27:32 UTC
(In reply to Wolfgang Bauer from comment #20)
> (In reply to Stanislav Brabec from comment #19)
> > Comment 18: Could you provide a cdinfo output from your pressed CD-Extra?
> 
> Here you are:
> wolfi@amiga:~/Desktop> /usr/lib/udev/cdrom_id /dev/sr0

Oops, sorry.

Here's the *cdinfo* output now... ;-)

wolfi@amiga:~/Desktop> cdinfo
CD Info 1.1 | (c) 1996-98 Gerd Knorr & Heiko Ei�feldt
__________________________________
track list (1 - 2)
 nr: msf      lba      ctrl adr  type
  1: 00:02:00 (000000) 0x4 0x1 data 
  2: 62:30:16 (281116) 0x0 0x1 audio
170: 67:30:16 (303616) 0x0 0x1 audio (leadout)
__________________________________
what ioctl's report
get mcn     : 0000000000000
disc status : unknown (failed?)
multisession: 0
audio status: no status
__________________________________
try to find out what sort of CD this is
CD-ROM with iso9660 fs and joliet extension level 3
iso9660: 548 MB size, label `AmigaOS3.9                      '
mixed mode CD
Comment 22 Stanislav Brabec 2017-02-24 15:20:10 UTC
Thanks.

The patch will be applied in the next fix batch.
https://build.opensuse.org/project/monitor/home:sbrabec:branches:util-linux-round6
http://download.opensuse.org/repositories/home:/sbrabec:/branches:/util-linux-round6/openSUSE_Leap_42.2_Update

In difference to CD-Plus/CD-Extra, Mixed Mode CD is a very wide definition.

It is clean, what to do with CD-Plus/CD-Extra: Offer both audio and data.

In case of Mixed Mode CD, it is more complicated. You can make CD's with arbitrary order of tracks and sessions. But it seems, that "data first than audio" is a widely used non-standard CD format. So it makes sense to backport the patch.

The patch will also add possibility to mount a last usable session of multi-session CD with corrupted last session.

However it will not fix incorrect behavior of blkid on a real standard conforming CD-Extra. And I even think that fixing your case is just a side effect.
Comment 23 Stanislav Brabec 2017-03-13 17:18:04 UTC
*** Bug 1028142 has been marked as a duplicate of this bug. ***
Comment 25 Swamp Workflow Management 2017-05-16 16:12:36 UTC
SUSE-RU-2017:1307-1: An update that has three recommended fixes can now be installed.

Category: recommended (low)
Bug References: 1020034,1030763,1033718
CVE References: 
Sources used:
SUSE Linux Enterprise Workstation Extension 12-SP2 (src):    util-linux-2.28-44.6.1
SUSE Linux Enterprise Software Development Kit 12-SP2 (src):    util-linux-2.28-44.6.1
SUSE Linux Enterprise Server for Raspberry Pi 12-SP2 (src):    python-libmount-2.28-44.6.2, util-linux-2.28-44.6.1, util-linux-systemd-2.28-44.6.2
SUSE Linux Enterprise Server 12-SP2 (src):    python-libmount-2.28-44.6.2, util-linux-2.28-44.6.1, util-linux-systemd-2.28-44.6.2
SUSE Linux Enterprise Desktop 12-SP2 (src):    python-libmount-2.28-44.6.2, util-linux-2.28-44.6.1, util-linux-systemd-2.28-44.6.2
OpenStack Cloud Magnum Orchestration 7 (src):    util-linux-2.28-44.6.1, util-linux-systemd-2.28-44.6.2
Comment 26 Jürgen Löhel 2017-05-23 15:44:34 UTC
Closing as fixed.
Comment 27 Swamp Workflow Management 2017-05-23 19:12:32 UTC
openSUSE-RU-2017:1383-1: An update that has three recommended fixes can now be installed.

Category: recommended (low)
Bug References: 1020034,1030763,1033718
CVE References: 
Sources used:
openSUSE Leap 42.2 (src):    python-libmount-2.28-12.3.1, util-linux-2.28-12.3.1, util-linux-systemd-2.28-12.3.1