LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Fatal input/output error when writing blu ray discs in k3b (https://www.linuxquestions.org/questions/linux-software-2/fatal-input-output-error-when-writing-blu-ray-discs-in-k3b-4175425204/)

Mountain Man 09-01-2012 08:11 PM

3 Attachment(s)
I'm trying to archive data to blu ray discs as an added archive/backup. These are mostly photos and videos of the family and I don't want to risk losing them, especially the ones of our kids.

K3b version 2.02 on Ubuntu 11.10
Drive is a Lite-on IHBS112-04

I've never burned a blu ray disc in linux without errors going back to when I built this system back in December. I think I had some problem media because I was getting "the LUN appears to be stuck writing" errors in the debug output so I picked up some Kodak media. This looks good and I have some Verbatim on the way from newegg. Unfortunately while the new media works better (I no longer get the lun stuck writing errors, I'm getting this new error. k3b nearly finishes writing and at the very end (99%) says:

Quote:

Fatal error during recording": Input/output error
However, when I open the debug file I don't see an error (debug file attached as multiple parts).

Also, dvdisaster reads the disc and all sectors come back green, and doing a file comparison of the contents with

Code:

diff -r -q [source folder]  [mounted disc]
it comes back without finding any errors.

I've attached a picture of the k3b dialog box and I've broken the debug file into six parts because it is too big for LQ to allow as an attachment. I've attached the first two, and will attach the last four on a follow on comment. I hadn't noticed how long the debug file is (a little over 1mb as a text file) so maybe that is an indicator of the problem.

Does anyone have any suggestions?

Mountain Man 09-01-2012 08:34 PM

3 Attachment(s)
Attached are parts 3-5 of the debug file. I'll do another reply with the last part, but I'm not sure it is the true ending of the file. I noticed that my text editor stops at line 21095, so maybe this is just as far as the editor could read.

Mountain Man 09-01-2012 08:36 PM

1 Attachment(s)
Here is the final part of the log file, with the caveat that my text editor may not have loaded the entire thing.


Edit: I opened the file with nano and it showed the same ending line so it doesn't look like gedit was truncating it after all.

Mountain Man 09-02-2012 12:43 PM

Looking at this further, I'm not sure there is an actual write error. From the end of the debug file, the disc was written 100%. There isn't an error, but the last operations look like an attempt to determine the size of the created disc. It makes me wonder if this isn't what is failing:

Quote:

99.98% done, estimate finish Sat Sep 1 18:46:54 2012
=== last message repeated 2 times. ===
99.99% done, estimate finish Sat Sep 1 18:46:54 2012
=== last message repeated 2 times. ===
100.00% done, estimate finish Sat Sep 1 18:46:55 2012
Total translation table size: 0
Total rockridge attributes bytes: 121896
Total directory bytes: 225742
Path table size(bytes): 332
Max brk space used 12e000
10588674 extents written (20681 MB)

mkisofs calculate size command:
-----------------------
/usr/bin/genisoimage -gui -graft-points -print-size -quiet -volid picvid2010p1of2 -volset -appid K3B THE CD KREATOR (C) 1998-2010 SEBASTIAN TRUEG AND MICHAL MALEK -publisher -preparer -sysid LINUX -volset-size 1 -volset-seqno 1 -sort /tmp/kde-mountainman/k3bJw3302.tmp -rational-rock -hide-list /tmp/kde-mountainman/k3bUw3302.tmp -joliet -joliet-long -hide-joliet-list /tmp/kde-mountainman/k3byV3302.tmp -no-cache-inodes -full-iso9660-filenames -iso-level 3 -path-list /tmp/kde-mountainman/k3bNy3302.tmp

mkisofs command:
-----------------------
/usr/bin/genisoimage -gui -graft-points -volid picvid2010p1of2 -volset -appid K3B THE CD KREATOR (C) 1998-2010 SEBASTIAN TRUEG AND MICHAL MALEK -publisher -preparer -sysid LINUX -volset-size 1 -volset-seqno 1 -sort /tmp/kde-mountainman/k3bQV3302.tmp -rational-rock -hide-list /tmp/kde-mountainman/k3bFn3302.tmp -joliet -joliet-long -hide-joliet-list /tmp/kde-mountainman/k3bmu3302.tmp -no-cache-inodes -full-iso9660-filenames -iso-level 3 -path-list /tmp/kde-mountainman/k3bTP3302.tmp
I tried just creating an iso image with k3b first with another data set. The iso image created fine and is 21.4 GB (21,380,579,328 bytes) on the disk. Then I tried to write it to a 25 GB blu ray BD-R disc, and k3b gave me a "Waiting for Disk - K3b" dialog box:

Quote:

Found medium: Empty BD-R medium

Please insert an empty medium of size 19.9 GiB or larger into drive.

ATAPI iHBS112 2 (/dev/sr0)
If I cancel that out and right click on the empty BD-R medium in the k3b gui, it shows the disc is large enough:

Quote:

Type: BD-R Sequential (SRM)
Capacity: 2715:25:17 min (23.3 GiB)
Rewritable: no
Appendable: no
Empty: yes
Layers: 1
Sessions: 0
Supported writing speeds: 10.0x (44950 KB/s)
Doing some more searching it looks like the original issue I described (fatal error at the end of the burn) has been around for quite some time. K3b claims to have fixed this quite some time ago.

I'm not sure what to make of all of this. Is anyone here able to burn Blu Ray discs in linux without the problems I'm running into?

Mountain Man 09-03-2012 05:55 PM

After some more searching I'm thinking that blu ray data recording isn't something that is solid on linux yet. I found this thread on ubuntu forums which is from March of 2011 asking if anyone had a configuration that worked. This is over a year ago, but the latest version of k3b was released in January of 2011. On the bright side I downloaded nero 4 for linux and it is working very nicely.

For anyone who finds this thread and is troubleshooting a similar problem here is some more information. I tried creating an iso image using K3b and then burning it from the command line using genisoimage. The burning process worked until it went to close the session. Here is the last part of the output:

Quote:

21102067712/21171226624 (99.7%) @3.6x, remaining 0:04 RBU 100.0% UBU 65.1%
21150433280/21171226624 (99.9%) @3.2x, remaining 0:01 RBU 62.0% UBU 48.9%
builtin_dd: 10337520*2KB out @ average 3.3x4390KBps
/dev/scd0: flushing cache
/dev/scd0: closing track
/dev/scd0: closing session
:-[ CLOSE SESSION failed with SK=5h/INVALID FIELD IN CDB]: Input/output error
The disc is still readable, I'm guessing because I'm reading it from a recorder. It passed a compare pass with diff like I used above, and dvdisaster also passed it. This makes me think the k3b error is occuring when it tries to close the session and that all of the discs I wrote with that are unclosed. Since the drive can still read them it probably isn't a huge problem but I'm going to reburn them with Nero anyway. Fortunately I can still burn them in linux.

Also, I want to put a plug in for dvdisaster. By graphing out the read performance by sector it lets you know if you have areas of the burn which had problems. Just because the drive can read a problem sector doesn't mean you want to put it away and call it archived. It spotted a problem area on one disc and I was able to reburn it and probably avoid a problem down the road. This plus the ability to create an extra checksum file for possible recovery down the road is a very nice feature for what I'm doing.


All times are GMT -5. The time now is 11:02 PM.