Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95357 - dvd+rw-tools doesn't contain patch or reference to "unclosed dvd+r session" growisofs bug
Summary: dvd+rw-tools doesn't contain patch or reference to "unclosed dvd+r session" g...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Optical Media project
URL: http://morgwai.pl/growisofs.html
Whiteboard:
Keywords:
: 108176 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-07 08:37 UTC by TommyDrum
Modified: 2006-02-05 06:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Growisofs patch for Pioneer DVR-109 error burning DVD+R (02_growisofs_mmc.cpp.patch,678 bytes, patch)
2005-06-11 06:35 UTC, TommyDrum
Details | Diff
Revision 1 to include Pioneer DVR-109 patch (dvd+rw-tools-5.21.4.10.8-r1.ebuild,850 bytes, text/plain)
2005-06-11 06:36 UTC, TommyDrum
Details

Note You need to log in before you can comment on or make changes to this bug.
Description TommyDrum 2005-06-07 08:37:22 UTC
The problem is brought up due to a bug on growisofs (contained in all subsequent
versions of 5.19 of dvd+rw-tools; in this case 5.21.4.10.8), which doesn't
handle correctly closing a session on some dvd+r and dvd+rw disks (on certain
dvd writers, namingly my Pioneer DVR-109), resulting to the impossibility to
mount the suggested media on dvd-rom devices (including the forementioned).


Reproducible: Always
Steps to Reproduce:
1.Use a DVD+R/RW disk
2.Burn any content with either growisofs or frontends (tried k3b and xcdroast)
3.Try to mount the burned DVD+R/RW (mount -t udf/iso9660/auto /dev/hdX /mnt/dvdrw/)

Actual Results:  
Following system message:

mount: block device /dev/hdc is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/hdc,
       or too many mounted file systems


Expected Results:  
Mount the disk :)

Should be enough to download compile and install system-wide the "close.cpp"
file found in the forementioned address, and warn the user at finished merge
about the caveat to use (which would have spared me about two hours of googling
8P !)
Comment 1 JG 2005-06-07 09:35:11 UTC
hi,   
   
thanks for you post here. i've been trying to get my pioneer 109 to burn dvds   
for days now.. :/ it works burning a cd-r, not not dvd+r (didn't try dvd-r)   
i also found this patch right now: 
http://lists.debian.org/cdwrite/2005/04/msg00016.html  
i'll upgrade to firmware 1.50 and will test with unpatched, then with patched 
version of growisofs if it is possible to burn dvds again.. 
 
JG 
Comment 2 TommyDrum 2005-06-07 11:55:15 UTC
It seems, as posted on the url by JG, that the problem is present only when 1GB
or more of data is burned on the medium.
The problem is always present on v1.50 (latest as of time of writing) of
firmware on the Pioneer DVR-109 drive.
Comment 3 JG 2005-06-08 09:36:08 UTC
ok, confirming that the patch works! *yeah* i can burn dvds again..  
 
because of the patch i do get plenty of those error messages, but as stated by  
RISKO Gergely one can comment it out. 
 
:-[ CLOSE SESSION (but try to continue) failed with SK=2h/ASC=04h/ 
ACQ=07h]: Resource temporarily unavailable 
 
i can mount and read the dvd+r data disk without problems now :) 
 
JG 
 
Comment 4 TommyDrum 2005-06-11 06:35:00 UTC
Created attachment 61051 [details, diff]
Growisofs patch for Pioneer DVR-109 error burning DVD+R

Goes to the $ebuild/files/ directory
Comment 5 TommyDrum 2005-06-11 06:36:24 UTC
Created attachment 61052 [details]
Revision 1 to include Pioneer DVR-109 patch
Comment 6 TommyDrum 2005-06-11 06:38:54 UTC
Ok, made a new ebuild, this is my first one, so please be patient and point out
errors I might have done :).
There's also the patch to insert to the files/ directory;
Step by step, this is what I did:
Made a new /usr/local/portage/app-cdr/dvd+rw-tools/ directory
Made a new ebuild in the directory (the dvd+rw-tools-5.21.4.10.8-r1.ebuild
attachment, please someone tell me how correct this is)
Made a new /usr/local/portage/app-cdr/dvd+rw-tools/files/ directory
Copied the 01_all_samsung-media-fix.patch to the new files/directory
Made a new patch in the files/ directory (the 02_growisofs_mmc.cpp.patch attachment)
Digested the ebuild (ebuild dvd+rw-tools-5.21.4.10.8-r1.ebuild digest)
Merged the ebuild (ebuild dvd+rw-tools-5.21.4.10.8-r1.ebuild merge)
The process worked without glitches for me, but I didn't have the opportunity to
test it on DVD+R media (I don't have any for the time-beeing!), please confirm...

...or else I'll confirm it next time I get some DVD+R, and at that point I think
could be stable to put to cvs-tree (Lars?) and close the bug.
 
Thanks JG, you've been really helpful. :)

Ciauz,
Tommy
Comment 7 TommyDrum 2005-06-20 07:01:28 UTC
There's a firmware update to the Pioneer DVR 109 writer, v.1.55 available today
(20 June 2005) from Pioneer (europe, at least). I don't have the chance to test
it on DVD+R media real soon, but if anyone has the opportunity to do it with an
UNPATCHED dvd+rw-tools-5.21.4.10.8 please give feedback; if not, I will do it
when I have the chance.
Oh, by the way I asked politely Pioneer europe about this matter, and
(expectedly) did not receive a response upon this.
Comment 8 Krzysztof Stasiorowski 2005-09-05 12:28:20 UTC
So, I'm using Pioneer DVR-109, upgraded firmware to version 1.58, applayed patch 
and reemerge package and writing starts work - so it looks that patch solve the 
problem. The other issue is that - I can't set the speed of burning - I set 4x 
and it burns with maximum possible speed. But I think it can be commited to 
portage
Comment 9 Krzysztof Stasiorowski 2005-09-05 12:45:07 UTC
Morever I use amd64 so add keyword ~amd64 to attached ebuild
Comment 10 Florian Engelhardt 2005-10-05 06:51:49 UTC
*** Bug 108176 has been marked as a duplicate of this bug. ***
Comment 11 Florian Engelhardt 2005-10-05 06:55:02 UTC
I tried to burn a dvd+ with a pioneer dvr 109 with the 1.58 firmware and
unpatched growisofs, and the same error as with the old firmware, so this bug is
still not fixed in the firmware.
Comment 12 Luis Medinas (RETIRED) gentoo-dev 2005-12-26 09:51:24 UTC
any news on this ?
Comment 13 JG 2006-02-05 04:31:06 UTC
well, news :) burning (still) doesn't work without the patch in the 5.x series of growisofs.

but i just found out that there is v6.1 and it seems to be working with that version. but i only tried to burn a video-dvd so far, not a normal data session.

the only thing is that k3b spit out: "growisofs did not exit cleanly" - but with no further info in the debugging output window.

and i got the following dmesg output:
hdc: irq timeout: status=0xd0 { Busy }
ide: failed opcode was: unknown
hdc: DMA disabled
hdc: ATAPI reset complete

i have firmware v1.58 (latest available) and gentoo-2.6.15-r1 kernel.

JG
Comment 14 Luis Medinas (RETIRED) gentoo-dev 2006-02-05 06:22:39 UTC
ok please test 6.1 version and tell us if it fixes your problem. If not i'll add the patch to 5.x series.
Comment 15 JG 2006-02-05 06:48:24 UTC
just burned a data dvd+r with v6.1 (via k3b) and it works fine :)

JG
Comment 16 Luis Medinas (RETIRED) gentoo-dev 2006-02-05 06:54:31 UTC
great i'm closing this bug and stablize 6.1 asap.