Bug 538551 - Dual-filesystem (ISO9660/HFS) CD-ROMs not mounted automatically
Summary: Dual-filesystem (ISO9660/HFS) CD-ROMs not mounted automatically
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux-ng
Version: 13
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-18 19:34 UTC by James
Modified: 2010-12-03 20:41 UTC (History)
10 users (show)

Fixed In Version: util-linux-ng-2.17.2-9.fc13
Clone Of:
Environment:
Last Closed: 2010-10-18 05:47:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Output of udisks --dump with dual-FS CD-ROM inserted (15.13 KB, text/plain)
2010-06-01 15:59 UTC, James
no flags Details
Output of udevadm info --export-db with dual-FS disc in drive (117.09 KB, text/plain)
2010-06-01 15:59 UTC, James
no flags Details
/proc/self/mountinfo with dual-FS CD inserted (884 bytes, text/plain)
2010-06-01 16:00 UTC, James
no flags Details
gvfs-mount -li with dual-FS CD inserted (406 bytes, text/plain)
2010-06-01 16:01 UTC, James
no flags Details
udevadm monitor --udev --property captured when dual-FS CD is inserted then ejected (2.63 KB, text/plain)
2010-06-01 16:02 UTC, James
no flags Details
gvfs-mount -oi captured when dual-FS CD is inserted then ejected (1.45 KB, text/plain)
2010-06-01 16:03 UTC, James
no flags Details
udisks --monitor-detail output when dual-FS CD is inserted then ejected (2.52 KB, text/plain)
2010-06-01 16:04 UTC, James
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Linux Kernel 16091 0 None None None Never

Description James 2009-11-18 19:34:59 UTC
Description of problem:
A CD-ROM with both ISO9660 and HFS filesystems present in the same session (many commercial packages are distributed in this way) do not mount automatically (and show up in Nautilus). When such a disc is in the drive, the drive's icon is not present in computer:///.

The disc can be mounted manually, and then functions correctly.

Version-Release number of selected component (if applicable):
kernel-2.6.31.6-137.fc12.x86_64
hal-0.5.13-9.fc12.x86_64
udev-145-14.fc12.x86_64
DeviceKit-disks-009-3.fc12.x86_64

How reproducible:
Always.
  
Actual results:
Disc not mounted automatically.

Expected results:
At least the ISO9660 file system is mounted, ideally BOTH get mounted.

Comment 1 James 2010-02-08 11:37:03 UTC
Any advice on how I can help debug this? There's nothing in the logs that I can find. I ran devkit-disks-daemon --replace and got the following, when inserting a normal, single-volume CD:


**** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:1f.1/host3/target3:0:0/3:0:0:0/block/sr0
**** CHANGED /sys/devices/pci0000:00/0000:00:1f.1/host3/target3:0:0/3:0:0:0/block/sr0
**** CHANGING /sys/devices/pci0000:00/0000:00:1f.1/host3/target3:0:0/3:0:0:0/block/sr0
**** UPDATING /sys/devices/pci0000:00/0000:00:1f.1/host3/target3:0:0/3:0:0:0/block/sr0
**** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:1f.1/host3/target3:0:0/3:0:0:0/block/sr0
**** CHANGED /sys/devices/pci0000:00/0000:00:1f.1/host3/target3:0:0/3:0:0:0/block/sr0
**** USING MOUNT OPTIONS 'uhelper=devkit,nodev,nosuid,uid=500,gid=500,iocharset=utf8,mode=0400,dmode=0500' FOR DEVICE /dev/sr0
**** EMITTING JOB-CHANGED for /sys/devices/pci0000:00/0000:00:1f.1/host3/target3:0:0/3:0:0:0/block/sr0
helper(pid  7830): launched job mount on /dev/sr0
**** /proc/self/mountinfo changed
**** MOUNTED /sys/devices/pci0000:00/0000:00:1f.1/host3/target3:0:0/3:0:0:0/block/sr0
**** CHANGING /sys/devices/pci0000:00/0000:00:1f.1/host3/target3:0:0/3:0:0:0/block/sr0
**** UPDATING /sys/devices/pci0000:00/0000:00:1f.1/host3/target3:0:0/3:0:0:0/block/sr0
**** CHANGED /sys/devices/pci0000:00/0000:00:1f.1/host3/target3:0:0/3:0:0:0/block/sr0
helper(pid  7830): completed with exit code 0


But upon inserting a dual HFS/ISO9660 CD-ROM:


**** CHANGING /sys/devices/pci0000:00/0000:00:1f.1/host3/target3:0:0/3:0:0:0/block/sr0
**** UPDATING /sys/devices/pci0000:00/0000:00:1f.1/host3/target3:0:0/3:0:0:0/block/sr0
**** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:1f.1/host3/target3:0:0/3:0:0:0/block/sr0
**** CHANGED /sys/devices/pci0000:00/0000:00:1f.1/host3/target3:0:0/3:0:0:0/block/sr0


and nothing more.

Comment 2 James 2010-06-01 15:51:12 UTC
Still not fixed in Fedora 13, udisks-1.0.1-1.fc13.x86_64.

Comment 3 James 2010-06-01 15:57:40 UTC
I've attached information asked for at http://www.freedesktop.org/wiki/Software/udisks below.

Comment 4 James 2010-06-01 15:59:02 UTC
Created attachment 418695 [details]
Output of udisks --dump with dual-FS CD-ROM inserted

Comment 5 James 2010-06-01 15:59:45 UTC
Created attachment 418698 [details]
Output of udevadm info --export-db with dual-FS disc in drive

Comment 6 James 2010-06-01 16:00:23 UTC
Created attachment 418699 [details]
/proc/self/mountinfo with dual-FS CD inserted

Comment 7 James 2010-06-01 16:01:01 UTC
Created attachment 418700 [details]
gvfs-mount -li with dual-FS CD inserted

Comment 8 James 2010-06-01 16:02:27 UTC
Created attachment 418702 [details]
udevadm monitor --udev --property captured when dual-FS CD is inserted then ejected

Comment 9 James 2010-06-01 16:03:18 UTC
Created attachment 418705 [details]
gvfs-mount -oi captured when dual-FS CD is inserted then ejected

Comment 10 James 2010-06-01 16:04:53 UTC
Created attachment 418711 [details]
udisks --monitor-detail output when dual-FS CD is inserted then ejected

Comment 11 David Zeuthen 2010-06-01 16:05:46 UTC
The problem here is that the kernel doesn't partition the /dev/sr0 device. The
payload on the block device clearly indicates that it has a MBR

E: UDISKS_PARTITION_TABLE=1
E: UDISKS_PARTITION_TABLE_SCHEME=mbr
E: UDISKS_PARTITION_TABLE_COUNT=0

although for some reason the count is zero but I think that's just a
side-effect of the kernel refusing to partition the device.

Any chance you can point to a minimal disk image with this layout? (IIRC one of
my old OS X install DVD's are like that although it uses APM instead of MBR)

Comment 12 James 2010-06-01 16:12:03 UTC
Not sure; the only CD-ROM I have to hand here like this is a Maple 9.5 install disc. I'll see if I can find a minimal image elsewhere on the web...

(Should I report this upstream? And if so, against udisks or kernel?)

Comment 13 David Zeuthen 2010-06-01 16:25:15 UTC
Now that we have dynamic device numbers (and now that they are widely used) it shouldn't be a big deal to partition sr devices - in my view this is certainly preferable to kpartx'ing the device. So let's just reassign this bug to the kernel for now. Also suggest to ask for this feature upstream too otherwise it probably won't happen as the RH bugzilla isn't really the right place to ask for features...

Comment 14 Chuck Ebbert 2010-09-03 13:31:29 UTC
This is caused by a bug in blkid (from util-linux-ng) and should be fixed upstream at least:

http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commitdiff_plain;h=791a2fd67c118c3f07141e4cc95532fe908015a9

Comment 15 James 2010-09-03 15:19:18 UTC
I have tried the patch linked in comment 14 with util-linux-ng-2.17.2-8.fc13.x86_64 . It patches cleanly and resolves the bug. Will this be brought into official F13?

Comment 16 Chuck Ebbert 2010-09-04 11:47:14 UTC
Somehow this was still assigned to kernel-maint even though the component was util-linux-ng.

Comment 17 Fedora Update System 2010-10-07 11:45:36 UTC
util-linux-ng-2.18-4.2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/util-linux-ng-2.18-4.2.fc14

Comment 18 Fedora Update System 2010-10-07 19:55:21 UTC
util-linux-ng-2.18-4.2.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update util-linux-ng'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/util-linux-ng-2.18-4.2.fc14

Comment 19 Fedora Update System 2010-10-11 07:16:46 UTC
util-linux-ng-2.18-4.3.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/util-linux-ng-2.18-4.3.fc14

Comment 20 James 2010-10-11 07:44:52 UTC
Will there be a .fc13 build?

Comment 21 Fedora Update System 2010-10-11 09:01:34 UTC
util-linux-ng-2.17.2-9.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/util-linux-ng-2.17.2-9.fc13

Comment 22 Fedora Update System 2010-10-18 05:46:48 UTC
util-linux-ng-2.18-4.3.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 23 Fedora Update System 2010-12-03 20:41:50 UTC
util-linux-ng-2.17.2-9.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.