Hi,
> With -tao option, xorrecord has no trouble at all.
I am out of ideas, for now.
> Is there an easy way to dump the raw commands before the one that
failed?
I am not aware whether the Linux kernel has a logging facility for
ioctl(SG_IO). That's the system call by which we perform the SCSI command
transactions.
xorrecord has option -V, which produces a log of the SCSI transactions.
Try:
xorrecord -V dev=/dev/sr0 -inq 2>&1 | less
and see how it talks to the drive via SG_IO.
E.g.:
INQUIRY
12 00 00 00 24 00
From drive: 36b
05 80 05 32 5b 00 00 00 48 4c 2d 44 54 2d 53 54 42 44 44 56
44 52 57 20 47 47 43 2d 48 32 30 4c 31 2e 30 33
9390 us [ 45683 ]
Command INQUIRY was sent. It consisted of 6 bytes "12 00 00 00 24 00".
The drive replied by 36 bytes. As cleartext one can read "HL-DT-ST",
"BDDVDRW GGC-H20L", "1.03".
The transaction lasted 9390 microseconds. Time elapsed since initial call
to libburn was 45683 microseconds.
The commands are specified in SCSI documents SPC, MMC, and SBC.
growisofs has no such logging facility. But back in 2009 i augmented a
local copy of it by logging functionality from libburn.
If you are interested, it's about 150 lines of code. Mostly one piece
which defines two methods. Plus two method calls in method transport().
You'd have to put that code into a local copy of dvd+rw-tools source and
build the programs from that.
Then i will possibly be able to make a new thory from such a (very verbose)
log.
> I feel that this is a bug in growisofs with this specific drive.
Well, i transplanted that logging facility because growisofs was able
to burn on a particular drive with 16x DVD speed, whereas libburn suffered
from periodic throughput weakness.
After i spent two days with the problem, the situation suddenly turned
around. growisofs stumbled, libburn became fluent. I never found out what
was wrong with that drive. It belonged to a user who wanted it back.
So to my experience: Yes, the drive is peculiar.
But the rest is still unclear.
Have a nice day :)
Thomas
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to dvd+rw-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1757030
Title:
Lite-On DS8A1H Slimline fails to record dual layer DVD+R
Status in dvd+rw-tools package in Ubuntu:
New
Bug description:
I tried Verbatim 8x and 2.4x DVD+R DL. The failure is always exactly
the same.
$ growisofs -dvd-compat -Z /dev/dvdrw=2017.iso
Executing 'builtin_dd if=2017.iso of=/dev/dvdrw obs=32k seek=0'
/dev/dvdrw: splitting layers at 2009552 blocks
/dev/dvdrw: "Current Write Speed" is 1.6x1352KBps.
9175040/8231090176 ( 0.1%) @2.0x, remaining 74:40 RBU 100.0% UBU 7.4%
21135360/8231090176 ( 0.3%) @2.6x, remaining 58:16 RBU 100.0% UBU 98.8%
33095680/8231090176 ( 0.4%) @2.6x, remaining 49:32 RBU 100.0% UBU 98.6%
45056000/8231090176 ( 0.5%) @2.6x, remaining 45:25 RBU 100.0% UBU 98.8%
57016320/8231090176 ( 0.7%) @2.6x, remaining 45:23 RBU 100.0% UBU 98.8%
69009408/8231090176 ( 0.8%) @2.6x, remaining 43:22 RBU 100.0% UBU 98.8%
80969728/8231090176 ( 1.0%) @2.6x, remaining 41:56 RBU 100.0% UBU 98.6%
92930048/8231090176 ( 1.1%) @2.6x, remaining 42:19 RBU 100.0% UBU 98.6%
[..]
4077289472/8231090176 (49.5%) @4.1x, remaining 15:15 RBU 90.0% UBU 88.4%
4096065536/8231090176 (49.8%) @4.1x, remaining 15:11 RBU 43.0% UBU 97.9%
4114808832/8231090176 (50.0%) @4.1x, remaining 15:06 RBU 28.0% UBU 97.9%
4115562496/8231090176 (50.0%) @0.2x, remaining 15:08 RBU 69.4% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 15:12 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 15:15 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 15:18 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 15:22 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 15:25 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 15:28 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 15:32 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 15:35 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 15:38 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 15:42 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 15:45 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 15:48 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 15:52 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 15:55 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 15:58 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 16:02 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 16:05 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 16:08 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 16:12 RBU 100.0% UBU 100.0%
4115562496/8231090176 (50.0%) @0.0x, remaining 16:15 RBU 100.0% UBU 100.0%
:-[ WRITE@LBA=1ea9d0h failed with SK=5h/ASC=21h/ACQ=04h]: Invalid argument
:-( write failed: Invalid argument
$ dmesg
[..]
[5033003.021339] capability: warning: `growisofs' uses 32-bit capabilities
(legacy support in use)
[5033841.644130] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6
frozen
[5033841.644149] ata1.00: cmd a0/01:00:00:00:80/00:00:00:00:00/a0 tag 0 dma
32768 out
Write(10) 2a 00 00 1e d8 40 00 00 10 00res
40/00:02:00:0c:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
[5033841.644155] ata1.00: status: { DRDY }
[5033846.688236] ata1: link is slow to respond, please be patient (ready=0)
[5033851.684070] ata1: device not ready (errno=-16), forcing hardreset
[5033851.684086] ata1: soft resetting link
[5033851.888486] ata1.00: configured for MWDMA2
[5033851.889482] ata1: EH complete
xorriso is fine:
$ xorrecord dev='/dev/sr0' -v -dao -pad 2017.iso
xorriso 1.4.6 : RockRidge filesystem manipulator, libburnia project.
Drive current: -outdev '/dev/sr0'
Media current: DVD+R/DL
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 8152m free
Beginning to write data track.
[..]
Writing to '/dev/sr0' completed successfully.
xorriso : NOTE : Re-assessing -outdev '/dev/sr0'
xorriso : NOTE : Disc status unsuitable for writing
Drive current: -outdev '/dev/sr0'
Media current: DVD+R/DL
Media status : is written , is closed
Media summary: 1 session, 4019104 data blocks, 7850m data, 0 free
Disc status afterwards:
$ dvd+rw-mediainfo /dev/dvdrw
INQUIRY: [Slimtype][DVD A DS8A1H ][WH66]
GET [CURRENT] CONFIGURATION:
Mounted Media: 2Bh, DVD+R Double Layer
Media ID: MKM/001
Current Write Speed: 4.0x1385=5540KB/s
Write Speed #0: 4.0x1385=5540KB/s
Write Speed #1: 2.4x1385=3324KB/s
GET [CURRENT] PERFORMANCE:
Write Performance: 1.6x1385=2216KB/s@0 -> 5.8x1385=8036KB/s@4019103
Speed Descriptor#0: 00/4019103 [email protected]=8310KB/s [email protected]=5540KB/s
Speed Descriptor#1: 00/4019103 [email protected]=8310KB/s [email protected]=3324KB/s
READ DVD STRUCTURE[#0h]:
Media Book Type: 00h, DVD-ROM book [revision 0]
Legacy lead-out at: 2086912*2KB=4273995776
DVD+R DOUBLE LAYER BOUNDARY INFORMATION:
L0 Data Zone Capacity: 2086912*2KB, can no longer be set
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: invisible
Track Start Address: 0*2KB
Free Blocks: 0*2KB
Track Size: 4019104*2KB
ROM Compatibility LBA: 262144
FABRICATED TOC:
Track#1 : 14@0
Track#AA : 14@4019104
Multi-session Info: #1@0
READ CAPACITY: 4019104*2048=8231124992
It looks like growisofs has an alignment bug at the layer change. The SCSI
error code corresponds to:
21/04 DZ UNALIGNED WRITE COMMAND
http://www.t10.org/lists/asc-num.htm#ASC_21
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: dvd+rw-tools 7.1-11.1
ProcVersionSignature: Ubuntu 4.13.0-25.29-generic 4.13.13
Uname: Linux 4.13.0-25-generic x86_64
NonfreeKernelModules: openafs
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CurrentDesktop: LXDE
Date: Mon Mar 19 19:15:02 2018
SourcePackage: dvd+rw-tools
UpgradeStatus: Upgraded to artful on 2018-01-06 (72 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dvd+rw-tools/+bug/1757030/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp