| Summary: | growisofs -Z is unable to write over a non-blank DVD-RW media, one gets a bunch of different errors (workaround: dvd+rw-format /dev/sr0 -blank=full) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Reartes Guillermo <rtguille> |
| Component: | dvd+rw-tools | Assignee: | Honza Horak <hhorak> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | gansalmon, hhorak, itamar, jonathan, kernel-maint, madhu.chinakonda |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | dvd+rw-tools-7.1-11.fc19 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-09-18 09:54:50 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Attachments: | |||
|
Description
Reartes Guillermo
2012-04-09 11:11:44 UTC
Created attachment 576181 [details]
blkparse (human text readable) output mashita drive (first)
Created attachment 576185 [details]
blkparse (human text readable) output TEAC drive (second)
Created attachment 576186 [details]
blkparse (human text readable) output mashita drive (third)
Created attachment 576187 [details]
blkparse (human text readable) output mashita drive (fourth)
Created attachment 576190 [details]
f16 messages
this test starts at 2012-04-08 @ 22:26
some errors can be seen on the messages
This thread seems to be relevant to some extent (i still reading it): http://www.mail-archive.com/cdwrite@other.debian.org/msg12357.html Thanks for the report. Actually, there have been several bugs related to burning DVDs recently (bug #810832, bug #810483), which seem actually similar to each other and this one. Since dvd+rw-tools haven't changed until last week, I'd like to ask kernel hackers, if they can take a look at this issue. Could it be a bug in kernel? Wasn't there some change there recently that can trigger it? I asked the reporter to test older kernel build in bug #810832 and do the same here. @Honza Horak I am revisiting this issue. It has been a while since the last update. Sadly, the issue is still there. F17: dvd+rw-tools.x86_64 7.1-9.fc17 F16: dvd+rw-tools.x86_64 7.1-9.fc16 I am still unable to burn a DVD-RW twice. # growisofs -Z /dev/sr0 -R -J /foo After executing that command, i must execute: # dvd+rw-format /dev/sr0 -blank=full And then perform the second write: # growisofs -Z /dev/sr0 -R -J /foo This behavior is different from DVD+RW (which works ok). If i try to burn an NON BLANK DVD-RW, the command fails with different errors. I will soon attach a calc file with the performed test matrix and the issue matrix. (each error message has an issue id). I was surprised by how many different errors i was getting on very similar actions. Also keep in mind that i still not tested any -M (appendable) variant for now. So far i tested two DVD-RW brands, three different writers on different systems with different fedora versions. And i plan to test more than that, but it will take time. I do not performed any blktraces for now. Created attachment 604926 [details]
Calc file, performed test matrix and issue matrix
Very brief snippet of the errors i get when i try to write the second time:
SK=5h/ILLEGAL MODE FOR THIS TRACK
SK=5h/INVALID ADDRESS FOR WRITE
SK=3h/PROGRAM MEMORY AREA UPDATE FAILURE
SK=2h/CANNOT WRITE MEDIUM - INCOMPATIBLE FORMAT
SK=3h/POWER CALIBRATION AREA ERROR
I have found this URL: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-dvds.html And it says: A DVD-RW accepts two disc formats: the incremental sequential one and the restricted overwrite. By default DVD-RW discs are in sequential format. A virgin DVD-RW can be directly written without the need of a formatting operation, however a non-virgin DVD-RW in sequential format needs to be blanked before to be able to write a new initial session. ~~~~~~ I does make some sense, but if that is so, some action is still needed because: * growisofs manpage barely mentions DVD-RW. It mentions restricted overwrite but it does not mention incremental sequential. * dvd+rw format does not have a man page. * growisofs still throws different types of errors instead of the same one. If the above is true, the i expect growisofs tho fail always the same. Change a DVD-RW to restricted overwrite: If the disk is NOT BLANK: # dvd+rw-format /dev/sr0 -blank=full Then, when the disk is BLANK: # dvd+rw-format /dev/sr0 -force To change back to incremental sequential: # dvd+rw-format /dev/sr0 -blank=full In restricted overwrite, a DVD-RW worked as expected. * a man page should be created for dvd+rw-format * growisofs man page should be modified to include DVD-RW two modes. By only naming one, on must conclude (erroneously) that there is only one mode and it is used like a DVD+RW. And if one looks at the man page / help of dvd+rw-format it is empty. By naming the two, at least it is made explicit the existence of them and the fact that one might change from one to the other. * why does growisofs throws such a variety of different errors instead of one concise error? There might be some issue error, even if it is an improper usage. Cheers. Reartes, thanks for the analysis and info provided. I've just started to write dvd+rw-format man page and I'm going to fix growisofs in a way that it prints a sane error and exits in case medium is in sequential mode and we use growisofs -Z option. Created attachment 606260 [details]
Proposed patch that adds man page and prints error in case writing is not possible
This patch adds man page for dvd+rw-format and prints error in case DVD-RW in Sequential mode is already written and -Z is used.
Created attachment 606268 [details]
Human read-able man page for dvd+rw-format
This is a plain text format of the man page for dvd+rw-format, that I'm going to add to Fedora in few days. I've sent the same patch also to upstream, but except some volunteers' comments it seems the upstream is not active any more.
Any comments to patch/man page welcome.
New man page for dvd+rw-format is included in already built dvd+rw-tools-7.1-11.fc19 and an error is printed in case we want to write already written DVD-RW in Sequential Recording mode. |