Cannot burn on RW media because n-c-b does not unmount it

Bug #114770 reported by Mika Fischer
28
Affects Status Importance Assigned to Milestone
nautilus-cd-burner (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs
Feisty
Won't Fix
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: nautilus-cd-burner

nautilus-cd-burner has no Build-Depends on gnome-mount it makes CD ejection not working correctly, the bug is fixed to gutsy already

Steps to reproduce:

1. Put in a used RW medium so that it will get mounted
2. Open nautilus-cd-burner and drag some files in.
3. Click on the burn button
4. You will get warned that the medium has already data on it. Click "Erase"
5. You will get an error message, saying that the drive is in use

Roughly translated from german:
Error while writing to medium
While writing to the medium an error occurred:
The target DVD drive is still in use.

If I unmount the medium via "sudo umount /media/name" then it burns correctly.

So basically I can't use RW media without using the command line...

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

Thank you for your bug. What version of Ubuntu do you use? Does umounting it from a command line using gnome-mount without sudo works correctly? What does "lsof /media/name" says when you can't unmount it?

Changed in nautilus-cd-burner:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: Unconfirmed → Needs Info
Revision history for this message
Mika Fischer (zoop) wrote :

I'm using Feisty.

Unmounting via gnome-mount --unmount -d /dev/hda works just as well.

I never had problems unmounting the DVD. I ran the following: "while true; do date; lsof /media/name; sleep 1; done" and while reproducing the problem it did not report anything.

So the problem is not that something is using the medium. The problem is that n-c-b does no longer unmount the medium before trying to burn. This used to work in Edgy...

Changed in nautilus-cd-burner:
status: Needs Info → Unconfirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Works fine for me, to debug by somebody getting the bug

Revision history for this message
Mika Fischer (zoop) wrote :

OK. It would help if I knew how to debug the problem.

But I found out on my own...

Debug output:
** (nautilus-cd-burner:6626): WARNING **: Couldn't unmount volume in drive: /dev/hda
** (nautilus-cd-burner:6626): WARNING **: Couldn't unmount volume in drive: /dev/hda

# At this point the dialog pops up saying that the DVD has data on it. I click "Erase"

launching command: growisofs -dvd-compat -use-the-force-luke=tty -graft-points -path-list /tmp/iso-mika.E0BDST -Z /dev/hda -input-charset utf8 -r -J -V DH
growisofs stderr: WARNING: /dev/hda already carries isofs!
growisofs stdout: About to execute 'genisoimage -graft-points -path-list /tmp/iso-mika.E0BDST -input-charset utf8 -r -J -V DH | builtin_dd of=/dev/hda obs=32k seek=0'
growisofs stderr: umount: /media/DH is not in the fstab (and you are not root)
growisofs stderr: :-( /dev/hda: unable to proceed with recording: unable to unmount
process stdout: HUP
process stderr: HUP
-----

Further debugging and messing with the source code revealed that n-c-b is not compiled with gnome-mount support. Without it it tries to unmount using "unmount /dev/hda" which obviously fails with "umount: /dev/hda is not in the fstab (and you are not root)".

You can see that n-c-b in feisty is built without gnome-mount support here:
http://librarian.launchpad.net/7231251/buildlog_ubuntu-feisty-i386.nautilus-cd-burner_2.18.1-0ubuntu1_FULLYBUILT.txt.gz
Search for "gnome-mount support: no"

I cannot seem to compile n-c-b with gnome-mount support, even adding --enable-gnome-mount does not help. But that would probably fix my issue.

Another option is to install pmount, which n-c-b uses if it's installed (I didn't have it installed, you probably have). This also fixes my problem. But then n-c-b really should depend on pmount if it's needed to function properly.

So in summary, either:
a) enable gnome-mount support in n-c-b, or
b) let n-c-b depend on pmount

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

This upload fixes the bug:

 nautilus-cd-burner (2.19.1-0ubuntu2) gutsy; urgency=low
 .
   * debian/control.in:
     - Build-Depends on gnome-mount (Ubuntu: #114770)

Changed in nautilus-cd-burner:
status: Unconfirmed → Fix Released
Revision history for this message
Mika Fischer (zoop) wrote :

Did you actually reproduce the bug and test the fix?

Because as I said I was not able to get n-c-b to use gnome-mount. Adding the build-dependency did not help at all.

I can't test the new package because I'm still on Feisty but looking at the build log of 2.19.1-0ubuntu2 I still see: "gnome-mount support: no", indicating that this did not accomplish what you wanted.

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

I looked at the configure and did try to build it on my desktop. The extra Build-Depends is correct, it doesn't work because gnome-mount.pc Requires hal-storage which is not installed the package. i've workarounded it from nautilus-cd-burner

 nautilus-cd-burner (2.19.1-0ubuntu3) gutsy; urgency=low
 .
   * debian/control.in:
     - workaround gnome-mount not depending on libhal-storage-dev

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

gnome-mount should probably be splitted since we don't want to make it Depends on libhal-storage-dev

Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :
description: updated
Changed in nautilus-cd-burner:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
Revision history for this message
Martin Pitt (pitti) wrote :

Looks good, please upload.

Changed in nautilus-cd-burner:
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Accpeted into -proposed. Please go ahead with QA testing

Changed in nautilus-cd-burner:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

This has been in -proposed for almost half a year now. Someone please make sure to get this tested and provide feedback here. If it is not interesting any more, I will remove it from -proposed. Thank you!

Revision history for this message
Vincenzo Ciancia (vincenzo-ml) wrote :

Is this in gutsy-proposed or only in feisty-proposed?

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

As the bug tasks point out, this is feisty-proposed. It is fixed in Gutsy and Hardy.

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

Can anyone please test this? I will remove it from feisty-proposed if nobody is interested in this any more.

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

I removed the feisty-proposed version, since there has not been any testing response or any interest in it.

Changed in nautilus-cd-burner:
status: Fix Committed → Won't Fix
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.