dvd or cd does not mount

Bug #218834 reported by 323232
30
Affects Status Importance Assigned to Milestone
HAL
Fix Released
Medium
gnome-volume-manager (Ubuntu)
Invalid
Undecided
Unassigned
Hardy
Invalid
Undecided
Unassigned
hal (Ubuntu)
Fix Released
Medium
Martin Pitt
Hardy
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: gnome-volume-manager

on hardy with all updates most dvd's or cd's do not mount. Get the message: Unable to mount location: Can't mount file.
Only when a bought music cd is inserted hardy recognizes it and mounts the cd.
When i do a mount command in terminal everthing works

Revision history for this message
In , Yann Rouillard (yann-pleiades) wrote :

Created an attachment (id=12267)
The hald debug log

Revision history for this message
In , Lauri Võsandi (lauri-vosandi) wrote :

I can confirm this. I have external USB powered LG GSA-E50L DVD writer and it's way too slow to recognize inserted DVD in 10secs. Please fix this, this doesnt require a lot of job I think.

Revision history for this message
323232 (323232) wrote :

Binary package hint: gnome-volume-manager

on hardy with all updates most dvd's or cd's do not mount. Get the message: Unable to mount location: Can't mount file.
Only when a bought music cd is inserted hardy recognizes it and mounts the cd.
When i do a mount command in terminal everthing works

Revision history for this message
323232 (323232) wrote :

Fstab
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0

Revision history for this message
323232 (323232) wrote :

for clearity: cd & dvd does not mount when i try it in nautilus.

Revision history for this message
Martin Pitt (pitti) wrote :

Is /dev/hdc actually your CD-ROM drive? I assume so, since you mention "it works on the command line".

Can you please copy&paste the output of

  gnome-mount -vbd /dev/hdc

(entered in a Terminal window)? Thank you!

Changed in gnome-volume-manager:
status: New → Incomplete
Revision history for this message
sandic (sandipan) wrote :

This happens to me to. My cd device is /dev/scd0 . I dont have any entries in fstab.

"gnome-mount -vbd /dev/hdc" says :
      gnome-mount 0.8
      ** Message: Drive /dev/scd0 does not contain media

If i keep the cd/dvd and reboot back to ubuntu , nautilus shows the disk.
It does not happen for all cd/dvd, some cd's do mount. The cd/dvd cannot be bad because they mount in windows and by the option above.

Also i noticed,
1. If the cd/dvd does not get mounted , dmesg shows nothing
2. If it does, dmesg says
[ 940.875867] UDF-fs: No VRS found
[ 940.890906] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 940.892867] ISOFS: changing to secondary root
3. If i reboot with a "unmountable cd/dvd" the cd/dvd is mounted with above dmesg messages.
Is it a kernel problem ?

I hope my comment wasn't confusing.

Revision history for this message
sandic (sandipan) wrote :

Also,
sudo mount /dev/scd0 /media/cdrom0/ works.

dmesg then says
[ 1278.116887] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 1278.161904] ISOFS: changing to secondary root

Revision history for this message
Martin Pitt (pitti) wrote :

Ah, thanks so far; could be a bug in the kernel or in hal. Can you please do the debugging steps on https://wiki.ubuntu.com/DebugginHal for the broken case, i. e. inserting the CD while the computer and the debug hald are already running? Thanks!

Changed in gnome-volume-manager:
status: New → Invalid
Revision history for this message
sandic (sandipan) wrote :

Inserted dvd . Here are the outputs

Revision history for this message
sandic (sandipan) wrote :

sorry dont know how attach multiple files

Revision history for this message
sandic (sandipan) wrote :

sorry dont know how attach multiple files

Revision history for this message
Martin Pitt (pitti) wrote :

Ah, it seems your CD-ROM is just too slow. I uploaded a possible fix to my PPA (https://launchpad.net/~pitti/+archive)

   hal (0.5.11~rc2-1ubuntu9~ppa1) hardy; urgency=low

     * Add 03_increase_helper_timeout.patch: Increase helper timeout from 10 to
       20 seconds. Some CD-ROMs are too slow to do all the detection in 10
       seconds. (LP: #218834)

Can you please add this to /etc/apt/sources.list:

  deb http://ppa.launchpad.net/pitti/ubuntu hardy main

and tell me if it works any better? If not, can you please do the hal debugging exercise again, with this version? Thank you!

Revision history for this message
sandic (sandipan) wrote :

The fixed "hal" does work. My dvd's are now detected. BTW, what was the timeout in gutsy ? My dvd's used to work fine in gutsy.

Thanks for the fix Martin. Any idea if and when this fix would be incorporated upstream ?

Revision history for this message
Andy (andy-xillean) wrote :

This is happening to me also. /dev/scd0 will only read/automount cdroms no data or video dvds.
I install Martin's fix but this unfortunately did not help. Here is the result from the debug steps.

I insert any dvd and nothing happens. I try to click on it and get
gnome-mount 0.8
** Message: Drive /dev/scd0 does not contain media.

It worked fine in Gutsy.

Revision history for this message
Andy (andy-xillean) wrote :

lshal.txt

Revision history for this message
Martin Pitt (pitti) wrote :

sandi, thanks for testing. Now that it's confirmed to be the reason, I'll forward it upstream now.

Changed in hal:
status: Incomplete → Fix Committed
assignee: nobody → pitti
importance: Undecided → Medium
Revision history for this message
Martin Pitt (pitti) wrote :

This has a trivial patch [1] and should be fixed in hardy.

[1] http://bazaar.launchpad.net/~ubuntu-core-dev/hal/ubuntu/revision/233

Changed in hal:
assignee: nobody → pitti
importance: Undecided → Medium
milestone: none → ubuntu-8.04.1
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hal - 0.5.11~rc2-1ubuntu9

---------------
hal (0.5.11~rc2-1ubuntu9) intrepid; urgency=low

  * Add 03_increase_helper_timeout.patch: Increase helper timeout from 10 to
    20 seconds. Some CD-ROMs are too slow to do all the detection in 10
    seconds. (LP: #218834)

hal (0.5.11~rc2-1ubuntu8) hardy-proposed; urgency=low

  * debian/hal.postinst: If hal has any start rc symlinks, force them back to
    24. A lot of people end up with priority 12 for some reason, which races
    with dbus startup, especially with CONCURRENCY=shell. (LP: #25931)
  * Add 00upstream-fix-macbook-backlight.patch: Fix backlight control on
    MacBooks. Thanks to godlygeek! (LP: #206921)

 -- Martin Pitt <email address hidden> Wed, 30 Apr 2008 11:00:07 +0200

Changed in hal:
status: Fix Committed → Fix Released
Martin Pitt (pitti)
Changed in gnome-volume-manager:
status: New → Invalid
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into -proposed, please test and give feedback here

Changed in gnome-volume-manager:
status: Invalid → Fix Committed
Changed in hal:
milestone: ubuntu-8.04.1 → none
status: In Progress → Fix Committed
Changed in gnome-volume-manager:
status: Fix Committed → Invalid
Revision history for this message
Martin Pitt (pitti) wrote :

Andy, can you please test the new package in hardy-proposed? Please enabled "proposed" in the software sources (updates tab). Unfortunately the version number is lower, so this requires some actions in the Terminal to downgrade:

  sudo apt-get install hal/hardy-proposed

does it still work for you with that version? We need to test the actual .debs from hardy-proposed in order to be able to move them to hardy-updates, where all users get the update. Thank you!

Revision history for this message
Andy (andy-xillean) wrote :

Sure. The customer is bring back one of the laptops tonight I will jump on it as soon as she gets here.

Revision history for this message
Andy (andy-xillean) wrote :

ok the desktop can now read dvds the laptop is getting this error

 00
[ 2789.050467] sr: Sense Key : Medium Error [current]
[ 2789.050473] sr: Add. Sense: Unable to recover table-of-contents
[ 6698.550183] sr0: CDROM (ioctl) error, command: Test Unit Ready 00 00 00 00 00 00
[ 6698.550226] sr: Sense Key : Medium Error [current]
[ 6698.550239] sr: Add. Sense: Unable to recover table-of-contents
[ 6701.185872] sr0: CDROM (ioctl) error, command: Test Unit Ready 00 00 00 00 00 00
[ 6701.185916] sr: Sense Key : Medium Error [current]
[ 6701.185929] sr: Add. Sense: Unable to recover table-of-contents
[ 2792.412597] sr0: CDROM (ioctl) error, command: Test Unit Ready 00 00 00 00 00 00
[ 2792.412628] sr: Sense Key : Medium Error [current]
[ 2792.412635] sr: Add. Sense: Unable to recover table-of-contents

it can read cds

Revision history for this message
Martin Pitt (pitti) wrote :

Andy, thanks. However, those kernel errors shouldn't be related to the hal change (which just increases the timeout). Did you see them before, too? Could that be a medium error?

Revision history for this message
Ralf (ralf-weyer) wrote :

I can confirm this bug too, but to me it seems more of a kernel problem (allthough I'm not a developer).

I've upgraded from Kubuntu Gutsy to Kubuntu Hardy, and so I've got 2 kernels on my machine:
- 2.6.24-16-generic
- 2.6.22-14-generic

Booting the new kernel DVD's are not mounted (and there appears another error-message telling me "libdvdcss" is not installed, allthough it is, but I guess that's a different story). This happened before I installed the proposed hal, and after I installed it. So no change for me here.

Booting the old kernel DVD's are mounted and played (even without the "libdvdcss" error-message!), no matter I used hal delivered with Hardy, or the proposed hal.

Disabling the old entry in /etc/fstab (/dev/hdd /media/cdrom0 udf,iso9660 user,noauto,exec 0 0) did not work either with the new kernel.

If there is anything I can test just let me know.

Regards,

Ralf

Revision history for this message
Andy (andy-xillean) wrote :

yep the errors are still there the hal update didn't get rid of the errors nor did it help with
being able to read DVDs. It still can read CDs. In fact Hardy was installed fresh on this computer
from the cd through this drive.

Revision history for this message
John (jc453) wrote :

I'm having this problem although I am able to mount the cds / dvds through Dolphin although the first time it did ask me for my root password. If I try using gnome mount:

john@john-desktop:~$ gnome-mount -vbd /dev/sdb
gnome-mount 0.8

but the cd remains unmounted.

Revision history for this message
John (jc453) wrote :

Mine was fixed by following the comments here:

http://ubuntuforums.org/showthread.php?t=752905

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in hal:
status: Fix Committed → Fix Released
Revision history for this message
Ralf (ralf-weyer) wrote :

Did the update a few minutes ago, and there have been some libhal... files updated. But the problem still exists. With the Hardy-kernel (2.6.24-16-generic) I receive 2 error messages when I try to play a video DVD in Kaffeine:

1) "Source could not be read. You don't have enough rights, or the the source does not contain any data (i.e. no CD in the drive) (dev/dvd)"
=> hopefully I translated the message correctly since I'm using german Kubuntu.

2) LibDVDCSS (http://www.videoloan.org/developers/libdvdcss.html) is about to be installed, it allows you to watch encrypted DVD videos. This is illegal in some countries which require decryption to be authorised by the copyright holder. Do you want to install this package?
=> this message appears allthough the package is allready installed, and even if I say "Yes", the DVD will not be played and the next time I try to play a DVD this message appears again.

And with the old Gutsy-kernel (2.6.22-14-generic) everything is still ok, the DVD will be played without any error-messages.

If you need more information please let me know.

Regards,

Ralf

Revision history for this message
In , Martin Pitt (pitti) wrote :

Seems that Yann and I figured this out independently. I sent explanations and the (trivial) patch to the upstream ML recently:

http://lists.freedesktop.org/archives/hal/2008-May/011511.html

Revision history for this message
Yann Rouillard (yann-pleiades) wrote :

This bug is duplicate of bug #157775 where I proposed the same patch.
I also opened a bug upstream.

Changed in hal:
status: Unknown → Confirmed
Revision history for this message
Ralf (ralf-weyer) wrote :

So any news here? Is there anything we can do? Maybe do some testings, give some more information if needed, whatever - but just to speed it up a little bit and make it work finally.

What I don't understand at all is: importance = medium and urgency = low! So beeing not able to mount a DVD is of medium importance low urgency?! I think a user who tries Linux for the first time is not able to mount a DVD will turn his back on Linux and stays with the "other system".

Regards,

Ralf

Revision history for this message
Martin Pitt (pitti) wrote :

Ralf, this bug has already been fixed in hardy-updates and in intrepid. If it still does not work for you, you apparently have a different problem. Please file a new bug report in this case. Thank you!

Revision history for this message
In , Martin Pitt (pitti) wrote :
Changed in hal:
status: Confirmed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Hello all,

the "increase timeout" hack has been reviewed upstream recently, and is debated (rightfully, since it was just a workaround). Could people who were affected by this bug please test whether an alternative and better approach works for them as well?

I built a test package for 8.10 (intrepid, *not* for hardy) with Danny's proposed patch [1]. Please install it with:

  cd /tmp/
  wget http://people.ubuntu.com/~pitti/tmp/hal-test-218834/hal_0.5.11-4ubuntu4+pitti1_i386.deb
  sudo dpkg -i hal_0.5.11-4ubuntu4+pitti1_i386.deb

Then please check if your CDs are still recognized and automounted properly. After the test, you can revert to the original 8.10 package with

  sudo apt-get install hal/intrepid

if you want.

http://people.ubuntu.com/~pitti/tmp/hal-test-218834/ also contains the source package, in case you are interested.

Thanks a lot in advance for your help!

[1] http://gitweb.freedesktop.org/?p=users/dkukawka/hal.git;a=commitdiff_plain;h=7aca1f3fefefd3c760636aabcff1e25946ab6391;hp=98b0b8434bf3506c69c33de4f126d885448dcbbb

Revision history for this message
Steve Dodd (anarchetic) wrote :

Given that this bug seems to a have tracked down a particular (timeout?) issue with hal that is being worked on, perhaps those having slightly different problem might get more joy over at Bug #293570 ?

Changed in hal:
importance: Unknown → Medium
Changed in hal:
importance: Medium → Unknown
Changed in hal:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.