NetBSD Problem Report #52720
From www@NetBSD.org Sat Nov 11 05:00:46 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id AA4567A183
for <gnats-bugs@gnats.NetBSD.org>; Sat, 11 Nov 2017 05:00:46 +0000 (UTC)
Message-Id: <20171111050045.4DBC27A1F8@mollari.NetBSD.org>
Date: Sat, 11 Nov 2017 05:00:45 +0000 (UTC)
From: kosaki1_kta@ybb.ne.jp
Reply-To: kosaki1_kta@ybb.ne.jp
To: gnats-bugs@NetBSD.org
Subject: can't write iso file to dvdrw media with atapi drive using dvdrecord
X-Send-Pr-Version: www-1.0
>Number: 52720
>Category: kern
>Synopsis: can't write iso file to dvdrw media with atapi drive using dvdrecord
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Nov 11 05:05:00 +0000 2017
>Last-Modified: Sun Dec 03 14:55:01 +0000 2017
>Originator: kotaro kosaki
>Release: NetBSD 8.99.6
>Organization:
>Environment:
NetBSD phnm1 8.99.6 NetBSD 8.99.6 (GENERIC) #0: Fri Nov 10 21:05:04 JST 2017 /mnt3/udd4/amd64/obj/sys/arch/amd64/compile/GENERIC amd6
>Description:
with NetBSD kernel newer than NetBSD 8.99.4
dvdrecord: Warning: using inofficial version of libscg (bero-0.5a '@(#)scsit$
dvdrecord: Warning: using inofficial libscg transport code version (frueauf-$
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'PIONEER '
Identifikation : 'DVD-RW DVR-111 '
Revision : '1.29'
Device seems to be: Generic mmc2 DVD.
Using generic SCSI-3/mmc DVD-R(W) driver (mmc_mdvd).
Driver flags : SWABAUDIO BURNFREE
Supported modes: PACKET SAO
Drive buf size : 1605632 = 1568 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 628 MB
Total size: 721 MB (71:29.52) = 321714 sectors
Lout start: 721 MB (71:31/39) = 321714 sectors
Current Secsize: 2048
ATIP start of lead in: -150 (00:00/00)
Disk type: unknown dye (reserved id code)
Manuf. index: -1
Manufacturer: unknown (not in table)
Blocks total: 2298496 Blocks current: 2298496 Blocks remaining: 1976782
Starting to write CD/DVD at speed 4 in write mode for single session.
Last chance to quit, starting real write in 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
trackno=0
BURN-Free is ON.
Performing OPC...
Sending CUE sheet...
dvdrecord: WARNING: Drive returns wrong startsec (0) using -150
Starting new track at sector: 0
Track 01: 628 of 628 MB written (fifo 100%).
Track 01: Total bytes read/written: 658870272/658870272 (321714sectors).
Fixating...
Fixating time: 16.347s
dvdrecord: fifo had 10724 puts and 10724 gets.
dvdrecord: fifo was 12 times empty and 132 times full, min fill was 0%.
Writing time: 11.461s
mount -t cd9660 /dev/cd0a /mnt/cdrom
mount_cd9660: /dev/cd0a on /mnt/cdrom: Invalid argument
>How-To-Repeat:
make iso file and burn with atap dvdrw drive using dvdrecord
>Fix:
>Audit-Trail:
From: mlelstv@serpens.de (Michael van Elst)
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/52720: can't write iso file to dvdrw media with atapi drive using dvdrecord
Date: Sat, 11 Nov 2017 13:25:44 -0000 (UTC)
kosaki1_kta@ybb.ne.jp writes:
>mount -t cd9660 /dev/cd0a /mnt/cdrom
>mount_cd9660: /dev/cd0a on /mnt/cdrom: Invalid argument
Can you read the raw device?
Can you mount the disk on another system?
--
--
Michael van Elst
Internet: mlelstv@serpens.de
"A potential Snark may lurk in every tree."
From: kosaki1_kta@ybb.ne.jp
To: "gnats-bugs@NetBSD.org" <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: kern/52720: can't write iso file to dvdrw media with atapi drive using dvdrecord
Date: Tue, 14 Nov 2017 18:43:18 +0900 (JST)
--510507344-1278173444-1510652598=:14070
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
=0A=0A> >mount -t cd9660 /dev/cd0a /mnt/cdrom > >mount_cd9660: /dev/cd0a o=
n /mnt/cdrom: Invalid argument >Can you read the raw device? >Can you mount=
the disk on another system? > -- =0A>-- =0A> =
Michael van Elst=0A> Internet: mlelstv%serpens.de@localhost "A potential=
Snark may lurk in every tree."=0ACan read raw device by =0Add if=3D/dev/c=
d0d of=3D/dev/null=0A=0ACan't read burned dvd by windows 7 pc.=0A----------=
--------------=0A=0ATry to write NetBSD-8.99.6-amd64.iso=0A=0AWith kernel=
=A0 =0A=0A=A0=A0=A0=A0 NetBSD 8.99.3 (GENERIC) #0: Fri Oct=A0 6 =0A=0A=0ATr=
ack 01: 1395 of 1395 MB written (fifo 100%).=0ATrack 01: Total bytes read/w=
ritten: 1463631872/1463631872 (714664 sectors).=0AWriting=A0 time:=A0 290.5=
88s=0AFixating...=0AFixating time:=A0=A0 23.541s=0Advdrecord: fifo had 2382=
3 puts and 23823 gets.=0Advdrecord: fifo was 0 times empty and 3378 times f=
ull, min fill was 79%.=0A=0AWith kernel =0A=0A=A0=A0=A0=A0=A0 NetBSD 8.99.6=
=0A=0ATrack 01: 1395 of 1395 MB written (fifo 100%).=0ATrack 01: Total byte=
s read/written: 1463631872/1463631872 (714664 sectors).=0AWriting=A0 time:=
=A0=A0 16.474s=0AFixating...=0AFixating time:=A0=A0=A0 9.097s=0Advdrecord: =
fifo had 23823 puts and 23823 gets.=0Advdrecord: fifo was 18 times empty an=
d 273 times full, min fill was 0%.=0A=0A=0AVery fast !!=0A=0AMay be related=
to=0A=0AMerge support for SATA NCQ (Native Command Queueing) from jdolecek=
-ncq branch=0A=0Ain Oct=A0 7 ?=0A=0AI haven't sata dvdrw drive yet.
--510507344-1278173444-1510652598=:14070
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
<html><body><div style=3D"color:; background-color:; font-family:MS PGothic=
, sans-serif;font-size:12pt"><div><br></div><pre> =0A > >mount -t cd9=
660 /dev/cd0a /mnt/cdrom=0A > >mount_cd9660: /dev/cd0a on /mnt/cdrom=
: Invalid argument=0A =0A >Can you read the raw device?=0A >Can you m=
ount the disk on another system?=0A =0A =0A> -- =0A>-- =0A> =
Michael van Elst=0A> Internet: mlelstv%serpens=
.de@localhost=0A "A potential Snark may lur=
k in every tree."=0ACan read raw device by </pre><div>dd if=3D/dev/cd0d of=
=3D/dev/null</div><div><br></div><div>Can't read burned dvd by windows 7 pc=
.</div><div>------------------------</div><div><br></div><div>Try to write =
NetBSD-8.99.6-amd64.iso</div><div><br></div><div>With kernel <br></di=
v><div> NetBSD 8.99.3 (GENERIC) #0: Fri Oct 6=
<br></div><div><br></div><div>Track 01: 1395 of 1395 MB written (fifo 100%=
).<br>Track 01: Total bytes read/written: 1463631872/1463631872 (714664 sec=
tors).<br>Writing time: 290.588s<br>Fixating...<br>Fixating tim=
e: 23.541s<br>dvdrecord: fifo had 23823 puts and 23823 gets.<br=
>dvdrecord: fifo was 0 times empty and 3378 times full, min fill was 79%.</=
div><div><br></div><div>With kernel <br></div><div> =
NetBSD 8.99.6</div><div><br></div><div>Track 01: 1395 of 1395 MB wri=
tten (fifo 100%).<br>Track 01: Total bytes read/written: 1463631872/1463631=
872 (714664
sectors).<br>Writing time: 16.474s<br>Fixating...<br>Fix=
ating time: 9.097s<br>dvdrecord: fifo had 23823 puts and =
23823 gets.<br>dvdrecord: fifo was 18 times empty and 273 times full, min f=
ill was 0%.<br></div><div><br></div><div>Very fast !!</div><div><br></div><=
div>May be related to</div><div><br></div><div>Merge support for SATA NCQ (=
Native Command Queueing) from jdolecek-ncq branch<br></div><pre>in Oct&nbs=
p; 7 ?<br><br>I haven't sata dvdrw drive yet.<br></pre><div><br></div> <=
/div></body></html>
--510507344-1278173444-1510652598=:14070--
From: kosaki1_kta@ybb.ne.jp
To: "gnats-bugs@NetBSD.org" <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: kern/52720: can't write iso file to dvdrw media with atapi drive using dvdrecord
Date: Tue, 14 Nov 2017 20:22:53 +0900 (JST)
Sorry please replace the previous=E3=80=80one with this.=0A=0A=0A=0A> >moun=
t -t cd9660=C2=A0=C2=A0/dev/cd0a /mnt/cdrom > >mount_cd9660: /dev/cd0a on /=
mnt/cdrom: Invalid argument >Can you read the raw device? >Can you mount th=
e disk on another system? > -- =0A>-- =0A>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 Michael van Elst=0A> Internet: mlelstv%serpens.de@localhost "A po=
tential Snark may lurk in every tree."=0ACan read raw device=C2=A0=C2=A0by =
=0Add if=3D/dev/cd0d of=3D/dev/null=0A=0ACan't read burned dvd by windows 7=
pc.=0A------------------------=0A=0ATry to write NetBSD-8.99.6-amd64.iso=
=0A=0AWith kernel=C2=A0 =0A=0A=C2=A0=C2=A0=C2=A0=C2=A0 NetBSD 8.99.3 (GENER=
IC) #0: Fri Oct=C2=A0 6 =0A=0A=0ATrack 01: 1395 of 1395 MB written (fifo 10=
0%).=0ATrack 01: Total bytes read/written: 1463631872/1463631872 (714664 se=
ctors).=0AWriting=C2=A0 time:=C2=A0 290.588s=0AFixating...=0AFixating time:=
=C2=A0=C2=A0 23.541s=0Advdrecord: fifo had 23823 puts and 23823 gets.=0Advd=
record: fifo was 0 times empty and 3378 times full, min fill was 79%.=0A=0A=
With kernel =0A=0A=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 NetBSD 8.99.6=0A=0ATrack 0=
1: 1395 of 1395 MB written (fifo 100%).=0ATrack 01: Total bytes read/writte=
n: 1463631872/1463631872 (714664=0Asectors).=0AWriting=C2=A0 time:=C2=A0=C2=
=A0 16.474s=0AFixating...=0AFixating time:=C2=A0=C2=A0=C2=A0 9.097s=0Advdre=
cord: fifo had 23823 puts and 23823 gets.=0Advdrecord: fifo was 18 times em=
pty and 273 times full, min fill was 0%.=0A=0A=0AVery fast !!=0A=0AMay be r=
elated to=0A=0AMerge support for SATA NCQ (Native Command Queueing) from jd=
olecek-ncq branch=0A=0Ain=C2=A0=C2=A0Oct=C2=A0 7 ?=0A=0AI haven't sata dvdr=
w drive yet.
From: kosaki1_kta@ybb.ne.jp
To: "gnats-bugs@NetBSD.org" <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: kern/52720: can't write iso file to dvdrw media with atapi drive using dvdrecord
Date: Tue, 14 Nov 2017 20:46:55 +0900 (JST)
Sorry please replace the previous=E3=80=80one with this.=0A=0A=0A=0A> >moun=
t -t cd9660=C2=A0=C2=A0/dev/cd0a /mnt/cdrom > >mount_cd9660: /dev/cd0a on /=
mnt/cdrom: Invalid argument >Can you read the raw device? >Can you mount th=
e disk on another system? > -- =0A>-- =0A>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 Michael van Elst=0A> Internet: mlelstv%serpens.de@localhost "A po=
tential Snark may lurk in every tree."=0ACan read raw device=C2=A0=C2=A0by =
=0Add if=3D/dev/cd0d of=3D/dev/null=0A=0ACan't read burned dvd by windows 7=
pc.=0A------------------------=0A=0ATry to write NetBSD-8.99.6-amd64.iso=
=0A=0AWith kernel=C2=A0 =0A=0A=C2=A0=C2=A0=C2=A0=C2=A0 NetBSD 8.99.3 (GENER=
IC) #0: Fri Oct=C2=A0 6 =0A=0A=0ATrack 01: 1395 of 1395 MB written (fifo 10=
0%).=0ATrack 01: Total bytes read/written: 1463631872/1463631872 (714664 se=
ctors).=0AWriting=C2=A0 time:=C2=A0 290.588s=0AFixating...=0AFixating time:=
=C2=A0=C2=A0 23.541s=0Advdrecord: fifo had 23823 puts and 23823 gets.=0Advd=
record: fifo was 0 times empty and 3378 times full, min fill was 79%.=0A=0A=
With kernel =0A=0A=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 NetBSD 8.99.6=0A=0ATrack 0=
1: 1395 of 1395 MB written (fifo 100%).=0ATrack 01: Total bytes read/writte=
n: 1463631872/1463631872 (714664=0Asectors).=0AWriting=C2=A0 time:=C2=A0=C2=
=A0 16.474s=0AFixating...=0AFixating time:=C2=A0=C2=A0=C2=A0 9.097s=0Advdre=
cord: fifo had 23823 puts and 23823 gets.=0Advdrecord: fifo was 18 times em=
pty and 273 times full, min fill was 0%.=0A=0A=0AVery fast !!=0A=0AMay be r=
elated to=0A=0AMerge support for SATA NCQ (Native Command Queueing) from jd=
olecek-ncq branch=0A=0Ain=C2=A0=C2=A0Oct=C2=A0 7 ?=0A=0AI haven't sata dvdr=
w drive yet.=0A
From: Kotaro Kosaki <kosaki1_kta@ybb.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: mlelstv%serpens.de@ybb.ne.jp
Subject: Re: kern/52720
Date: Sun, 03 Dec 2017 20:38:10 +0900 (JST)
I got sata DVDRW drive. I will add test results .
Motherboard is Supermicro H8DCE-HTE
based on NVIDIA nForce Pro/2200/2050 chipset
(so have NVIDIA nForce4 IDE and Serial ATA Controller).
ide DVDRW drive is PIONEER DVD-RW DVR-111
sata DVDRW drive is ASUS DRW-24D5MT
With these drive write NetBSD-8.99.8-amd64.iso to dvdrw media with
dvdrecord -dao -v blank=all dev=/dev/cd0d
( or dvdrecord -dao -v blank=fast dev=/dev/cd0d )
dvdrecord -dao -v NetBSD-8.99.8-amd64.iso dev=/dev/cd0d
---------------------------------------------------------------------
Under kernel NetBSD 8.99.3 (GENERIC) amd64 Fri Oct 6 20:03:32 JST 2017
With ide drive
Track 01: 1376 of 1376 MB written (fifo 100%).
Track 01: Total bytes read/written: 1443229696/1443229696 (704702 sectors).
Writing time: 287.984s
Fixating time: 23.414s
With sata drive
Track 01: 1376 of 1376 MB written (fifo 100%).
Track 01: Total bytes read/written: 1443229696/1443229696 (704702 sectors).
Writing time: 279.553s
Fixating time: 14.979s
both cases are ok
---------------------------------------------------------------------
Under kernel NetBSD 8.99.8 (GENERIC) amd64 Sat Dec 2 18:23:54 JST 2017
With ide drive
Track 01: 1376 of 1376 MB written (fifo 100%).
Track 01: Total bytes read/written: 1443229696/1443229696 (704702 sectors).
Writing time: 17.277s
Fixating time: 9.477s
Writing time is too short . Fails to write
( Under kernel newer than NetBSD 8.99.4 write fails )
With sata drive
Track 01: 1376 of 1376 MB written (fifo 100%).
Track 01: Total bytes read/written: 1443229696/1443229696 (704702 sectors).
Writing time: 87.002s
Fixating time: 0.010s
Writing time is to short . Fails to write
Next use ide ( or sata) to usb converter
With ide to usb drive
Track 01: 1376 of 1376 MB written (fifo 100%).
Track 01: Total bytes read/written: 1443229696/1443229696 (704702 sectors).
Writing time: 299.839s
Fixating time: 24.149s
ok
With sata to usb drive
Track 01: 1376 of 1376 MB written (fifo 100%).
Track 01: Total bytes read/written: 1443229696/1443229696 (704702 sectors).
Writing time: 279.524s
Fixating time: 15.129s
ok
From: Kotaro Kosaki <kosaki1_kta@ybb.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: mlelstv@serpens.de
Subject: Re: kern/52720: can't write iso file to dvdrw media with atapi
drive using dvdrecord
Date: Sun, 03 Dec 2017 20:49:23 +0900 (JST)
I got sata DVDRW drive. I will add test results .
Motherboard is Supermicro H8DCE-HTE
based on NVIDIA nForce Pro/2200/2050 chipset
(so have NVIDIA nForce4 IDE and Serial ATA Controller).
ide DVDRW drive is PIONEER DVD-RW DVR-111
sata DVDRW drive is ASUS DRW-24D5MT
With these drive write NetBSD-8.99.8-amd64.iso to dvdrw media with
dvdrecord -dao -v blank=all dev=/dev/cd0d
( or dvdrecord -dao -v blank=fast dev=/dev/cd0d )
dvdrecord -dao -v NetBSD-8.99.8-amd64.iso dev=/dev/cd0d
---------------------------------------------------------------------
Under kernel NetBSD 8.99.3 (GENERIC) amd64 Fri Oct 6 20:03:32 JST 2017
With ide drive
Track 01: 1376 of 1376 MB written (fifo 100%).
Track 01: Total bytes read/written: 1443229696/1443229696 (704702 sectors).
Writing time: 287.984s
Fixating time: 23.414s
With sata drive
Track 01: 1376 of 1376 MB written (fifo 100%).
Track 01: Total bytes read/written: 1443229696/1443229696 (704702 sectors).
Writing time: 279.553s
Fixating time: 14.979s
both cases are ok
---------------------------------------------------------------------
Under kernel NetBSD 8.99.8 (GENERIC) amd64 Sat Dec 2 18:23:54 JST 2017
With ide drive
Track 01: 1376 of 1376 MB written (fifo 100%).
Track 01: Total bytes read/written: 1443229696/1443229696 (704702 sectors).
Writing time: 17.277s
Fixating time: 9.477s
Writing time is too short . Fails to write
( Under kernel newer than NetBSD 8.99.4 write fails )
With sata drive
Track 01: 1376 of 1376 MB written (fifo 100%).
Track 01: Total bytes read/written: 1443229696/1443229696 (704702 sectors).
Writing time: 87.002s
Fixating time: 0.010s
Writing time is to short . Fails to write
Next use ide ( or sata) to usb converter
With ide to usb drive
Track 01: 1376 of 1376 MB written (fifo 100%).
Track 01: Total bytes read/written: 1443229696/1443229696 (704702 sectors).
Writing time: 299.839s
Fixating time: 24.149s
ok
With sata to usb drive
Track 01: 1376 of 1376 MB written (fifo 100%).
Track 01: Total bytes read/written: 1443229696/1443229696 (704702 sectors).
Writing time: 279.524s
Fixating time: 15.129s
ok
From: Michael van Elst <mlelstv@serpens.de>
To: Kotaro Kosaki <kosaki1_kta@ybb.ne.jp>
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/52720: can't write iso file to dvdrw media with atapi drive
using dvdrecord
Date: Sun, 3 Dec 2017 15:52:04 +0100
On Sun, Dec 03, 2017 at 08:49:23PM +0900, Kotaro Kosaki wrote:
> I got sata DVDRW drive. I will add test results .
>
> Motherboard is Supermicro H8DCE-HTE
> based on NVIDIA nForce Pro/2200/2050 chipset
> (so have NVIDIA nForce4 IDE and Serial ATA Controller).
>
> ide DVDRW drive is PIONEER DVD-RW DVR-111
> sata DVDRW drive is ASUS DRW-24D5MT
Can you provide the dmesg entries for the test cases?
Also, since there are no error messages, can you read back what
has been written to the media? Maybe one can deduce from the result
what commands went wrong.
Greetings,
--
Michael van Elst
Internet: mlelstv@serpens.de
"A potential Snark may lurk in every tree."
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.