Discussion:
dvd+rw-tools: another CLOSE SESSION failed
(too old to reply)
Andrew Kotsyuba
2013-01-16 01:56:56 UTC
Permalink
Hi.

I encountered an issue when using growisofs 7.1 under debian testing.
$ growisofs -speed=4 -Z /dev/sr0 -volid "smth.1" -volset
"SMTH" -volset-size 1 -volset-seqno 1 -rational-rock -udf -iso-level
-full-iso9660-filenames ./dir-with-data
99.94% done, estimate finish Tue Jan 15 22:55:11 2013
Total translation table size: 0
Total rockridge attributes bytes: 15521
Total directory bytes: 4096
Path table size(bytes): 24
Max brk space used 23000
7029088 extents written (13728 MB)
/dev/sr0: flushing cache
/dev/sr0: closing track
/dev/sr0: closing session
:-[ CLOSE SESSION failed with SK=5h/INVALID FIELD IN CDB]:>
Input/output error /dev/sr0: reloading tray
Despite the error, the disc mounts without any problems, and all files
INQUIRY: [ASUS ][BW-12D1S-U ][E102]
Mounted Media: 41h, BD-R SRM+POW
Media ID: VERBAT/IMe
Current Write Speed: 12.0x4495=53940KB/s
Write Speed #0: 12.0x4495=53940KB/s
Write Speed #1: 10.0x4495=44950KB/s
Write Speed #2: 8.0x4495=35960KB/s
Write Speed #3: 6.0x4495=26970KB/s
Write Speed #4: 4.0x4495=17980KB/s
Write Speed #5: 2.0x4495=8990KB/s
Remaining Replacements:16843296
Remaining Map Entries: 0
Remaining Updates: 0
Disc status: appendable
Number of Sessions: 1
State of Last Session: incomplete
"Next" Track: 1
Number of Tracks: 2
Track State: partial incremental
Track Start Address: 0*2KB
Free Blocks: 0*2KB
Track Size: 7029088*2KB
Track State: invisible incremental
Track Start Address: 7029088*2KB
Next Writable Address: 7029088*2KB
Free Blocks: 5059232*2KB
Track Size: 5059232*2KB
READ CAPACITY: 12088320*2048=24756879360
And I am very confused by the content of the READ DISC INFORMATION
section. Also, there are several mentions about this error in adjacent
threads, but any solution has not been found. And I'm sure that this
error is exactly the growisofs problem — when I write the same data as
a pre-created image using cdrskin (w/ defectmgt enabled) media-info
Disc status: complete
Number of Sessions: 1
State of Last Session: complete
Number of Tracks: 1
Track State: partial incremental
Track Start Address: 0*2KB
Free Blocks: 0*2KB
Track Size: 7029088*2KB
Last Recorded Address: 7029087*2KB
READ CAPACITY: 7029088*2048=14395572224
Actually, the BD-Rs stopped being so expensive (due to LTH), so let's
find is the cause of this error.

P.S. For clarity: my Asus drive is a full clone of Pioneer BDR-206BK.

P.S.2. I still do not understand how cdrskin works when Defect
Management enabled. When I use the "blank=format_defectmgt" cdrskin
makes two separate passes: formatting and recording. In growisofs it
looks like a single pass, but it takes the same time. Which approach is
more correct?
--
To UNSUBSCRIBE, email to cdwrite-***@other.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@other.debian.org
Archive: http://lists.debian.org/***@Sora.LeMU
Thomas Schmitt
2013-01-16 08:40:07 UTC
Permalink
Hi,
Post by Andrew Kotsyuba
:-[ CLOSE SESSION failed with SK=5h/INVALID FIELD IN CDB]:>
This is indeed a known problem. Andy Polykov, the author of growisofs
once stated that it is harmless. See
http://lists.debian.org/cdwrite/2008/07/msg00092.html
But the "next 7.2 release" of growisofs did not happen yet.

libburn (under cdrskin and other programs) handles BD-R slightly
differently than growisofs does (no POW, but simply sequential writing).
I am doing daily backups with BD-R, without getting errors until
drive and medium bail out after a few hundred sessions, although
there is still room on the medium. (It seems wise to start a new
BD-R after about 300 sessions.)
Post by Andrew Kotsyuba
And I am very confused by the content of the READ DISC INFORMATION
section
Disc status: appendable
Number of Sessions: 1
State of Last Session: incomplete
"Next" Track: 1
Number of Tracks: 2
This looks ok for a BD-R which has one session written and is still
appendable.
Track number 2 is the "invisible track", which can be used for
further writing and from which the next data track will then be
cut off. After the second session, you will have a smaller invisible
track #3.
Post by Andrew Kotsyuba
using cdrskin
Thanks for flying cdrskin. :))
Post by Andrew Kotsyuba
Disc status: complete
Number of Sessions: 1
State of Last Session: complete
Number of Tracks: 1
This BD-R has one session and is closed (because you did not use
cdrskin option -multi).
Post by Andrew Kotsyuba
Actually, the BD-Rs stopped being so expensive (due to LTH), so let's
find is the cause of this error.
I still need to see a burner that reliably does a dozen sessions
on BD-R LTH. They seem to be ok for a few sessions with modern
burners. (Most honest is my old LG GGW. It refuses to touch LTH.)
Post by Andrew Kotsyuba
I still do not understand how cdrskin works when Defect Management enabled.
There are two aspects: Formatting and writing.

At formatting time you define how many spare blocks are reserved
for replacing bad blocks. If 0 blocks are reserved or if (only with
BD-R) formatting is omitted, then there can be no Defect Management
at write time.
Formatting BD-R is quick, as there can be made no assessment of
bad blocks. Formatting BD-RE can last long, if all blocks get tested.

At write time, SCSI command WRITE12 allows to choose whether Defect
Management shall actually be performed. This is not guaranteed by
the SCSI MMC specs, but obviously the drives obey the Streaming bit
of WRITE12.
By cdrskin option
stream_recording=on
you can disable Defect Management at write time.

I must state that Defect Management is not helpful in real life.
It throws errors earlier and if blocks get replaced, the read
performance goes down heavily. Even the mechanical noise of reading
such BD-R media is frightening.
I test BD-R daily in both modes. The unformatted ones always beat
the formatted ones in number of sessions and in read speed.
Not to speak of write speed which is 2 to 3 times slower than
nominal, if Defect Management is enabled.

If a BD-R is bad, then it is bad. One should not use it further,
except for testing.
Post by Andrew Kotsyuba
In growisofs it
looks like a single pass, but it takes the same time. Which approach is
more correct?
The visible difference should be mainly because growisofs and
libburn report differently to the user.
But there is an important invisible difference:

growisofs formats BD-R to Pseudo Overwrite capability. This allows
to replace old written blocks by newly written ones.
So growisofs can perform its genuine (and admirable) stunt for DVD+RW
on BD-R too. It writes a copy of the ISO 9660 superblock to the start
of the medium, so that even the dumbest operating system can find
the last session. (Solaris is said to be unable to recognize BD-R
multi-session. I would not bet on FreeBSD either.)

Except the higher technical difficulty for the drive, this approach
has the disadvantage of hiding the first session as soon as more
sessions have been added. Other than with DVD+RW or BD-RE you will
nevertheless see sessions 2 and further ones.

It would be helpful if growisofs could join the xorriso approach
to start the first session at block 32. On BD-R i would propose to
have a track 1 of only 32 blocks for the superblock copy, and to
start the first data session in track 2. This way, its superblock
would survive the copying after further sessions. It would stay
mountable by mount option sbsector=32 (resp. where track 2 starts).


Have a nice day :)

Thomas
--
To UNSUBSCRIBE, email to cdwrite-***@other.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@other.debian.org
Archive: http://lists.debian.org/***@scdbackup.webframe.org
Loading...