[Pkg-libburnia-devel] Bug#617409: brasero: Brasero corrupts all blank CD-R when burning

Simon Wenner simon.wenner at gmail.com
Sat Jul 7 15:36:10 UTC 2012


Hi

On 06.07.2012 20:18, Thomas Schmitt wrote:
>> But anyway, I updated to brasero 3.4.1 and I can still reproduce the bug.
> How did you do that ? My squeeze only fetches 2.30.3.
I'm running Wheezy (testing). The version diff to unstable is very small.

>> [22796.601067] sr 0:0:0:0: [sr0] CDB: Read(10): 28 00 00 00 00 02 00 00 02 00
>> [22796.605520] sr 0:0:0:0: [sr0]  Sense Key : Not Ready [current]
>> [22796.605525] sr 0:0:0:0: [sr0]  Add. Sense: Medium not present
> The medium is bad. At least after having been written.
> The drive does not even acknowledge its existence.
>
>
> What do you get from this command while the bad medium is in /dev/sr0 ?
>
>   xorriso -outdev /dev/sr0 -toc
>
> Maybe it is still blank and usable. We'll see.
>
Neither Brasero, Nautilus or K3B recognizes the CD as blank. I created a
new CD-RW a small number of pdf files on it. It can not be read.

simon at beutelteufel:~$ xorriso -outdev /dev/sr0 -toc
xorriso 1.2.2 : RockRidge filesystem manipulator, libburnia project.

xorriso : NOTE : Disc status unsuitable for writing
Drive current: -outdev '/dev/sr0'
Media current: CD-RW
Media status : is written , is closed
Media summary: 1 session, 3822 data blocks, 7644k data,     0 free
Drive current: -outdev '/dev/sr0'
Drive type   : vendor 'PLEXTOR' product 'DVDR PX-800A' revision '1.00'
Media current: CD-RW
Media product: 97m10s00f/79m59s74f , TDK / Ritek
Media status : is written , is closed
Media blocks : 3822 readable , 0 writable , 359847 overall
TOC layout   : Idx ,  sbsector ,       Size , Volume Id
Other session:   1 ,         0 ,      3820s ,
Media summary: 1 session, 3822 data blocks, 7644k data,     0 free
>
> Let's try to just burn one directory to CD with MD5 checksums.
> This here has the right size:
>   $ du -s /usr/bin
>   230980  /usr/bin
du -s /usr/bin
596872    /usr/bin

>   $ xorriso -md5 on -outdev /dev/sr0 -map /usr/bin /usr/bin
>
> This will fail if the medium is not blank.
> For CD-RW you may let xorriso decide whether to blank before burning.
>
>   $ xorriso -md5 on -outdev /dev/sr0 \
>             -blank as_needed \
>             -map /usr/bin /usr/bin
>
> Burning happens automatically when the program is about to end.
simon at beutelteufel:~$ xorriso -md5 on -outdev /dev/sr0 \
>             -blank as_needed \
>             -map /usr/bin /usr/bin
xorriso 1.2.2 : RockRidge filesystem manipulator, libburnia project.

xorriso : NOTE : Disc status unsuitable for writing
Drive current: -outdev '/dev/sr0'
Media current: CD-RW
Media status : is written , is closed
Media summary: 1 session, 3822 data blocks, 7644k data,     0 free
Beginning to blank medium in mode 'fast'.
xorriso : UPDATE : Blanking  ( 1.0% done in 1 seconds )
xorriso : UPDATE : Blanking  ( 1.0% done in 2 seconds )
xorriso : UPDATE : Blanking  ( 3.1% done in 3 seconds )
xorriso : UPDATE : Blanking  ( 5.2% done in 4 seconds )
xorriso : UPDATE : Blanking  ( 5.2% done in 5 seconds )
xorriso : UPDATE : Blanking  ( 7.9% done in 6 seconds )
xorriso : UPDATE : Blanking  ( 10.0% done in 7 seconds )
xorriso : UPDATE : Blanking  ( 12.3% done in 8 seconds )
xorriso : UPDATE : Blanking  ( 14.3% done in 9 seconds )
xorriso : UPDATE : Blanking  ( 16.8% done in 10 seconds )
xorriso : UPDATE : Blanking  ( 18.9% done in 11 seconds )
xorriso : UPDATE : Blanking  ( 21.0% done in 12 seconds )
xorriso : UPDATE : Blanking  ( 22.9% done in 13 seconds )
xorriso : UPDATE : Blanking  ( 25.0% done in 14 seconds )
xorriso : UPDATE : Blanking  ( 27.1% done in 15 seconds )
xorriso : UPDATE : Blanking  ( 29.4% done in 16 seconds )
xorriso : UPDATE : Blanking  ( 31.4% done in 17 seconds )
xorriso : UPDATE : Blanking  ( 33.5% done in 18 seconds )
xorriso : UPDATE : Blanking  ( 35.6% done in 19 seconds )
xorriso : UPDATE : Blanking  ( 37.7% done in 20 seconds )
xorriso : UPDATE : Blanking  ( 39.8% done in 21 seconds )
xorriso : UPDATE : Blanking  ( 41.9% done in 22 seconds )
xorriso : UPDATE : Blanking  ( 44.0% done in 23 seconds )
xorriso : UPDATE : Blanking  ( 46.0% done in 24 seconds )
xorriso : UPDATE : Blanking  ( 48.1% done in 25 seconds )
xorriso : UPDATE : Blanking  ( 50.2% done in 26 seconds )
xorriso : UPDATE : Blanking  ( 52.3% done in 27 seconds )
xorriso : UPDATE : Blanking  ( 54.4% done in 28 seconds )
xorriso : UPDATE : Blanking  ( 56.5% done in 29 seconds )
xorriso : UPDATE : Blanking  ( 58.5% done in 30 seconds )
xorriso : UPDATE : Blanking  ( 60.6% done in 31 seconds )
xorriso : UPDATE : Blanking  ( 62.7% done in 32 seconds )
xorriso : UPDATE : Blanking  ( 64.8% done in 33 seconds )
xorriso : UPDATE : Blanking  ( 66.9% done in 34 seconds )
xorriso : UPDATE : Blanking  ( 69.0% done in 35 seconds )
xorriso : UPDATE : Blanking  ( 71.1% done in 36 seconds )
xorriso : UPDATE : Blanking  ( 73.1% done in 37 seconds )
xorriso : UPDATE : Blanking  ( 75.4% done in 38 seconds )
xorriso : UPDATE : Blanking  ( 77.5% done in 39 seconds )
xorriso : UPDATE : Blanking  ( 79.6% done in 40 seconds )
xorriso : UPDATE : Blanking  ( 81.7% done in 41 seconds )
xorriso : UPDATE : Blanking  ( 83.8% done in 42 seconds )
xorriso : UPDATE : Blanking  ( 85.9% done in 43 seconds )
xorriso : UPDATE : Blanking  ( 87.9% done in 44 seconds )
xorriso : UPDATE : Blanking  ( 90.0% done in 45 seconds )
xorriso : UPDATE : Blanking  ( 92.1% done in 46 seconds )
xorriso : UPDATE : Blanking  ( 94.2% done in 47 seconds )
xorriso : UPDATE : Blanking  ( 96.3% done in 48 seconds )
xorriso : UPDATE : Blanking  ( 98.4% done in 49 seconds )
xorriso : UPDATE : Blanking  ( 99.0% done in 50 seconds )
xorriso : UPDATE : Blanking  ( 99.0% done in 51 seconds )
xorriso : UPDATE : Blanking  ( 99.0% done in 52 seconds )
xorriso : UPDATE : Blanking  ( 99.0% done in 53 seconds )
xorriso : UPDATE : Blanking  ( 99.0% done in 54 seconds )
xorriso : UPDATE : Blanking  ( 99.0% done in 55 seconds )
xorriso : UPDATE : Blanking  ( 99.0% done in 56 seconds )
xorriso : UPDATE : Blanking  ( 99.0% done in 57 seconds )
xorriso : UPDATE : Blanking  ( 99.0% done in 58 seconds )
xorriso : UPDATE : Blanking  ( 99.0% done in 59 seconds )
xorriso : UPDATE : Blanking  ( 99.0% done in 60 seconds )
Blanking done
xorriso : NOTE : Re-assessing -outdev '/dev/sr0'
Drive current: -outdev '/dev/sr0'
Media current: CD-RW
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data,  703m free
xorriso : UPDATE : 2998 files added in 1 seconds
Added to ISO image: directory '/usr/bin'='/usr/bin'
xorriso : UPDATE : Thank you for being patient. Working since 0 seconds.
xorriso : UPDATE : Thank you for being patient. Working since 1 seconds.
xorriso : UPDATE : Thank you for being patient. Working since 2 seconds.
xorriso : UPDATE : Writing:        320s    0.1%   fifo 100%  buf 100%   
4.3xC
xorriso : UPDATE : Writing:        320s    0.1%   fifo 100%  buf 100%   
0.0xC
xorriso : UPDATE : Writing:        320s    0.1%   fifo 100%  buf 100%   
0.0xC
xorriso : UPDATE : Writing:        320s    0.1%   fifo 100%  buf 100%   
0.0xC
xorriso : UPDATE : Writing:        320s    0.1%   fifo 100%  buf 100%   
0.0xC
xorriso : UPDATE : Writing:        320s    0.1%   fifo 100%  buf 100%   
0.0xC
xorriso : UPDATE : Writing:        320s    0.1%   fifo 100%  buf 100%   
0.0xC
xorriso : UPDATE : Writing:        320s    0.1%   fifo 100%  buf 100%   
0.0xC
...
xorriso : UPDATE : Writing:     297754s  100.0%   fifo   0%  buf 100%   
0.0xC
xorriso : UPDATE : Writing:     297754s  100.0%   fifo   0%  buf 100%   
0.0xC
xorriso : UPDATE : Writing:     297754s  100.0%   fifo   0%  buf 100%   
0.0xC
xorriso : UPDATE : Writing:     297754s  100.0%   fifo   0%  buf 100%   
0.0xC
xorriso : UPDATE : Thank you for being patient. Working since 1082 seconds.
xorriso : UPDATE : Thank you for being patient. Working since 1083 seconds.
xorriso : UPDATE : Thank you for being patient. Working since 1084 seconds.
xorriso : UPDATE : Thank you for being patient. Working since 1085 seconds.
ISO image produced: 297604 sectors
Written to medium : 297754 sectors at LBA 0
Writing to '/dev/sr0' completed successfully.


> This is supposed to copy /usr/bin from disk to /usr/bin on the CD-RW.
> You may then checkread with the recorded MD5s
>
>   $ xorriso -md5 on -indev /dev/sr0 \
>             -check_md5_r FATAL /usr/bin --
>
> Or compare directly with the disk directory
>
>   $ xorriso -indev /dev/sr0 \
>             -compare_r /usr/bin /usr/bin
simon at beutelteufel:~$ xorriso -indev /dev/sr0 \
>             -compare_r /usr/bin /usr/bin
xorriso 1.2.2 : RockRidge filesystem manipulator, libburnia project.

xorriso : NOTE : Loading ISO image tree from LBA 0
xorriso : UPDATE : 10 nodes read in 2 seconds
xorriso : UPDATE : 3000 nodes read in 2 seconds
Drive current: -indev '/dev/sr0'
Media current: CD-RW
Media status : is written , is appendable
Media summary: 1 session, 297754 data blocks,  582m data, 99.0m free
Volume id    : 'ISOIMAGE'
xorriso : UPDATE :  578.5m content bytes read in 994 seconds = 4.0xC
Both file objects match as far as expectable.

> Before mounting the medium you should eject and manually reload.
> This is to let the CD-ROM driver learn about the new state of the medium.
>
> You can let xorriso burn and eject by having as its last command
>              -commit_eject all
>
> You can combine burn, checkread and eject.
> Command -commit triggers an intermediate burn. There will be no final
> burn because there will be no image changes pending after the checkread.
>
>   $ xorriso -md5 on -outdev /dev/sr0 \
>             -blank as_needed \
>             -map /usr/bin /usr/bin \
>             -commit \
>             -check_md5_r FATAL /usr/bin -- \
>             -md5 off \
>             -compare_r /usr/bin /usr/bin \
>             -eject all
>  
> For the case of MD5 mismatch, -check_md5_r is set to throw a "FATAL" error
> and thus to abort the program run immediately. The tray will not eject in
> this case.
> The command
>             -check_md5_r SORRY /usr/bin -- \
> would not abort the program run in case of mismatch.

xorriso seems to work as expected.

Cheers
Simon



More information about the Pkg-libburnia-devel mailing list