Bug 15335 - HAL doesn't mount "Philips DVD-R" medias
Summary: HAL doesn't mount "Philips DVD-R" medias
Status: RESOLVED FIXED
Alias: None
Product: hal
Classification: Unclassified
Component: hald (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Danny Kukawka
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-03 04:09 UTC by Sam Morris
Modified: 2010-09-10 06:25 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
lshal output with working disc (96.21 KB, text/plain)
2008-04-03 04:10 UTC, Sam Morris
Details
lshal output with another working disc (96.22 KB, text/plain)
2008-04-03 04:11 UTC, Sam Morris
Details
lshal output with yet another working disc (96.20 KB, text/plain)
2008-04-03 04:11 UTC, Sam Morris
Details
lshal output with no disc (93.74 KB, text/plain)
2008-04-03 04:12 UTC, Sam Morris
Details
lshal output with problematic disc (93.70 KB, text/plain)
2008-04-03 04:13 UTC, Sam Morris
Details
lshal output with a CDR present (116.01 KB, text/plain)
2009-09-23 17:14 UTC, Tony Houghton
Details
hald optical disk detection patch (560 bytes, patch)
2009-10-12 22:55 UTC, César García
Details | Splinter Review

Description Sam Morris 2008-04-03 04:09:49 UTC
[ forwarded from http://bugs.debian.org/466022 ]

I have a CD/DVD burner drive. I can mount CD and DVD+R medias automatically
> with HAL, but when I put Philips DVD-R medias, HAL does not mount them!
> 
> It's strange, all my Philips DVD-R medias I have are not mounted by HAL, I
> need mount them with "mount /dev/scd0" command. It's uncomfortable because
> this medias are correctilly mounted on Microsoft Windows.
Comment 1 Sam Morris 2008-04-03 04:10:40 UTC
Created attachment 15643 [details]
lshal output with working disc

Here is the output of lshal with an HP DVD+R disc in the drive
Comment 2 Sam Morris 2008-04-03 04:11:08 UTC
Created attachment 15644 [details]
lshal output with another working disc

lshal output with an LG CD-R disc in the drive
Comment 3 Sam Morris 2008-04-03 04:11:44 UTC
Created attachment 15645 [details]
lshal output with yet another working disc

output of lshal with a WinData DVD-R in the drive
Comment 4 Sam Morris 2008-04-03 04:12:12 UTC
Created attachment 15646 [details]
lshal output with no disc

This time, with no disc inserted into the drive
Comment 5 Sam Morris 2008-04-03 04:13:56 UTC
Created attachment 15647 [details]
lshal output with problematic disc

And finally, the lshal output with the Philips DVD-R disc that HAL does not 'see'.

The diff between this and attachment #15646 [details] is interesting; with no disc inserted, storage.removable.media_availble = false; with the Philips DVD-R disc inserted, it is true -- but there is no Volume device in the device list.
Comment 6 Tony Houghton 2009-09-23 17:13:02 UTC
I've got a similar problem. It started happening very recently (today?). I'm also using Debian, unstable amd64, with hal 0.5.13-3. In my case it's recorded CDRs that aren't recognised. I've tried a couple of different brands, multi-session and single-session, none of them are recognised. I can still mount them with pmount, but at one point even that stopped working, pmount just kept hanging for ages while the drive LED flashed, but a reboot cured that. Even when mounted the volume doesn't appear as far as hal is concerned. I've tried a recorded DVD-R, a commercial data CD and a blank CDR, they've all appeared OK.

Two details in common with Sam Morris' problem are that I'm not experiencing this problem in Windows and storage.removable.media_available = true but there's no corresponding volume udi.

It's late now, but if a developer shows interest in investigating further I can try swapping in a different drive and/or trying the same hardware with LinuxMint on a USB stick.
Comment 7 Tony Houghton 2009-09-23 17:14:49 UTC
Created attachment 29821 [details]
lshal output with a CDR present
Comment 8 Tony Houghton 2009-09-24 15:47:01 UTC
I have now tested Mint 7 x86 (with hal 0.5.12~rc1+git20090403) on the same PC and it works correctly with that version.
Comment 9 César García 2009-10-12 22:53:39 UTC
I had the same problem with some DVD-R and DVD-RW, hal hangs while trying to mount the disk but if i kill hald and try to mount the disc manually it works without problems. While trying to debug the problem i found that calling 
"blkid -p -u raid /dev/sr0" blocks the dvd-drive as the same as hal does. Note that "blkid -p -u filesystem,crypto,other /dev/sr0" or "blkid -p -u noraid /dev/sr0" dont hang and return the detected filesystem. I made a patch that filter out the raid detection on disk volumes so hal can detect the filesystem and mount the disk.
Comment 10 César García 2009-10-12 22:55:18 UTC
Created attachment 30336 [details] [review]
hald optical disk detection patch
Comment 11 Danny Kukawka 2010-09-10 06:25:11 UTC
commited fix to my git, it gets merged later into upstream git:

http://cgit.freedesktop.org/~dkukawka/hal/commit/?id=a20a7d126db0986c4113fa464fde60d34d91abe6

commit a20a7d126db0986c4113fa464fde60d34d91abe6
Author: César García <cesarg9@gmail.com>
Date:   Fri Sep 10 15:20:31 2010 +0200

    fix probing of optical disc volumes by ignoring raid

    Fixed probing of optical disc volumes by ignoring raid.

    Calling "blkid -p -u raid /dev/sr0" blocks the dvd-drive as the
    same as hal does. Note that "blkid -p -u filesystem,crypto,other
    /dev/sr0" or "blkid -p -u noraid /dev/sr0" don't hang and return
    the detected filesystem.

    This is a patch that filter out the raid detection on disk volumes
    so hal can detect the filesystem and mount the disk.

    fd.o#15335


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.