Re: dvd+rw-tools: growisofs exit code
Andy Polyakov wrote:
[..snip..]
2509078528/3691623424 (68.0%) @0.0x, remaining 14:45
...
2509078528/3691623424 (68.0%) @0.0x, remaining 14:53
:-[ WRITE@LBA=12b1b0h failed with SK=5h/ASC=21h/ACQ=02h]: Invalid argument
builtin_dd: 1225136*2KB out
:-( write failed: Invalid argument
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The exit status seemed not to signal the error.
Please clarify following. Is the exit status the only thing you want to
report and discuss?
Yes. For present purposes. Here is the section of bash:-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if
! $burner $burner_opt ${mount_device}=$container;
then
read -p "Failure! Press enter to try again: " ;
rewrite_dvd
fi
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
where $burner=growisofs etc.
I find that growisofs fails like this rarely on DVD-RWs. Retrying
succeeds (I assume that it could fail again, but the probability is so
low that I haven't seen that).
Basically I wonder how come recording was hanging
@0.0x for some time prior failing with depicted code. But if you know
why and for any particular reason don't want to share it, I can respect
that. In which case just confirm that the only thing you genuinely
interested in is exit status from growisofs in similar situation.
My immediate interest is getting reliable backups by retrying
automatically even with bad media. So I want my script to see the
failure and not throw away 4.3Gb of data! Hence my overriding interest
in the exit code as the first priority.
Of course, I am also interested in why these failures happen
occasionally on good media.
Here is dvd+rw-mediainfo on the disc that failed, *after* a second
successful write of the same data (manual intervention):-
dvd+rw-mediainfo /dev/dvd
INQUIRY: [PIONEER ][DVD-RW DVR-105 ][1.33]
GET [CURRENT] CONFIGURATION:
Mounted Media: 14h, DVD-RW Sequential
Media ID: PRINCO
Current Write Speed: 1.0x1385=1385KB/s
Write Speed #0: 1.0x1385=1385KB/s
GET PERFORMANCE:
Speed Descriptor#0: 00/2298495 Reading@1.0x Writing@1.0x
READ DVD STRUCTURE[#0h]:
Media Book Type: 32h, DVD-RW book [revision 2]
Legacy lead-out at: 1802560*2KB=3691642880
READ DISC INFORMATION:
Disc status: complete
Number of Sessions: 1
State of Last Session: complete
Number of Tracks: 1
READ TRACK INFORMATION[#1]:
Track State: complete
Track Start Address: 0*2KB
Free Blocks: 0*2KB
Track Size: 1802560*2KB
Last Recorded Address: 1802559*2KB
FABRICATED TOC:
Track#1 : 14@0
Track#AA : 14@1802560
Multi-session Info: #1@0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Verbose version:-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dvd+rw-mediainfo /dev/dvd verbose
INQUIRY: [PIONEER ][DVD-RW DVR-105 ][1.33]
MODE SENSE[#3Fh]:
01: 00 03 00 00 00 00 00 00 00 00
05: 60 c7 08 10 00 00 00 00 00 00 00 00 00 96 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00
08: 04 00 00 00 00 00 00 00 00 00
0E: 04 00 00 00 00 4b 01 ff 02 ff 00 00 00 00
1A: 00 03 00 00 02 58 00 00 12 c0
1D: 00 00 00 00 00 78 15 18
2A: 1f 17 f1 63 29 23 20 76 01 00 07 d0 20 76 00 00
05 69 05 69 00 01 00 00 00 00 05 69 00 01 00 00
05 69 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00
MODE SENSE[#2A]:
2A: 1f 17 f1 63 29 23 20 76 01 00 07 d0 20 76 00 00
05 69 05 69 00 01 00 00 00 00 05 69 00 01 00 00
05 69 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00
GET [CURRENT] CONFIGURATION:
0000: 00 14 01 00 00 13 01 00 00 11 01 00 00 10 01 00
00 0a 00 00 00 09 00 00 00 08 00 00
0001: 00 00 00 02
0002: 00 00 00 00
0003: 29 00 00 00
0004: 02 00 00 00
0010: 00 00 08 00 00 10 01 00
001F:
0021: 01 00 00 01 00 01 10 00
0023:
0100:
0105:
0108: 42 4c 44 4c 31 33 35 37 36 39 57 4c 20 20 20 20
Mounted Media: 14h, DVD-RW Sequential
READ DVD STRUCTURE[#0eh]: 00 42 00 00 01 40 d6 fd 9e d8 20 00 02
0d 07 05
88 76 09 00 03 50 52 49 4e 43 4f 00 04 00 00 00 00 00 00 00 05 0b ac 76
0c 00 00 00
Media ID: PRINCO
Current Write Speed: 1.0x1385=1385KB/s
Write Speed #0: 1.0x1385=1385KB/s
GET PERFORMANCE:
Speed Descriptor#0: 00/2298495 Reading@1.0x Writing@1.0x
READ DVD STRUCTURE[#FF]:
STRUCTURE#00 40:2052
STRUCTURE#01 40:8
STRUCTURE#02 00:2052
STRUCTURE#03 00:192
STRUCTURE#04 c0:2052
STRUCTURE#05 c0:8
STRUCTURE#0c 00:30724
STRUCTURE#0d 40:32776
STRUCTURE#0e 40:68
STRUCTURE#0f c0:22
STRUCTURE#c0 c0:8
READ DVD STRUCTURE[#FF]:
STRUCTURE#00 40:2052
STRUCTURE#01 40:8
STRUCTURE#02 00:2052
STRUCTURE#03 00:192
STRUCTURE#04 c0:2052
STRUCTURE#05 c0:8
STRUCTURE#0c 00:30724
STRUCTURE#0d 40:32776
STRUCTURE#0e 40:68
STRUCTURE#0f c0:22
STRUCTURE#c0 c0:8
READ DVD STRUCTURE[#0h]: 32 02 02 00 00 03 00 00 00 1e 81 3f 00
00 00 00
Media Book Type: 32h, DVD-RW book [revision 2]
Legacy lead-out at: 1802560*2KB=3691642880
READ DISC INFORMATION: 00 20 1e 01 01 01 01 20 00 00 00 00 00 00 00 00
Disc status: complete
Number of Sessions: 1
State of Last Session: complete
Number of Tracks: 1
READ FORMAT CAPACITIES:
formatted: 1802560*2048=3691642880
00h(800): 2297888*2048=4706074624
10h(10): 2297888*2048=4706074624
15h(10): 2297888*2048=4706074624
READ TRACK INFORMATION[#1]: 00 22 01 01 00 04 01 02 00 00 00 00 00
00 00 00
Track State: complete
Track Start Address: 0*2KB
Free Blocks: 0*2KB
Track Size: 1802560*2KB
Last Recorded Address: 1802559*2KB
FABRICATED TOC: 18 1 1
Track#1 : 14@0
Track#AA : 14@1802560
Multi-session Info: #1@0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I have seen similar failures (I can't swear to the same error code) on
another machine using a Pioneer DVD-104 drive - with the latest firmware.
Of course, I would love both problems to be solved, but I can't afford
to have bad backups, so my priority is to work around failures, although
I would prefer if they did not happen :-)
You have the right to expect non zero code, but it apparently doesn't do
that...
Hope I got my bash right :-)
Well, must be a bug and I'll look into it, but [unfortunately]
not right away. Confirm that presented above are really *last* lines
from growisofs. A.
Those were the last lines displayed when run from within the script. As
you saw it burned successfully at the right 1x speed for something like
45 minutes. I just erased the offending disc manually with
dvd+rw-format and reran the same growisofs also manually. With success
as you saw.
Hope this is useful. Thanks for all your magnificant work.
Adrian Lawrence
Reply to: