Mounting CDs does not work

Bug #436767 reported by JK
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
devicekit-disks (Ubuntu)
New
Low
Unassigned

Bug Description

Binary package hint: nautilus

Automounting does not work for CDs and DVDs. When I insert them, nothing happens. When I look at dmesg (attached) I see a lot of error messages, but when I mount the CDs/DVDs manually they are perfectly readable. Blank CDs are shown correctly on the desktop but are not removable (cannot unmount and tray is locked), however, burning them works. Automounting for USB devices works correctly...

ProblemType: Bug
Architecture: i386
Date: Fri Sep 25 19:40:18 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/nautilus
Package: nautilus 1:2.28.0-0ubuntu2
ProcEnviron:
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-10.35-generic
SourcePackage: nautilus
Uname: Linux 2.6.31-10-generic i686

Revision history for this message
JK (m0d) wrote :
Revision history for this message
JK (m0d) wrote :

I just noticed something worse: after unmounting the manually mounted CD, the drive stays locked! Even an

sudo echo 0 > /proc/sys/dev/cdrom/lock

does not let me open it (permission denied). Have to restart the machine...

Revision history for this message
JK (m0d) wrote :

I've did some research and found that package "gnome-volume-manager" is not installed! Wasn't this package responsible for automounting? Has this function been moved to another package, maybe device-kit? Is it safe to install gnome-volume-manager?

Revision history for this message
Sebastien Bacher (seb128) wrote : Re: Automounting CDs does not work

gnome-volume-manager is not used since hardy, nautilus does the automounting since gvfs is used, is your drive listed in a devkit-disks --dump log?

summary: - [karmic] Automounting CDs does not work
+ Automounting CDs does not work
Changed in nautilus (Ubuntu):
importance: Undecided → Low
Revision history for this message
JK (m0d) wrote :

Thanks for your response!

The gnome-volume-manager packet is installed on my Jaunty system. Why is it still there when it's obsolete? Does it even do anything? Anyway, I attached the output of devkit-disks --dump. The cdrom is listed, automounting for audio and blank cds works too, only data discs are a problem...

I just saw that you set the importance to "low". While I surely wouldn't classify this as a blocker, I think it's important because it's a show-stopper for a user that doesn't know how the use the cmdline. And even then it's very annoying because the drive is not unlocked after unmounting the disc (see above), so you have to restart the machine to get your disc back or change it.

Revision history for this message
Sebastien Bacher (seb128) wrote :

> The gnome-volume-manager packet is installed on my Jaunty system. Why is it still there when it's obsolete?

You installed it manually or didn't use the graphical dist-upgrader to upgrade your distribution which does cleaning?

> Does it even do anything?

It probably does if it's installed, it's probably useful out of GNOME too

> I just saw that you set the importance to "low". While I surely wouldn't classify this as a blocker, I think it's important because it's a show-stopper for a user that doesn't know how the use the cmdline.

The setting is set to low because those value take in account the number of users have the bug and you are the only one to get this one so far apparently

Revision history for this message
Sebastien Bacher (seb128) wrote :

did you get the log with a data CD in the drive? what device is used as cdrom on your box?

Revision history for this message
Sebastien Bacher (seb128) wrote :

let's say the device is sr0 which is a MATSHITA DVD-RAM UJ-841S drive, the log has " has media: 0", the issue is rather a devicekit-disks one or a linux bug, reassigning

affects: nautilus (Ubuntu) → devicekit-disks (Ubuntu)
Revision history for this message
JK (m0d) wrote :

Oops, I didn't know that you wanted the output when a disc is inserted! I did another test (with another disc that works on my jaunty machine) and attached the output of 'devkit-disks --dump' after insterting the disc. I also attached the dmesg output (shows 'unaligned read' errors). As you can see, the media is detected but not mounted!

One other thing: I recognized that the drive is not only locked after mounting the disc manually but right after inserting it!

> You installed it manually or didn't use the graphical dist-upgrader to upgrade your distribution which does cleaning?

I didn't install it manually and I alwas upgraded using the graphical upgrader. I even did additional cleanup afterwards by removing orphaned packages etc. However, the gnome-volume-manager is still there. Maybe I should check which packet depends on it...

Revision history for this message
JK (m0d) wrote :
Revision history for this message
JK (m0d) wrote :

Just to make myself clear: the cdrom-drive imho works correctly! I've started live-sessions with at least 3 different CDs, burned a DVD and a CD and extracted an audio CD, therefore I can't believe that this is a hardware bug, despite the read errors shown in dmesg. Even within the currently installed karmic system all kinds of cds work, except for simple data discs...

If you need more information or want me to carry out some tests, feel free to ask!

Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you run gvfs-mount -li with the CD in the drive too?

Revision history for this message
JK (m0d) wrote :

Sure, but I assume you meant 'sudo gvfs-mount -li'? Because running it as user creates no output...

Revision history for this message
Sebastien Bacher (seb128) wrote :

no I didn't meant using sudo, that seems to be your issue, do you have a gvfs running with other users? could you run "ps aux | grep gvfs" and copy the log there?

Revision history for this message
Sebastien Bacher (seb128) wrote :

do you have the issue when starting only your user session after boot and trying?

Revision history for this message
JK (m0d) wrote :

OK, here's the output:

andi 1485 0.0 0.4 6188 2188 ? S 18:31 0:00 /usr/lib/gvfs/gvfsd
andi 1490 0.0 0.5 30168 2424 ? Ssl 18:31 0:00 /usr/lib/gvfs//gvfs-fuse-daemon /home/andi/.gvfs
andi 1563 0.0 0.6 6860 2792 ? S 18:31 0:00 /usr/lib/gvfs/gvfs-gdu-volume-monitor
andi 1566 0.0 0.6 6664 2744 ? S 18:31 0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.6 /org/gtk/gvfs/exec_spaw/0
andi 1568 0.0 0.4 6880 2104 ? S 18:31 0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
andi 1671 0.0 0.4 6192 2196 ? S 18:31 0:00 /usr/lib/gvfs/gvfsd-burn --spawner :1.6 /org/gtk/gvfs/exec_spaw/1
andi 1675 0.0 0.4 5968 1780 ? S 18:31 0:00 /usr/lib/gvfs/gvfsd-metadata
andi 1729 0.0 0.8 19104 3808 ? S 18:32 0:00 /usr/lib/gvfs/gvfsd-http --spawner :1.6 /org/gtk/gvfs/exec_spaw/2

Looks OK to me...

> do you have the issue when starting only your user session after boot and trying?

There is only one user on this system and I did not activate the root account, but I activated auto-login. Short answer: yes, the issue is there right after boot. I've just re-checked it after doing an upgrade...

Revision history for this message
JK (m0d) wrote :

I've executed the command 'gvfs-mount -li' again after manually mounting the cd as root. This is the output:

Mount(0): cdrom0 -> file:///media/cdrom0
  Type: GProxyMount (GProxyVolumeMonitorGdu)
  themed icons: [media-optical] [media]
  x_content_types: x-content/software
  can_unmount=1
  can_eject=0
  is_shadowed=0

I really doubt that 'can_unmount=1' is right, since unmounting is only possible for root in that case (tested it too)...

This is the output for 'sudo gvfs-mount -li'

Volume(0): cdrom0
  Type: GUnixVolume
  ids:
   unix-device: '/dev/scd0'
  themed icons: [drive-optical] [drive]
  can_mount=1
  can_eject=1
  should_automount=1
  Mount(0): cdrom0 -> file:///media/cdrom0
    Type: GUnixMount
    themed icons: [media-optical] [media]
    can_unmount=1
    can_eject=1
    is_shadowed=0

Nautilus shows an icon for the mounted cdrom, which is not always the case, but the files (logically) all belong to root... Have you got an idea what the problem could be?

Revision history for this message
JK (m0d) wrote :

I've just (accidentaly) discovered something new: if the disc is already inserted when booting, everything seems to work normally. The disc is mounted, accessible and can be ejected/unmounted. The 'unaligned read' errors are also missing from dmesg. Even better: re-inserting the disc also triggers normal behaviour (i.e. auto-mounting works , the disc can be ejected and no read errors).

However, when I restart the machine without the disc inserted, all errors are back again, including the 'unaligned read'. This is getting weirder with each test....

Revision history for this message
Doug McMahon (mc3man) wrote :

If you were to remove librasero-media0 ( and by extension brasero and rhythmbox) then the odds are your cd/dvd drive(s) will operate correctly with no need to boot up with media inserted or mount media as root.

Revision history for this message
Doug McMahon (mc3man) wrote :

excuse the typo, that should be libbrasero-media0

Revision history for this message
Doug McMahon (mc3man) wrote :

and just as a final note

restoring brasero and libbrasero-media0 to ver. 2.27.92-0ubuntu2 restores full functions of all cd/dvd drives and gksu nautilus is now also functional, both from Alt+F2 (preferred method ) and terminal.

The only caveat to gksu ... is the drive(s) cannot be an an 'open' state, particularly sr0

Revision history for this message
JK (m0d) wrote :

Does that mean that you experienced the same problems and solved them by uninstalling/downgrading brasero? Have you got more information that would help fixing the bug?

While this would be OK as a temporal workaround it isn't exactly what I'd call a solution ;) Downgrading brasero is nothing that I want to do, especially because a lot of bugs have been fixed with the latest releases. Therefore I've wrote a mail to the brasero list and asked Luis and Philippe to have a look at this...

Thanks for your help!

Martin Pitt (pitti)
summary: - Automounting CDs does not work
+ Mounting CDs does not work
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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