Bug 131182 - fails to write DVD+RW with "wrong medium type" error
Summary: fails to write DVD+RW with "wrong medium type" error
Status: RESOLVED UNMAINTAINED
Alias: None
Product: k3b
Classification: Applications
Component: Burning/Hardware (show other bugs)
Version: 0.12.x
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Trueg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-21 20:49 UTC by Francois Marier
Modified: 2010-03-16 15:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
k3b version 0.12.17.dvd-rw media rewrite fail (847 bytes, text/plain)
2006-08-23 22:57 UTC, Gerry Cocco
Details
k3v version 1.12.17 dvd-rw firstuse of media - OK (28.50 KB, text/plain)
2006-08-23 22:59 UTC, Gerry Cocco
Details
k3b version .17 dvd+-rw firstuse - FAIL (1.51 KB, text/plain)
2006-08-23 23:00 UTC, Gerry Cocco
Details
k3b .17 cd-rw firstuse FAILl (2.08 KB, text/plain)
2006-08-23 23:02 UTC, Gerry Cocco
Details
Upgraded to dvd+rw_6.1 burned DVD+RW fails (3.25 KB, text/plain)
2006-08-24 13:35 UTC, Gerry Cocco
Details
Upgraded to dvd+rw_6.1 burned DVD+R - OK (28.54 KB, text/plain)
2006-08-24 13:38 UTC, Gerry Cocco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Marier 2006-07-21 20:49:30 UTC
Version:           0.12.16 (using KDE KDE 3.5.3)
Installed from:    Debian testing/unstable Packages
OS:                Linux

Christopher J Peikert <cpeikert@MIT.EDU> reported the following on the Debian bug tracker (http://bugs.debian.org/378051):

I have a Sony DRU-820A unit, with which I can successfully burn DVD+RW's
from the command line (with growisofs), but not with K3B.  As far as I can
tell, this might be a K3B bug, but I cannot tell for sure.

(I was using K3B with no problems with a DRU-800A, but the drive conked out
on me and the 820A is what Sony sent back to me.)

Here is the situation:

Using both Memorex and Philips DVD+RW discs, I can burn successfully as
follows:

% growisofs -Z /dev/cdrom -R -J <files_to_burn>

The discs burn quickly (at approx 4x) and without incident.  I am able to
mount and read the burned disc successfully.

Under K3B, here is what happens, even with the "officially supported"
Philips discs (and Memorex always worked before with my 800A):

Choose "burn", on-the-fly, either auto or no multisession, other options
default.

Drive starts to spin up, then slows down, repeats this a couple times, then
I get a "media type unsupported" error.  The debugging output is pasted
at the end of this report.

After this failed attempt, here is the output of dvd+rw-mediainfo:

INQUIRY:                [SONY    ][DVD RW DRU-820A ][1.0a]
GET [CURRENT] CONFIGURATION:
 Mounted Media:         1Ah, DVD+RW
 Media ID:              PHILIPS/041
 Current Write Speed:   4.0x1385=5540KB/s
 Write Speed #0:        4.0x1385=5540KB/s
 Write Speed #1:        2.4x1385=3324KB/s
 Speed Descriptor#0:    00/2295103 R@3.5x1385=4817KB/s W@4.0x1385=5540KB/s
 Speed Descriptor#1:    00/2295103 R@3.5x1385=4817KB/s W@2.4x1385=3324KB/s
READ DVD STRUCTURE[#0h]:
 Media Book Type:       92h, DVD+RW book [revision 2]
 Legacy lead-out at:    265696*2KB=544145408
READ DISC INFORMATION:
 Disc status:           complete
 Number of Sessions:    1
 State of Last Session: complete
 Number of Tracks:      1
 BG Format Status:      suspended
READ TRACK INFORMATION[#1]:
 Track State:           complete incremental
 Track Start Address:   0*2KB
 Free Blocks:           0*2KB
 Fixed Packet Size:     16*2KB
 Track Size:            2295104*2KB
FABRICATED TOC:
 Track#1  :             17@0
 Track#AA :             17@2295104
 Multi-session Info:    #1@0
READ CAPACITY:          2295104*2048=4700372992

---- k3b debugging output starts here ------

System
-----------------------
K3b Version: 0.12.16

KDE Version: 3.5.3
QT Version:  3.3.6
Kernel:      2.6.16-2-686
Devices
-----------------------
SONY DVD RW DRU-820A 1.0a (/dev/hdc, ) at /cdrom [CD-R; CD-RW; CD-ROM;
DVD-ROM; DVD-RAM; DVD-R; DVD-RW; DVD-R DL; DVD+R; DVD+RW; DVD+R DL]
[DVD-ROM; DVD-R Sequential; DVD-R Dual Layer Sequential; DVD-R Dual Layer
Jump; DVD-RAM; DVD-RW Restricted Overwrite; DVD-RW Sequential; DVD+RW;
DVD+R; DVD+R Double Layer; CD-ROM; CD-R; CD-RW] [SAO; TAO; SAO/R96P;
SAO/R96R; Restricted Overwrite; Layer Jump]

K3b
-----------------------
Size of filesystem calculated: 179541

Used versions
-----------------------
growisofs: 6.1

growisofs
-----------------------
Executing 'builtin_dd if=/dev/fd/0 of=/dev/hdc obs=32k seek=0'
/dev/hdc: restarting DVD+RW format...
/dev/hdc: "Current Write Speed" is 4.1x1385KBps.
:-[ WRITE@LBA=0h failed with SK=5h/ASC=30h/ACQ=05h]: Wrong medium type
:-( media is not formatted or unsupported.
:-( write failed: Wrong medium type

growisofs command:
-----------------------
/usr/bin/growisofs -Z /dev/hdc=/dev/fd/0 -use-the-force-luke=notray
-use-the-force-luke=tty -use-the-force-luke=tracksize:179541 -dvd-compat
-speed=4 -use-the-force-luke=bufsize:32m

mkisofs
-----------------------
179541
  0.28% done, estimate finish Wed Jul 12 17:41:32 2006
  0.56% done, estimate finish Wed Jul 12 17:41:32 2006
  0.84% done, estimate finish Wed Jul 12 17:41:32 2006
  1.12% done, estimate finish Wed Jul 12 17:41:32 2006
  1.40% done, estimate finish Wed Jul 12 17:41:32 2006
  1.67% done, estimate finish Wed Jul 12 17:41:32 2006
  1.95% done, estimate finish Wed Jul 12 17:41:32 2006
  2.24% done, estimate finish Wed Jul 12 17:41:32 2006
  2.51% done, estimate finish Wed Jul 12 17:41:32 2006
  2.79% done, estimate finish Wed Jul 12 17:41:32 2006
  3.07% done, estimate finish Wed Jul 12 17:41:32 2006
  3.35% done, estimate finish Wed Jul 12 17:41:32 2006
  3.63% done, estimate finish Wed Jul 12 17:41:32 2006
  3.90% done, estimate finish Wed Jul 12 17:41:32 2006
  4.18% done, estimate finish Wed Jul 12 17:41:32 2006
  4.46% done, estimate finish Wed Jul 12 17:41:32 2006
  4.74% done, estimate finish Wed Jul 12 17:41:53 2006
  5.02% done, estimate finish Wed Jul 12 17:41:51 2006
  5.29% done, estimate finish Wed Jul 12 17:41:50 2006
  5.58% done, estimate finish Wed Jul 12 17:41:49 2006
  5.85% done, estimate finish Wed Jul 12 17:41:49 2006
  6.13% done, estimate finish Wed Jul 12 17:41:48 2006
  6.41% done, estimate finish Wed Jul 12 17:41:47 2006
  6.69% done, estimate finish Wed Jul 12 17:41:46 2006
  6.97% done, estimate finish Wed Jul 12 17:41:46 2006
  7.24% done, estimate finish Wed Jul 12 17:41:45 2006
  7.52% done, estimate finish Wed Jul 12 17:41:45 2006
  7.81% done, estimate finish Wed Jul 12 17:41:44 2006
  8.08% done, estimate finish Wed Jul 12 17:41:44 2006
  8.36% done, estimate finish Wed Jul 12 17:41:43 2006
  8.63% done, estimate finish Wed Jul 12 17:41:43 2006
  8.92% done, estimate finish Wed Jul 12 17:41:43 2006

mkisofs command:
-----------------------
/usr/bin/mkisofs -gui -graft-points -volid Modern mp3 -volset  -appid K3B
THE CD KREATOR (C) 1998-2005 SEBASTIAN TRUEG AND THE K3B TEAM -publisher
-preparer  -sysid LINUX -volset-size 1 -volset-seqno 1 -sort
/tmp/kde-cpeikert/k3bsdiRza.tmp -rock -hide-list
/tmp/kde-cpeikert/k3bufcxkc.tmp -joliet -joliet-long -hide-joliet-list
/tmp/kde-cpeikert/k3b9ow4Fb.tmp -full-iso9660-filenames -iso-level 2
-path-list /tmp/kde-cpeikert/k3bq39dea.tmp
Comment 1 Sebastian Trueg 2006-07-24 15:34:56 UTC
did you try overwriting the disk using the command line?
are you using an automounter?
could you please provide debugging output for the "no multisession" try also.

Thanks.
Comment 2 Chris Peikert 2006-07-24 21:39:58 UTC
From the command line, I have been able to write and overwrite many different DVD+RW discs, even ones that K3B failed to write.  I can basically do everything I want to from the command line, though it's often more cumbersome.

I am not using an automounter.

I believe the debugging output above was from a 'no multisession' attempt, but here is the output from another such attempt:

System
-----------------------
K3b Version: 0.12.16

KDE Version: 3.5.3
QT Version:  3.3.6
Kernel:      2.6.16-2-686
Devices
-----------------------
SONY DVD RW DRU-820A 1.0a (/dev/hdc, ) at /cdrom [CD-R; CD-RW; CD-ROM; DVD-ROM; DVD-RAM; DVD-R; DVD-RW; DVD-R DL; DVD+R; DVD+RW; DVD+R DL] [DVD-ROM; DVD-R Sequential; DVD-R Dual Layer Sequential; DVD-R Dual Layer Jump; DVD-RAM; DVD-RW Restricted Overwrite; DVD-RW Sequential; DVD+RW; DVD+R; DVD+R Double Layer; CD-ROM; CD-R; CD-RW] [SAO; TAO; SAO/R96P; SAO/R96R; Restricted Overwrite; Layer Jump]

K3b
-----------------------
Size of filesystem calculated: 727835

Used versions
-----------------------
growisofs: 6.1

growisofs
-----------------------
About to execute 'builtin_dd if=/dev/fd/0 of=/dev/hdc obs=32k seek=0'
WARNING: /dev/hdc already carries isofs!
/dev/hdc: restarting DVD+RW format...
/dev/hdc: "Current Write Speed" is 4.1x1385KBps.
:-[ WRITE@LBA=0h failed with SK=5h/ASC=30h/ACQ=05h]: Wrong medium type
:-( media is not formatted or unsupported.
:-( write failed: Wrong medium type

growisofs command:
-----------------------
/usr/bin/growisofs -Z /dev/hdc=/dev/fd/0 -use-the-force-luke=notray -use-the-force-luke=tty -use-the-force-luke=tracksize:727835 -dvd-compat -speed=4 -use-the-force-luke=bufsize:32m 

mkisofs
-----------------------
727835
  0.07% done, estimate finish Mon Jul 24 15:34:32 2006
  0.14% done, estimate finish Mon Jul 24 15:34:32 2006
  0.21% done, estimate finish Mon Jul 24 15:34:32 2006
  0.28% done, estimate finish Mon Jul 24 15:34:32 2006
  0.34% done, estimate finish Mon Jul 24 15:34:32 2006
  0.41% done, estimate finish Mon Jul 24 15:34:32 2006
  0.48% done, estimate finish Mon Jul 24 15:34:32 2006
  0.55% done, estimate finish Mon Jul 24 15:34:32 2006
  0.62% done, estimate finish Mon Jul 24 15:34:32 2006
  0.69% done, estimate finish Mon Jul 24 15:34:32 2006
  0.76% done, estimate finish Mon Jul 24 15:34:32 2006
  0.83% done, estimate finish Mon Jul 24 15:36:33 2006
  0.89% done, estimate finish Mon Jul 24 15:36:23 2006
  0.96% done, estimate finish Mon Jul 24 15:36:15 2006
  1.03% done, estimate finish Mon Jul 24 15:36:09 2006
  1.10% done, estimate finish Mon Jul 24 15:36:02 2006
  1.17% done, estimate finish Mon Jul 24 15:35:57 2006
  1.24% done, estimate finish Mon Jul 24 15:35:52 2006
  1.31% done, estimate finish Mon Jul 24 15:35:48 2006
  1.38% done, estimate finish Mon Jul 24 15:35:44 2006
  1.44% done, estimate finish Mon Jul 24 15:35:41 2006
  1.51% done, estimate finish Mon Jul 24 15:35:38 2006
  1.58% done, estimate finish Mon Jul 24 15:35:35 2006
  1.65% done, estimate finish Mon Jul 24 15:35:32 2006
  1.72% done, estimate finish Mon Jul 24 15:35:30 2006
  1.79% done, estimate finish Mon Jul 24 15:35:27 2006
  1.86% done, estimate finish Mon Jul 24 15:35:25 2006
  1.93% done, estimate finish Mon Jul 24 15:35:23 2006
  1.99% done, estimate finish Mon Jul 24 15:35:22 2006
  2.06% done, estimate finish Mon Jul 24 15:35:20 2006
  2.13% done, estimate finish Mon Jul 24 15:35:18 2006
  2.20% done, estimate finish Mon Jul 24 15:35:17 2006

mkisofs command:
-----------------------
/usr/bin/mkisofs -gui -graft-points -volid movies -volset  -appid K3B THE CD KREATOR (C) 1998-2005 SEBASTIAN TRUEG AND THE K3B TEAM -publisher  -preparer  -sysid LINUX -volset-size 1 -volset-seqno 1 -sort /tmp/kde-cpeikert/k3bNoX6ra.tmp -rock -hide-list /tmp/kde-cpeikert/k3biLKZeb.tmp -joliet -joliet-long -hide-joliet-list /tmp/kde-cpeikert/k3bgbrDKa.tmp -full-iso9660-filenames -iso-level 2 -path-list /tmp/kde-cpeikert/k3bkF2Brb.tmp 

Comment 3 Sebastian Trueg 2006-07-25 02:51:36 UTC
sorry, I actually meant the multisession one. could you please provide that 
also.
Comment 4 Chris Peikert 2006-07-25 05:07:02 UTC
OK, here is what I get when I choose 'auto' for multisession.  It doesn't seem to be very different from the above....

System
-----------------------
K3b Version: 0.12.16

KDE Version: 3.5.3
QT Version:  3.3.6
Kernel:      2.6.16-2-686
Devices
-----------------------
SONY DVD RW DRU-820A 1.0a (/dev/hdc, ) at /cdrom [CD-R; CD-RW; CD-ROM; DVD-ROM; DVD-RAM; DVD-R; DVD-RW; DVD-R DL; DVD+R; DVD+RW; DVD+R DL] [DVD-ROM; DVD-R Sequential; DVD-R Dual Layer Sequential; DVD-R Dual Layer Jump; DVD-RAM; DVD-RW Restricted Overwrite; DVD-RW Sequential; DVD+RW; DVD+R; DVD+R Double Layer; CD-ROM; CD-R; CD-RW] [SAO; TAO; SAO/R96P; SAO/R96R; Restricted Overwrite; Layer Jump]

K3b
-----------------------
Size of filesystem calculated: 473480

Used versions
-----------------------
growisofs: 6.1

growisofs
-----------------------
About to execute 'builtin_dd if=/dev/fd/0 of=/dev/hdc obs=32k seek=0'
WARNING: /dev/hdc already carries isofs!
/dev/hdc: restarting DVD+RW format...
/dev/hdc: "Current Write Speed" is 4.1x1385KBps.
:-[ WRITE@LBA=0h failed with SK=5h/ASC=30h/ACQ=05h]: Wrong medium type
:-( media is not formatted or unsupported.
:-( write failed: Wrong medium type

growisofs command:
-----------------------
/usr/bin/growisofs -Z /dev/hdc=/dev/fd/0 -use-the-force-luke=notray -use-the-force-luke=tty -use-the-force-luke=tracksize:473480 -dvd-compat -speed=4 -use-the-force-luke=bufsize:32m 

mkisofs
-----------------------
473480
  0.11% done, estimate finish Mon Jul 24 23:19:50 2006
  0.21% done, estimate finish Mon Jul 24 23:12:14 2006
  0.32% done, estimate finish Mon Jul 24 23:09:39 2006
  0.43% done, estimate finish Mon Jul 24 23:08:18 2006
  0.53% done, estimate finish Mon Jul 24 23:07:32 2006
  0.64% done, estimate finish Mon Jul 24 23:07:01 2006
  0.74% done, estimate finish Mon Jul 24 23:06:39 2006
  0.85% done, estimate finish Mon Jul 24 23:06:21 2006
  0.95% done, estimate finish Mon Jul 24 23:06:08 2006
  1.06% done, estimate finish Mon Jul 24 23:05:58 2006
  1.16% done, estimate finish Mon Jul 24 23:05:50 2006
  1.27% done, estimate finish Mon Jul 24 23:05:42 2006
  1.38% done, estimate finish Mon Jul 24 23:05:36 2006
  1.48% done, estimate finish Mon Jul 24 23:05:31 2006
  1.58% done, estimate finish Mon Jul 24 23:05:27 2006
  1.69% done, estimate finish Mon Jul 24 23:05:23 2006
  1.80% done, estimate finish Mon Jul 24 23:05:19 2006
  1.90% done, estimate finish Mon Jul 24 23:05:16 2006
  2.01% done, estimate finish Mon Jul 24 23:05:13 2006
  2.12% done, estimate finish Mon Jul 24 23:05:11 2006
  2.22% done, estimate finish Mon Jul 24 23:05:09 2006
  2.32% done, estimate finish Mon Jul 24 23:05:50 2006
  2.43% done, estimate finish Mon Jul 24 23:05:46 2006
  2.54% done, estimate finish Mon Jul 24 23:05:42 2006
  2.64% done, estimate finish Mon Jul 24 23:05:39 2006
  2.75% done, estimate finish Mon Jul 24 23:05:36 2006
  2.85% done, estimate finish Mon Jul 24 23:05:34 2006
  2.96% done, estimate finish Mon Jul 24 23:05:31 2006
  3.06% done, estimate finish Mon Jul 24 23:05:29 2006
  3.17% done, estimate finish Mon Jul 24 23:05:27 2006
  3.27% done, estimate finish Mon Jul 24 23:05:25 2006
  3.38% done, estimate finish Mon Jul 24 23:05:23 2006

mkisofs command:
-----------------------
/usr/bin/mkisofs -gui -graft-points -volid dvd -volset  -appid K3B THE CD KREATOR (C) 1998-2005 SEBASTIAN TRUEG AND THE K3B TEAM -publisher  -preparer  -sysid LINUX -volset-size 1 -volset-seqno 1 -sort /tmp/kde-cpeikert/k3bUmJP0a.tmp -rock -hide-list /tmp/kde-cpeikert/k3bGH3yHb.tmp -joliet -joliet-long -hide-joliet-list /tmp/kde-cpeikert/k3bYbDkCa.tmp -full-iso9660-filenames -iso-level 2 -path-list /tmp/kde-cpeikert/k3bis8Fwa.tmp 

Comment 5 Sebastian Trueg 2006-07-25 10:35:13 UTC
I think I found the problem. If I am correct it should work if you 
choose "start multisession". If that is the case the auto mode will work in 
0.12.17 for you again.
Comment 6 Chris Peikert 2006-07-25 17:12:42 UTC
Thanks for the idea, but still no luck (at least with 0.12.16 -- was there a fix introduced in 0.12.17?).

This time the progress bar goes instantly to 4%.  Then the drive spins up, spins down, spins up, etc.  Then I get "input/output error."  Here is the debugging output.

I will see if 0.12.17 is available on Debian and try that...

System
-----------------------
K3b Version: 0.12.16

KDE Version: 3.5.3
QT Version:  3.3.6
Kernel:      2.6.16-2-686
Devices
-----------------------
SONY DVD RW DRU-820A 1.0a (/dev/hdc, ) at /cdrom [CD-R; CD-RW; CD-ROM; DVD-ROM; DVD-RAM; DVD-R; DVD-RW; DVD-R DL; DVD+R; DVD+RW; DVD+R DL] [DVD-ROM; DVD-R Sequential; DVD-R Dual Layer Sequential; DVD-R Dual Layer Jump; DVD-RAM; DVD-RW Restricted Overwrite; DVD-RW Sequential; DVD+RW; DVD+R; DVD+R Double Layer; CD-ROM; CD-R; CD-RW] [SAO; TAO; SAO/R96P; SAO/R96R; Restricted Overwrite; Layer Jump]

Used versions
-----------------------
growisofs: 6.1
mkisofs: 2.1.1a03-unofficial-iconv

growisofs
-----------------------
WARNING: /dev/hdc already carries isofs!
  0.11% done, estimate finish Tue Jul 25 11:07:15 2006
  0.21% done, estimate finish Tue Jul 25 11:07:15 2006
  0.32% done, estimate finish Tue Jul 25 11:12:30 2006
  0.43% done, estimate finish Tue Jul 25 11:11:09 2006
  0.53% done, estimate finish Tue Jul 25 11:10:23 2006
  0.64% done, estimate finish Tue Jul 25 11:09:52 2006
  0.74% done, estimate finish Tue Jul 25 11:09:30 2006
  0.85% done, estimate finish Tue Jul 25 11:09:12 2006
  0.95% done, estimate finish Tue Jul 25 11:08:59 2006
  1.06% done, estimate finish Tue Jul 25 11:08:49 2006
  1.16% done, estimate finish Tue Jul 25 11:08:41 2006
  1.27% done, estimate finish Tue Jul 25 11:08:33 2006
  1.38% done, estimate finish Tue Jul 25 11:08:27 2006
  1.48% done, estimate finish Tue Jul 25 11:08:22 2006
  1.58% done, estimate finish Tue Jul 25 11:08:18 2006
  1.69% done, estimate finish Tue Jul 25 11:08:14 2006
  1.80% done, estimate finish Tue Jul 25 11:08:10 2006
  1.90% done, estimate finish Tue Jul 25 11:08:07 2006
  2.01% done, estimate finish Tue Jul 25 11:08:04 2006
  2.12% done, estimate finish Tue Jul 25 11:08:02 2006
  2.22% done, estimate finish Tue Jul 25 11:08:00 2006
  2.32% done, estimate finish Tue Jul 25 11:07:58 2006
  2.43% done, estimate finish Tue Jul 25 11:07:56 2006
  2.54% done, estimate finish Tue Jul 25 11:07:54 2006
  2.64% done, estimate finish Tue Jul 25 11:07:52 2006
  2.75% done, estimate finish Tue Jul 25 11:07:51 2006
  2.85% done, estimate finish Tue Jul 25 11:07:50 2006
  2.96% done, estimate finish Tue Jul 25 11:07:48 2006
  3.06% done, estimate finish Tue Jul 25 11:07:47 2006
  3.17% done, estimate finish Tue Jul 25 11:08:18 2006
  3.27% done, estimate finish Tue Jul 25 11:08:16 2006
  3.38% done, estimate finish Tue Jul 25 11:08:14 2006
/dev/hdc: "Current Write Speed" is 4.1x1385KBps.
:-[ WRITE@LBA=0h failed with SK=3h/ASC=73h/ACQ=03h]: Input/output error
:-( write failed: Input/output error

growisofs command:
-----------------------
/usr/bin/growisofs -Z /dev/hdc -use-the-force-luke=notray -use-the-force-luke=tty -speed=4 -use-the-force-luke=bufsize:32m -gui -graft-points -volid Modern mp3 -volset  -appid K3B THE CD KREATOR (C) 1998-2005 SEBASTIAN TRUEG AND THE K3B TEAM -publisher  -preparer  -sysid LINUX -volset-size 1 -volset-seqno 1 -sort /tmp/kde-cpeikert/k3bWN0hMa.tmp -rock -hide-list /tmp/kde-cpeikert/k3brytHLb.tmp -joliet -joliet-long -hide-joliet-list /tmp/kde-cpeikert/k3bKlbbXb.tmp -full-iso9660-filenames -iso-level 2 -path-list /tmp/kde-cpeikert/k3bHnrRuc.tmp 

Comment 7 Sebastian Trueg 2006-07-25 18:54:36 UTC
0.12.17 has not been released yet.

I am a little out of ideas now... maybe try again with all the options k3b 
uses on the command line. Maybe this way we can figure out where it goes 
wrong. You would really help me here.

/usr/bin/growisofs -Z /dev/hdc -use-the-force-luke=notray -use-the-force-luke=tty -speed=4 -use-the-force-luke=bufsize:32m -gui -graft-points -volid 
Modern mp3 -volset  -appid K3B THE CD KREATOR (C) 1998-2005 SEBASTIAN TRUEG 
AND THE K3B TEAM -publisher  -preparer  -sysid LINUX -volset-size 
1 -volset-seqno 
1 -rock-joliet -joliet-long -full-iso9660-filenames -iso-level 2 somedummydir
Comment 8 Chris Peikert 2006-07-25 19:39:49 UTC
OK, I've tried growisofs from the command line with lots of different combinations of configuration options --- but none of them seem to trigger the bug!!

The only thing I don't know how to simulate is the option '-Z /dev/hdc=/dev/fd/0' which seems to be part of the command issued by k3b sometimes (but not all the time?).

This is very puzzling.  Does K3B call mkisofs as well, or is it called by growisofs?

Here is the command I used with all the options I can find, and the results:

% growisofs -Z /dev/hdc -speed=4 -rock -joliet -full-iso9660-filenames -iso-level 2 -gui -use-the-force-luke=notray -use-the-force-luke=bufsize:32m -graft-points -volset-size 1 -volset-seqno 1 -dvd-compat -use-the-force-luke=tty -volid Nothing -publisher -preparer -sysid LINUX -joliet-long title1_02.avi

WARNING: /dev/hdc already carries isofs!
About to execute 'mkisofs -rock -joliet -full-iso9660-filenames -iso-level 2 -gui -graft-points -volset-size 1 -volset-seqno 1 -volid Nothing -publisher -preparer -sysid LINUX -joliet-long title1_02.avi | builtin_dd of=/dev/hdc obs=32k seek=0'
  0.54% done, estimate finish Tue Jul 25 13:29:58 2006
  ------ snipped for clarity ------
 16.78% done, estimate finish Tue Jul 25 13:29:58 2006
/dev/hdc: restarting DVD+RW format...
/dev/hdc: "Current Write Speed" is 4.1x1385KBps.
 17.30% done, estimate finish Tue Jul 25 13:30:38 2006
 ------ snipped for clarity ------
 99.04% done, estimate finish Tue Jul 25 13:30:35 2006
 99.56% done, estimate finish Tue Jul 25 13:30:35 2006
Total translation table size: 0
Total rockridge attributes bytes: 254
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 21000
95430 extents written (186 MB)
builtin_dd: 95440*2KB out @ average 3.7x1385KBps
/dev/hdc: flushing cache
/dev/hdc: writing lead-out
Comment 9 Sebastian Trueg 2006-07-27 21:48:21 UTC
On Tuesday 25 July 2006 19:39, Chris Peikert wrote:
> This is very puzzling.  Does K3B call mkisofs as well, or is it called by
> growisofs?


k3b 0.12.x calls mkisofs if not writing multisession. k3b 1.0 will always call 
mkisofs.

Now we have a problem. growisofs works if you call it from the commandline 
with the exact same options (except for the files burned). That means there 
are two possibilities:
1. the files you burn from k3b are the problem (you could try burning the 
sample files you used for the test above)
2. There is some problem in K3b when calling growisofs (I have no idea what 
that could be though. I will have to investigate that further.)
Comment 10 Chris Peikert 2006-07-28 03:38:31 UTC
I'm way ahead of you on suggestion #1 -- tried burning the exact same files, with no luck.  Very mysterious.  I may try more combinations of command-line arguments with growisofs.

I'm also a little confused by your last message.  K3B calls growisofs, but then does K3B also call mkisofs directly?  Or does growisofs do the calling?  Because when I run growisofs from the CLI, it calls mkisofs on its own.  Does it work the same way within K3B?

The only other difference I see with K3B is that it uses a file to specify the list of files to burn.  Maybe I will try that from the CLI as well.
Comment 11 Sebastian Trueg 2006-07-28 11:37:35 UTC
> I'm also a little confused by your last message.  K3B calls growisofs, but
> then does K3B also call mkisofs directly?  Or does growisofs do the
> calling?  Because when I run growisofs from the CLI, it calls mkisofs on
> its own.  Does it work the same way within K3B?


K3b 1.0 will call mkisofs and pipe the result into growisofs' stdin. k3b 0.12 
still lets growisofs call mkisofs for multisession burning.

> The only other difference I see with K3B is that it uses a file to specify
> the list of files to burn.  Maybe I will try that from the CLI as well.


thanks a lot for you efforts. :)
Comment 12 Chris Peikert 2006-07-30 17:13:48 UTC
Here is an interesting thing.

I've upgraded to kernel 2.6.17.  When I try to burn a data DVD+RW with K3B (no multisession), I get the usual behavior: drive spins up very fast (jet-engine loud), then slows down, spins up, down, etc.  (By the way, the drive spins *much* louder than when I do successful burns from the CLI -- could it be trying to go for 32x or something, when it should be 4x?)  The burn fails with "media unsupported," as usual.

However, the debugging out is different: mkisofs fails with "connection reset by peer."  Could this be related to using /dev/fd/0 as stdin for growisofs?

PS -- the computer with this drive has to go into storage for awhile, so I won't be able to submit any new info for a few weeks.  Please don't close the bug in the meantime (unless you fix it :).  Thanks...

System
-----------------------
K3b Version: 0.12.16

KDE Version: 3.5.3
QT Version:  3.3.6
Kernel:      2.6.17-1-686
Devices
-----------------------
SONY DVD RW DRU-820A 1.0a (/dev/hdc, ) at /cdrom [CD-R; CD-RW; CD-ROM; DVD-ROM; DVD-RAM; DVD-R; DVD-RW; DVD-R DL; DVD+R; DVD+RW; DVD+R DL] [DVD-ROM; DVD-R Sequential; DVD-R Dual Layer Sequential; DVD-R Dual Layer Jump; DVD-RAM; DVD-RW Restricted Overwrite; DVD-RW Sequential; DVD+RW; DVD+R; DVD+R Double Layer; CD-ROM; CD-R; CD-RW] [SAO; TAO; SAO/R96P; SAO/R96R; Restricted Overwrite; Layer Jump]

K3b
-----------------------
Size of filesystem calculated: 2131162

Used versions
-----------------------
growisofs: 6.1

growisofs
-----------------------
About to execute 'builtin_dd if=/dev/fd/0 of=/dev/hdc obs=32k seek=0'
WARNING: /dev/hdc already carries isofs!
/dev/hdc: restarting DVD+RW format...
/dev/hdc: "Current Write Speed" is 4.1x1385KBps.
:-[ WRITE@LBA=0h failed with SK=5h/ASC=30h/ACQ=05h]: Wrong medium type
:-( media is not formatted or unsupported.
:-( write failed: Wrong medium type

growisofs command:
-----------------------
/usr/bin/growisofs -Z /dev/hdc=/dev/fd/0 -use-the-force-luke=notray -use-the-force-luke=tty -use-the-force-luke=tracksize:2131162 -dvd-compat -speed=4 -use-the-force-luke=bufsize:32m 

mkisofs
-----------------------
2131162
  0.05% done, estimate finish Sun Jul 30 11:00:48 2006
  0.07% done, estimate finish Sun Jul 30 11:00:48 2006
-- snip --
  0.73% done, estimate finish Sun Jul 30 11:03:05 2006
  0.75% done, estimate finish Sun Jul 30 11:03:01 2006
/usr/bin/mkisofs: Connection reset by peer. cannot fwrite 32768*1

mkisofs command:
-----------------------
/usr/bin/mkisofs -gui -graft-points -volid Modern mp3 -volset  -appid K3B THE CD KREATOR (C) 1998-2005 SEBASTIAN TRUEG AND THE K3B TEAM -publisher  -preparer  -sysid LINUX -volset-size 1 -volset-seqno 1 -sort /tmp/kde-cpeikert/k3bfnawNb.tmp -rock -hide-list /tmp/kde-cpeikert/k3b3INogc.tmp -joliet -joliet-long -hide-joliet-list /tmp/kde-cpeikert/k3bb2WdYb.tmp -full-iso9660-filenames -iso-level 2 -path-list /tmp/kde-cpeikert/k3bQZxU2a.tmp 

Comment 13 Gerry Cocco 2006-08-23 03:44:44 UTC
I also have a Sony DRU-820A on a new Linux FC5 setup.  I also experience the "burns DVDs from CLI", not from K3B gui.   Output looks very similar.   If you can give me some "test cases" to try...and output you want to see, I'll be glad to get them for you.   I have been using K3B (on my old setup) for about a year and really like it!

...gmc 
Comment 14 Sebastian Trueg 2006-08-23 09:27:54 UTC
I recall solving this problem. I think it was the "-dvd-compat" parameter which should not be used with DVD+RW media. I fixed that for K3b 0.12.17. I will release it today. Please test it and see if it changes the situation. If so, please close this bug.
Comment 15 Gerry Cocco 2006-08-23 22:57:59 UTC
Created attachment 17472 [details]
k3b version 0.12.17.dvd-rw media rewrite fail
Comment 16 Gerry Cocco 2006-08-23 22:59:14 UTC
Created attachment 17473 [details]
k3v version 1.12.17 dvd-rw firstuse of media - OK
Comment 17 Gerry Cocco 2006-08-23 23:00:34 UTC
Created attachment 17474 [details]
k3b version .17 dvd+-rw firstuse - FAIL
Comment 18 Gerry Cocco 2006-08-23 23:02:32 UTC
Created attachment 17475 [details]
k3b .17 cd-rw firstuse FAILl
Comment 19 Gerry Cocco 2006-08-23 23:12:45 UTC
Sebastian,
     Thanks for the quick response.   I have tried a number of things in the meantime.  I have uninstalled 0.12.16.  Downloaded, compiled and installed 0.12.17.   The picture for DVDs is the following:
1) DVD-R and DVD+R media write out without error and can be read also!
2) DVD-RW media on first use, writes and reads back fine.
3) DVD-RW media on re-write (probably the erase) FAILS
4) DVD+RW media on first use, preformats ok-according to messages (takes 
          about a minute), at 3 minutes it ejects and loads media, 
          at 3:41 into session it FAILS.
I also tried a CD-RW:
5) CD-RW media on first use, FAILS.

I created attachments for the 4 failing cases. Since I haven't done that before, I hope it worked ok.

I've tried all the media types I have, please let me know if you need more tests, or more output.

For what it's worth, I'm using all high quality media.  Most I had worked with my previous Sony Drive DRU-120A.   I have NOT upgraded the firmware on the DRU-820A.

...gmc


Comment 20 Sebastian Trueg 2006-08-24 10:06:42 UTC
please try growisofs 6.1
Comment 21 Gerry Cocco 2006-08-24 13:35:39 UTC
Created attachment 17484 [details]
Upgraded to dvd+rw_6.1 burned DVD+RW fails

Upgraded:
$ growisofs -version
* growisofs by <appro@fy.chalmers.se>, version 6.1,
  front-ending to mkisofs: mkisofs 2.01.01a03 (x86_64-unknown-linux-gnu)
Trying to burn a DVD+RW
FAILS
Comment 22 Gerry Cocco 2006-08-24 13:38:18 UTC
Created attachment 17485 [details]
Upgraded to dvd+rw_6.1 burned DVD+R - OK

Regression test:
Setup still burns DVD+R correctly.  Mounts and read back correctly.
Comment 23 Sebastian Trueg 2006-08-29 13:42:36 UTC
maybe it has to do with the kde media manager or the media notifier. try disabling them. You can do that via the kde control center, service manager module.
Comment 24 Gerry Cocco 2006-08-30 12:09:32 UTC
Sebastian,
  I've tried a number of things to isolate the problem.  My first reports
were on a recently installed x86_64 AMD machine.  I became concerned that I
may have corrupted the installation with several installs of code from
source or other non-standard installers.  One of those non-standard installers
was the nVidia video driver.
  I reinstalled everything, and was careful to test the failing re-write of a
DVD+RW along the way.   I only installed with yum from the standard fedora
libraries.  Occasionally I tried (and was successful) in using k3b on DVD+R
media.   And I can still use growisofs (outside of k3b) on an iso and
re-write a DVD+RW so I don't suspect the Sony DRU-820a as a problem.  I also
upgraded to dvd+rw-tools-6.1 as you recommended but that doesn't help.
  I have a couple of cases after the upgrade to dvd+rw-tools-6.1 that fail
but are reported as successful in the gui.  I have screenshots and debug output
of those.
  I have many debug output files and a few screen shots (see below).  Do you
want me to post any of these?   Any other ideas?

...gmc

Chronology of testing:

   k3b broken try a fix from Sebastien #23 for bug 131182
1) file:  k3b-0.12.15-sony-re_write-3-FAIL

   #23) Maybe it has to do with the kde media manager or the media notifier.
        try disabling them. You can do that via the kde control center,
        service manager module.

    ## attempt to disable media manager
    Control Center > KDE Components > Service Manager
      Startup Services
      (UNcheck) Notifier Daemon ... Not running (any longer)

2) file: k3b-0.12.15-sony-re_write-4-FAIL

    ## uninstall all k3b
    yum erase k3b
    Removing: from kuhl
     k3b             x86_64     0.12.15-0.FC5.1  installed          22 M

    Removed: k3b.x86_64 0:0.12.15-0.FC5.1

    ## reinstall from source .. later version  0.12.17
    wget http://prdownloads.sourceforge.net/k3b/k3b-0.12.17.tar.bz2?download
    Download/k3b-0.12.17.tar.bz2
    tar xvf k3b-0.12.17.tar.bz2
    ./configure
    make
    su  -c "make install"

    ## updating permissions
    cdrdao     1.2.1    /usr/bin/cdrdao    0755 root.root  4711 root.root
    cdrecord   2.1.1a03 /usr/bin/cdrecord  0755 root.root  4711 root.root
    growisofs  5.21     /usr/bin/growisofs 0755 root.root  no change

    ## with media manager off AND 0.12.17
    ## try without reboot
    [gmc@kalt ~]$ k3b
    [gmc@kalt ~]$ find: /dev/VolGroup00: Permission denied
    QObject::connect: No such signal K3bGrowisofsImager::buffer(int)
    QObject::connect:  (sender name:   'unnamed')
    QObject::connect:  (receiver name: 'unnamed')
    invalid length 24902
    Failed to process 45 bytes from server
    invalid length 24902
    invalid length 24902
    invalid length 24902
    ## ABOVE - console messages from k3b while doing test below

3) file: k3b-0.12.17-sony-re_write-5-FAIL
3a) png:  0.12.17.rewrite_5.png - gui says error, BUT also that it succeeded


    ## need to upgrade dvd+rw tools
    rpm -e dvd+rw-tools-5.21.4.10.8-6.2.1

    wget http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-6.1.tar.gz
    Download/dvd+rw-tools-6.1.tar.gz
    tar xvf dvd+rw-tools-6.1.tar.gz

    cd dvd+rw-tools-6.1
    make all rpl8 btcflash
    ## warnings from make
    In file included from growisofs.c:405:
    mp.h: In function ‘__thread_wait’:
    mp.h:53: warning: cast from pointer to integer of different size

    make prefix=/usr install
    install -v -m644 -D index.html \
        /usr/share/doc/dvd+rw-tools-6.1/index.html

    [gmc@kalt dvd+rw-tools-6.1]$ growisofs -version
    * growisofs by <appro@fy.chalmers.se>, version 6.1,
      front-ending to mkisofs: mkisofs 2.01.01a03 (x86_64-unknown-linux-gnu)

5) file: k3b-0.12.17_dvd+rw-tools-6.1-sony-re_write-6-FAIL
    ## dialog box: Waiting for Disk - K3b
    ## Found Media: DVD+RW (complete)
    ## Please insert an empty CD-R(W) medium into drive
    ## SONY DVD RW DRU-820A (/dev/hda)

    ## DVD+R burn - still works
6) file: k3b-0.12.17_dvd+rw-tools-6.1-sony-write-7-OK

    ## Try a DVD+-RW erase command in k3b - error below
      Found DVD+RW
      No need to format DVD+RW media more than once.
      It may simply be overwritten

    ## try to burn DVD+RW again
7) file: k3b-0.12.17_dvd+rw-tools-6.1-sony-re-write-8-FAIL
    ## Writing data dialog with false positive outcome
7a) png:  0.12.17.rewrite_8.png
Comment 25 Sebastian Trueg 2006-08-31 10:34:26 UTC
could you please send all the output files and screenshots you have to trueg@k3b.org instead of posting them here. thanks.
Comment 26 Chris Peikert 2006-09-12 06:18:12 UTC
I continue to have this bug with my DRU-820A, even with 0.12.17.

One of the strange things is that when I try burning with K3B, the drive spins up very fast and makes a lot of noise.  Then it spins down, spins back up, etc a few times before K3B gives me the error message.

When I use the CLI growisofs, the drive makes hardly any noise and seems to not spin very fast.  It does end up writing at ~4x, though.

This makes me think that somehow K3B is making the drive spin up to 20x or more, which the DVD can't handle.  What could trigger this?

Also, I'm still not clear about how the '/dev/hdc=/dev/fd/0' command-line option (given by K3B) works.  Could feeding the data into stdin possibly be the difference between command line and K3B?
Comment 27 Sebastian Trueg 2006-09-12 11:01:28 UTC
Did you ever try burning without on-the-fly in K3b? Because then K3b will not use the =/dev/fd/0 syntax. Are both of you using Fedora?

As for the failed CD-RW: that looks a lot like a permission problem.
Comment 28 Gerry Cocco 2006-09-12 13:22:14 UTC
I am currently on Fedora Core 5.  (kernel 2.6.17-1.2174_FC5) i386
Comment 29 Sebastian Trueg 2006-09-12 18:26:12 UTC
Ok, the fedora question was stupid as this bug was tranferred from the debian bug database. ;)
Anyway, please try disabling on-the-fly. If that does the trick, at least we know where to look.
Comment 30 Chris Peikert 2006-09-12 18:34:40 UTC
OK, I will try disabling on-the-fly tonight.  More details then..
Comment 31 Chris Peikert 2006-09-13 05:45:27 UTC
Here is a report on what happens when I disable on-the-fly burning.  Short summary: K3B fails, but command line growisofs still works, with *identical* arguments as K3B!

Details:

I chose to keep the .iso produced by mkisofs, to see how the command line would work afterward.

With multisession disabled, I tried burning.  When it came time to burn, the drive again spun up very fast, then down, then up, until failure.  Here is the relevant debugging output:

System
-----------------------
K3b Version: 0.12.17

KDE Version: 3.5.4
QT Version:  3.3.6
Kernel:      2.6.17-2-686
Devices
-----------------------
SONY DVD RW DRU-820A 1.0a (/dev/hdc, ) at /cdrom [CD-R; CD-RW; CD-ROM; DVD-ROM; DVD-RAM; DVD-R; DVD-RW; DVD-R DL; DVD+R; DVD+RW; DVD+R DL] [DVD-ROM; DVD-R Sequential; DVD-R Dual Layer Sequential; DVD-R Dual Layer Jump; DVD-RAM; DVD-RW Restricted Overwrite; DVD-RW Sequential; DVD+RW; DVD+R; DVD+R Double Layer; CD-ROM; CD-R; CD-RW] [SAO; TAO; SAO/R96P; SAO/R96R; Restricted Overwrite; Layer Jump]

Used versions
-----------------------
growisofs: 6.1

growisofs
-----------------------
WARNING: /dev/hdc already carries isofs!
About to execute 'builtin_dd if=/tmp/kde-cpeikert/k3b_image.iso of=/dev/hdc obs=32k seek=0'
/dev/hdc: restarting DVD+RW format...
/dev/hdc: "Current Write Speed" is 4.1x1385KBps.
:-[ WRITE@LBA=0h failed with SK=5h/ASC=30h/ACQ=05h]: Wrong medium type
:-( media is not formatted or unsupported.
:-( write failed: Wrong medium type

growisofs command:
-----------------------
/usr/bin/growisofs -Z /dev/hdc=/tmp/kde-cpeikert/k3b_image.iso -use-the-force-luke=notray -use-the-force-luke=tty -dvd-compat -speed=4 -use-the-force-luke=bufsize:32m 

(This is followed by the output of mkisofs, which succeeded.)

I then immediately went to the command line and copied *exactly* the same growisofs command from above.  The burn succeeded!  Here is the output:

WARNING: /dev/hdc already carries isofs!
About to execute 'builtin_dd if=/tmp/kde-cpeikert/k3b_image.iso of=/dev/hdc obs=32k seek=0'
/dev/hdc: restarting DVD+RW format...
/dev/hdc: "Current Write Speed" is 4.1x1385KBps.
  24739840/729329664 ( 3.4%) @3.9x, remaining 2:22 RBU 100.0%
  43286528/729329664 ( 5.9%) @3.9x, remaining 2:22 RBU 100.0%
[ SNIP ...]
 711098368/729329664 (97.5%) @3.9x, remaining 0:03 RBU 54.4%
builtin_dd: 356128*2KB out @ average 3.9x1385KBps
/dev/hdc: flushing cache
/dev/hdc: writing lead-out

What could possibly be the problem here??  Isn't K3B just invoking growisofs, or is there something different happening under the hood?

I am totally perplexed here.  Could it have something weird to do with the way K3B exec's the growisofs command?
Comment 32 Sebastian Trueg 2006-11-16 12:53:13 UTC
does growisofs 7 change anything?
Did we talk about this problem in private? I kind of lost track...
Comment 33 Chris Peikert 2006-11-16 17:59:02 UTC
I'll try to check on growisofs 7.

You and I haven't talked about this bug anyplace but here on the bug tracker...
Comment 34 Sebastian Trueg 2006-12-07 21:49:26 UTC
any luck with growisofs 7.0?
Comment 35 Chris Peikert 2006-12-08 05:27:31 UTC
I tried with growisofs 7.0.  There is no change in behavior.

The drive still spins up way too fast and loud, far beyond the 4x speed that it should be using.

Burning from the command line still works.
Comment 36 Sebastian Trueg 2006-12-08 10:24:17 UTC
ok, before continuing with this let's first see if K3b 1.0 changes anything. And by 1.0 I don't mean the beta. Could you please build from svn (I may also create a tarball for you if you never did an svn build before) and see if the latest version works better (there are some changes in device and medium handling that might help, I hope...)
Comment 37 Francois Marier 2007-04-25 13:19:24 UTC
Christopher reports that he still has the same problem with K3b 1.0:

"The current growisofs works from the command line, but from k3b the drive still spins up too rapidly, then fails."
Comment 38 Sebastian Trueg 2007-04-30 13:46:06 UTC
I just have no ideas left for this one. :(
I just hope that cdrecord/wodim DVD support in K3b 1.1 will solve it.
Comment 39 Chris Peikert 2007-04-30 17:26:21 UTC
Thank you for all your assistance, even if we couldn't track down the bug.  I will continue to keep my eyes open to possibilities.

One strange thing: when I start up K3B 1.0, it warns me about a strange locale setting (ANSI_X3.4-1968), which is different from what I'd expect on the command line.  (Actually, I don't think the locale is set at all on my system.)  Could this be affecting the operation of growisofs??
Comment 40 Sebastian Trueg 2007-04-30 18:00:48 UTC
> One strange thing: when I start up K3B 1.0, it warns me about a strange
> locale setting (ANSI_X3.4-1968), which is different from what I'd expect on
> the command line.  (Actually, I don't think the locale is set at all on my
> system.)  Could this be affecting the operation of growisofs??


no.
Comment 41 markuss 2010-03-16 15:58:57 UTC
In an attempt to clean up old bugs that are not valid for K3b 2.0 (=KDE SC 4.x port) anymore, this is now being marked as UNMAINTAINED.
If this bug is still valid for 2.0, please reopen it.