[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: growisofs WRITE@LBA=230540h error blanking DVD+RW media



Hi,

>     C:\dvdtt>growisofs -Z e:=/dev/zero
>     :-[ WRITE@LBA=230540h failed with SK=5h/ASC=21h/ACQ=02h]

>From http://www.t10.org/ftp/t10/drafts/mmc5/mmc5r03c.pdf :
  5 21 02 INVALID ADDRESS FOR WRITE
WRITE@LBA=230540h is decimal block address 2295104 (if i did
the computing right this time).
This is exactly the capacity obtained by command  dvd+rw-mediainfo . 

> READ CAPACITY:          2295104*2048=4700372992

So writing just reached the end of the media and failed
rightously.

> :-[ CLOSE SESSION failed with SK=2h/ASC=04h/ACQ=07h]

With DVD+RW media this sudden end is not supposed to do harm.
The media should be readable and writeable afterwards. (With
other media types there could be essential finalization
activities missing.)


To avoid that message i would restrict input to the
maximum permissible capacity.
On a Linux system that would be this command pipe:

  dd if=/dev/zero bs=2048 count=2295104 | \
  growisofs -Z /dev/sr0=/dev/fd/0

where "/dev/sr0" is the drive address and "/dev/fd/0"
is the pseudo-device which delivers standard input.
You will have to find out its equivalent on your
operating system.
(Maybe growisofs recognizes that address and uses
stdin instead. There is a line in growisofs.c which
invites for a try even on systems which don't have
a device file /dev/fd/0 :
  if (sscanf(in_image,"/dev/fd/%u",&imgfd) == 1)
)


BTW: You are aware that "blanking" DVD+RW is not
needed for rewriting this type of media ?
It is only a privacy measure to make old content
hard to read. (Beware: it's not totally unreadable
afterwards. At least not for forensic experts.)


Have a nice day :)

Thomas

 



Reply to: