Re: Infinite spin when trying to burn a CD

2019-03-27 Thread Florian Viehweger
Have you tried different media?

I've seen drives freaking out similarly on numerous occasions because of shady 
media.

Of not, try a different brand, especially when you are using CDs from your 
local supermarket. Also try a different type, writable - rewritable.

-- 
Greetings,

Florian Viehweger


Re: Infinite spin when trying to burn a CD

2019-03-27 Thread Markus Rosjat

Hi,

for you output ...

Am 26.03.2019 um 22:45 schrieb Jérôme FRGACIC:


write track data: error after 552960 bytes
cdrecord: A write error occured.
cdrecord: Please properly read the error message above.
cdrecord: Input/output error. test unit ready: scsi sendcmd: retryable 
error

CDB:  00 00 00 00 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 40s


test unit ready checks if the device is ready to do what you want it to do.


cdrecord: Input/output error. flush cache: scsi sendcmd: retryable error
CDB:  35 00 00 00 00 00 00 00 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 120s
Trouble flushing the cache
Writing  time:    5.115s
Average write speed 860.1x.
Fixating...


this cdb tries to sync the cache and it seems to have a prob here, the 
good status indecates that the cdb was recieved by the device after that 
it seems to get in trouble


cdrecord: Input/output error. close track/session: scsi sendcmd: 
retryable error

CDB:  5B 00 02 00 00 00 00 00 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.009s timeout 480s
cmd finished after 0.009s timeout 480s


this cdb tries to close the track session i dont know why you get a cmd 
finised twice here maybe its related to the cache problem.



cdrecord: faio_wait_on_buffer for writer timed out.
cdrecord: Input/output error. prevent/allow medium removal: scsi 
sendcmd: retryable error

CDB:  1E 00 00 00 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 40s


here you have your cdb for removing the media again


cdrecord: Cannot fixate disk.
Fixating time:  466.776s
cdrecord: Input/output error. prevent/allow medium removal: scsi 
sendcmd: retryable error

CDB:  1E 00 00 00 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 40s


and once again  because he could fixate it before i guess


cdrecord: fifo had 77 puts and 10 gets.
cdrecord: fifo was 0 times empty and 2 times full, min fill was 89%.



so this is what happens by the log why it happend i cant tell by this 
output but again the trouble starts with syncing the cache i guess.


regards
--
Markus Rosjatfon: +49 351 8107224mail: ros...@ghweb.de

G+H Webservice GbR Gorzolla, Herrmann
Königsbrücker Str. 70, 01099 Dresden

http://www.ghweb.de
fon: +49 351 8107220   fax: +49 351 8107227

Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before 
you print it, think about your responsibility and commitment to the 
ENVIRONMENT




Re: Infinite spin when trying to burn a CD

2019-03-26 Thread Jason McIntyre
On Tue, Mar 26, 2019 at 10:45:40PM +0100, J??r??me FRGACIC wrote:
> Thanks for all your replies.
> 
> > it means the optcode does alllow or prevent media removal it depends on
> > the prevent bits in the cdb but you basically just have a 00 for allow
> > or a 01 for prevent in the cdb.  Anyway since sense already told you the
> > request is illegal you have to figure out what came befor the removal
> > request so you might get a clue in what state the hardware is still.
> 
> Thanks for those informations. Unfortunetly, I don't have more 
> informations or error than those for the moment to determine what happen 
> exactly.
> 
> > Have you tried cdrecord from ports? I haven't burnt a CD in awhile but last 
> > time I did I couldn't get cdio to work but cdrecord would.
> 
> I've tried cdrecord too, but I have the same problem. More precisely, it 
> quits because it encounters an error, but the CD is still spining forever.
> 
> I put the output of cdrecord at the end, just in case it can help, but 
> since it seems to be a hardware problem, I suppose there is no easy 
> solutions (except changing it, of course). ^^"
> 
> Kind regards,
> 
> 
> J??r??me
> 

hi. i don;t think it's a hardware error - i have a cd/dvd writer that
behaves in a similar fashion:

cd0 at scsibus1 targ 1 lun 0:  ATAPI 
5/cdrom removable

i can reproduce the errors you get if i try to write a cd on it. it's
not something i really do, so i never bothered (though i also suspected
a hardware error ;)

jmc



Re: Infinite spin when trying to burn a CD

2019-03-26 Thread Jérôme FRGACIC

Thanks for all your replies.


it means the optcode does alllow or prevent media removal it depends on
the prevent bits in the cdb but you basically just have a 00 for allow
or a 01 for prevent in the cdb.  Anyway since sense already told you the
request is illegal you have to figure out what came befor the removal
request so you might get a clue in what state the hardware is still.


Thanks for those informations. Unfortunetly, I don't have more 
informations or error than those for the moment to determine what happen 
exactly.


Have you tried cdrecord from ports? I haven't burnt a CD in awhile but last 
time I did I couldn't get cdio to work but cdrecord would.


I've tried cdrecord too, but I have the same problem. More precisely, it 
quits because it encounters an error, but the CD is still spining forever.


I put the output of cdrecord at the end, just in case it can help, but 
since it seems to be a hardware problem, I suppose there is no easy 
solutions (except changing it, of course). ^^"


Kind regards,


Jérôme

write track data: error after 552960 bytes
cdrecord: A write error occured.
cdrecord: Please properly read the error message above.
cdrecord: Input/output error. test unit ready: scsi sendcmd: retryable 
error

CDB:  00 00 00 00 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 40s
cdrecord: Input/output error. flush cache: scsi sendcmd: retryable error 


CDB:  35 00 00 00 00 00 00 00 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 120s
Trouble flushing the cache
Writing  time:5.115s
Average write speed 860.1x.
Fixating...
cdrecord: Input/output error. close track/session: scsi sendcmd: 
retryable error

CDB:  5B 00 02 00 00 00 00 00 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.009s timeout 480s
cmd finished after 0.009s timeout 480s
cdrecord: faio_wait_on_buffer for writer timed out.
cdrecord: Input/output error. prevent/allow medium removal: scsi 
sendcmd: retryable error

CDB:  1E 00 00 00 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 40s
cdrecord: Cannot fixate disk.
Fixating time:  466.776s
cdrecord: Input/output error. prevent/allow medium removal: scsi 
sendcmd: retryable error

CDB:  1E 00 00 00 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 40s
cdrecord: fifo had 77 puts and 10 gets.
cdrecord: fifo was 0 times empty and 2 times full, min fill was 89%.



Re: Infinite spin when trying to burn a CD

2019-03-26 Thread Edgar Pettijohn


On Mar 26, 2019 9:41 AM, Markus Rosjat  wrote:
>
> Hi,
>
> might not to much help but
>
> Am 26.03.2019 um 14:57 schrieb Maurice McCarthy:
> > I never looked at your dmesg earlier. These lines
> > 
> > cd0(ahci0:2:0): Check Condition (error 0x70) on opcode 0x1e
> >  SENSE KEY: Illegal Request
> > 
>
> the opcode is for the cdb prevent allow media removal so I assume your 
> hardware got a problem with the cdb send by the software so it might be 
> in a state where it still wants to read/write stuff.
>
> if you really want to figure out what the sense code or the check 
> condition error means you have to read up sbc specification on t10.org i 
> guess
>
>
> > suggest the Openbsd system finds something wrong with your hardware.
> > I'm not clever enough to speculate further. Sorry.
> > 
>
> regards
> -- 
> Markus Rosjat    fon: +49 351 8107224    mail: ros...@ghweb.de
>
> G+H Webservice GbR Gorzolla, Herrmann
> Königsbrücker Str. 70, 01099 Dresden
>
> http://www.ghweb.de
> fon: +49 351 8107220   fax: +49 351 8107227
>
> Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before 
> you print it, think about your responsibility and commitment to the 
> ENVIRONMENT
>

Have you tried cdrecord from ports? I haven't burnt a CD in awhile but last 
time I did I couldn't get cdio to work but cdrecord would.



Re: Infinite spin when trying to burn a CD

2019-03-26 Thread Markus Rosjat

sorry it might got a bit confusing

Am 26.03.2019 um 15:41 schrieb Markus Rosjat:


cd0(ahci0:2:0): Check Condition (error 0x70) on opcode 0x1e
 SENSE KEY: Illegal Request



the opcode is for the cdb prevent allow media removal so I assume your 
hardware got a problem with the cdb send by the software so it might be 
in a state where it still wants to read/write stuff.


it means the optcode does alllow or prevent media removal it depends on 
the prevent bits in the cdb but you basically just have a 00 for allow 
or a 01 for prevent in the cdb. Anyway since sense already told you the 
request is illegal you have to figure out what came befor the removal 
request so you might get a clue in what state the hardware is still.


--
Markus Rosjatfon: +49 351 8107224mail: ros...@ghweb.de

G+H Webservice GbR Gorzolla, Herrmann
Königsbrücker Str. 70, 01099 Dresden

http://www.ghweb.de
fon: +49 351 8107220   fax: +49 351 8107227

Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before 
you print it, think about your responsibility and commitment to the 
ENVIRONMENT




Re: Infinite spin when trying to burn a CD

2019-03-26 Thread Markus Rosjat

Hi,

might not to much help but

Am 26.03.2019 um 14:57 schrieb Maurice McCarthy:

I never looked at your dmesg earlier. These lines

cd0(ahci0:2:0): Check Condition (error 0x70) on opcode 0x1e
 SENSE KEY: Illegal Request



the opcode is for the cdb prevent allow media removal so I assume your 
hardware got a problem with the cdb send by the software so it might be 
in a state where it still wants to read/write stuff.


if you really want to figure out what the sense code or the check 
condition error means you have to read up sbc specification on t10.org i 
guess




suggest the Openbsd system finds something wrong with your hardware.
I'm not clever enough to speculate further. Sorry.



regards
--
Markus Rosjatfon: +49 351 8107224mail: ros...@ghweb.de

G+H Webservice GbR Gorzolla, Herrmann
Königsbrücker Str. 70, 01099 Dresden

http://www.ghweb.de
fon: +49 351 8107220   fax: +49 351 8107227

Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before 
you print it, think about your responsibility and commitment to the 
ENVIRONMENT




Re: Infinite spin when trying to burn a CD

2019-03-26 Thread Maurice McCarthy
I never looked at your dmesg earlier. These lines

cd0(ahci0:2:0): Check Condition (error 0x70) on opcode 0x1e
SENSE KEY: Illegal Request

suggest the Openbsd system finds something wrong with your hardware.
I'm not clever enough to speculate further. Sorry.



Re: Infinite spin when trying to burn a CD

2019-03-25 Thread Jérôme FRGACIC

Thanks for your reply.


# cdio -f /dev/rcd0c tao -s 1 file.iso

Maybe? Raw device and slow speed


I've try it, but unfortunetly it doesn't change anything, nothing is 
written on the disk and it spins forever.


Nevertheless, after further investigation, it seems that the problem 
only appear if the ISO image has a size greater than ~512k... I can 
blank a CD, write small ISO images (~512ko max), but if I try to write 
anything else, I got a CD that spin indefinitly without the possibility 
to eject it.




Re: Infinite spin when trying to burn a CD

2019-03-24 Thread Maurice McCarthy
On 23/03/2019, Jérôme FRGACIC  wrote:
> Hi misc,
>
> I encounter an annoying problem when I try to burn a CD on my laptop: my
> CD spin forever and nothing is written on it. Worst: it's impossible for
> me to eject the CD without rebooting.
>
> Here is the command I use:
>
> cdio -vv -f cd0c tao -d file.iso
>

# cdio -f /dev/rcd0c tao -s 1 file.iso

Maybe? Raw device and slow speed



Infinite spin when trying to burn a CD

2019-03-23 Thread Jérôme FRGACIC

Hi misc,

I encounter an annoying problem when I try to burn a CD on my laptop: my 
CD spin forever and nothing is written on it. Worst: it's impossible for 
me to eject the CD without rebooting.


Here is the command I use:

cdio -vv -f cd0c tao -d file.iso

and here is the output:

Features:
0x Profile List (56 bytes of data)
00 00 03 38|00 15 00 00 00 16 00 00 00 2b 00 00
00 1b 00 00 00 1a 00 00 00 14 00 00 00 13 00 00
00 12 00 00 00 11 00 00 00 10 00 00 00 0a 01 00
00 09 00 00 00 08 00 00 00 02 00 00
Profiles:
0x0015 Dual Layer DVD-R using Sequential recording
0x0016 Dual Layer DVD-R using Layer Jump recording
0x002b DVD+Recordable Dual Layer
0x001b DVD+Recordable
0x001a DVD+ReWritable
0x0014 Re-recordable DVD using Sequential recording
0x0013 Re-recordable DVD using Restricted Overwrite
0x0012 Re-writable DVD
0x0011 Write once DVD using Sequential recording
0x0010 Read only DVD
  * 0x000a Re-writable Compact Disc [Current Profile]
0x0009 Write once Compact Disc
0x0008 Read only Compact Disc
0x0002 Re-writable, with removable media
0x0001 Core (8 bytes of data)
00 01 0b 08|00 00 00 07 01 00 00 00
0x0002 Morphing (4 bytes of data)
00 02 07 04|02 00 00 00
0x0003 Removable Medium (4 bytes of data)
00 03 07 04|2b 00 00 00
0x0021 Incremental Streaming Writable (8 bytes of data)
00 21 0d 08|3d 0f 00 01 07 00 00 00
0x0023 Formattable (8 bytes of data)
00 23 09 08|00 00 00 00 00 00 00 00
0x002d CD Track at Once (TAO) (4 bytes of data)
00 2d 09 04|46 00 3f 0f
0x002e CD Mastering (Session at Once) (4 bytes of data)
00 2e 05 04|7f 00 0d 00
0x0037 CD-RW Media Write Support (4 bytes of data)
00 37 01 04|00 0f 00 00
0x0100 Power Management
01 00 03 00
0x0104 Microcode Upgrade (4 bytes of data)
01 04 07 04|00 00 00 00
0x0105 Timeout (4 bytes of data)
01 05 07 04|00 00 00 00
0x0107 Real Time Streaming (4 bytes of data)
01 07 15 04|1f 00 00 00
0x0108 Drive Serial Number (16 bytes of data)
01 08 03 10|52 38 56 30 36 47 56 43 37 30 30 32
59 4c 20 20
track 01 'd' 0031/00327168   0%

Nothing change after this. On dmesg output I obtain those errors.

cd0(ahci0:2:0): Check Condition (error 0x70) on opcode 0x1e
SENSE KEY: Illegal Request

Does anyone can help me on this issue?
If it can help, I put my full dmesg output below.

Kind regards,


Jérôme FRGACIC

PS: I do not have subscribe to this mailing list, so please add me as a 
recipient if you reply to this message.


OpenBSD 6.4 (GENERIC.MP) #8: Thu Mar 21 14:26:24 CET 2019

r...@syspatch-64-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1999732736 (1907MB)
avail mem = 1929854976 (1840MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeb220 (42 entries)
bios0: vendor American Megatrends Inc. version "4.6.5" date 07/21/2012
bios0: CLEVO CO. W55xEU
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT MCFG SSDT HPET SSDT SSDT SSDT ASF! BGRT
acpi0: wakeup devices P0P1(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) 
USB5(S3) USB6(S3) USB7(S3) PXSX(S5) RP01(S4) PXSX(S5) RP03(S4) RP04(S4) 
PXSX(S5) RP05(S4) PXSX(S5) [...]

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) CPU B830 @ 1.80GHz, 1796.22 MHz, 06-2a-07
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,XSAVE,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN

cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Celeron(R) CPU B830 @ 1.80GHz, 1795.93 MHz, 06-2a-07
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,XSAVE,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN

cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xf800, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP03)
acpiprt3 at acpi0: bus 3 (RP04)
acpiprt4 at acpi0: bus 4 (RP05)
acpiprt5 at acpi0: bus -1 (RP06)
acpiec0 at acpi0
acpicpu0 at acpi0: C2(500@80 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C2(500@80 mwait.1@0x10), C1(1000@1