View previous topic :: View next topic |
Author |
Message |
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9883 Location: almost Mile High in the USA
|
Posted: Mon Apr 04, 2022 1:11 am Post subject: optical disk burning still working? |
|
|
Anyone burn CD/DVD's with Linux/Gentoo recently ( app-cdr/cdrtools-3.02_alpha09-r3 ) ?
Wonder if I'm just running into a bad batch of discs, bad recorder drives, or is it software bit rot? _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 3007 Location: Edge of marsh USA
|
Posted: Mon Apr 04, 2022 3:50 am Post subject: |
|
|
What commandline is causing you grief? I'll be happy to try to duplicate.
Added: Just for grins, I made a quick 600+ MB CD using Brasero. I couldn't get Graveman to recognize the blank CD-R. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9883 Location: almost Mile High in the USA
|
Posted: Mon Apr 04, 2022 4:33 am Post subject: |
|
|
Been trying to erase CDRW and DVD+RW discs and they simply won't erase... it just times out and hangs or prematurely exits...
cdrecord dev=x,y,z --blank=all
I suppose I need a blank disc before I can start with the next step, actually trying to record... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 3007 Location: Edge of marsh USA
|
Posted: Mon Apr 04, 2022 5:42 am Post subject: |
|
|
I finally got graveman to work right. I had to manually add the CDRW device as /dev/sr1 because the autodetected device wouldn't recognize the media.
cdrecord is is slow, at least on my hardware, which is a TSSTcorp' 'CDDVDW SH-S223F ' 'SB03' Removable CD-ROM with 1x-4x CD-RW media.
But, so far so good. This worked OK, as root:
Code: | # cdrecord dev=5,0,0 blank=fast
Cdrecord-ProDVD-ProBD-Clone 3.02a09 (x86_64-pc-linux-gnu) Copyright (C) 1995-2016 Joerg Schilling
scsidev: '5,0,0'
scsibus: 5 target: 0 lun: 0
Linux sg driver version: 3.5.36
Using libscg version 'schily-0.9'.
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'TSSTcorp'
Identifikation : 'CDDVDW SH-S223F '
Revision : 'SB03'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
Starting to write CD/DVD/BD at speed 4 in real BLANK mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts. |
I don't have time tonight to do this again with 'blank=all' but I think it will work fine if I just wait it out. When I did it as my ordinary user with blank=all I got a lot of error messages about permissions but I think it also worked, but I was impatient.
Note that the manual and an example on-line both do not use -- to precede the command blank= although for as long as I let it run with --blank=all I think it may have been working.
I'll do this again tomorrow afternoon with blank=all just to confirm that it also works, but I'm done for the night. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9883 Location: almost Mile High in the USA
|
Posted: Mon Apr 04, 2022 6:23 am Post subject: |
|
|
hmm... looks like it's working ok for you. I might even have the same TSSTcorp drive somewhere but not sure where it is at the moment...
Might have bad CDRW/DVD+RWs...
Code: | # cdrecord dev=7,0,0 blank=all
Cdrecord-ProDVD-ProBD-Clone 3.02a09 (x86_64-pc-linux-gnu) Copyright (C) 1995-2016 Joerg Schilling
scsidev: '7,0,0'
scsibus: 7 target: 0 lun: 0
Linux sg driver version: 3.5.36
Using libscg version 'schily-0.9'.
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'LITE-ON '
Identifikation : 'DVDRW SOHW-1673S'
Revision : 'JS02'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
resid: 16
resid: 16
Using generic SCSI-3/mmc-2 DVD-R/DVD-RW/DVD-RAM driver (mmc_dvd).
Driver flags : NO-CD DVD MMC-3 SWABAUDIO BURNFREE FORCESPEED
Supported modes: PACKET SAO
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
Starting to write CD/DVD/BD at speed 1 in real BLANK mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
cdrecord: Input/output error. blank unit: scsi sendcmd: no error
CDB: A1 00 00 00 00 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 24 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x24 Qual 0x00 (invalid field in cdb) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.001s timeout 9600s
cdrecord: Cannot blank disk, aborting.
|
_________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54809 Location: 56N 3W
|
Posted: Mon Apr 04, 2022 8:27 am Post subject: |
|
|
eccerr0r,
CD-R and dual layer Bluray work with Xfburn. I don,t know what it uses to move the data to the media.
I've done both over that last few days. I suspect that DVDs still work but its about 6 months since I tested. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 3007 Location: Edge of marsh USA
|
Posted: Mon Apr 04, 2022 1:24 pm Post subject: |
|
|
It looks like xfburn and brasero use libburn and libisofs. graveman uses cdrtools. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 3007 Location: Edge of marsh USA
|
Posted: Mon Apr 04, 2022 1:38 pm Post subject: |
|
|
And finally, "# cdrecord dev=5,0,0 blank=all" completes successfully at speed 4 with no drama. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9883 Location: almost Mile High in the USA
|
Posted: Mon Apr 04, 2022 2:33 pm Post subject: |
|
|
Thanks for testing. The diagnostic output I'm getting is not clear at what the fault is (can anyone make heads or tails from the diag output?) _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 3007 Location: Edge of marsh USA
|
Posted: Mon Apr 04, 2022 3:46 pm Post subject: |
|
|
Do you have any associated output with dmesg?
I believe everything starts with the i/o error: "cdrecord: Input/output error. blank unit: scsi sendcmd: no error"
How does this drive do with reading existing disks and writing ordinary CD-R disks?
How about trying blanking the disk with Brasero or XFBurn which don't use CDRecord? _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9883 Location: almost Mile High in the USA
|
Posted: Mon Apr 04, 2022 6:00 pm Post subject: |
|
|
I've not had as many issues with write once discs most of the time. But if I'm experimenting, the cost adds up. It's these phase change/rewriteable discs that have been problematic. Was hoping that erasing would refresh the surface of these rewriteables but perhaps my expectations were too high of these discs.
Also I've gotten a lot of old/used rewriter drives that I don't know of their condition, and hoping testing with rewriteable media would reduce the number of coasters if the drive itself has issues... this too might be a fallacy.
These unserviceable DVD rewriter drives become balloon poppers if they fail writing discs... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6780
|
Posted: Mon Apr 04, 2022 6:22 pm Post subject: |
|
|
You might try the latest (and definitely last) version of cdrecord (app-shells/schily-tools) from the mv overlay.
And in case you did not care before: Follow the recommendation of the cdrecord author to make the binary suid: Only then it can use all kernel features for improving communication with the device. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9883 Location: almost Mile High in the USA
|
Posted: Tue Apr 05, 2022 12:59 am Post subject: |
|
|
BTW are you guys using ATAPI, SATA, USB, or USB-ATAPI bridge recorders for testing?
The SH-S223F is SATA I believe, but IIRC the SOHW-1673S is also SATA. Not sure if it makes a difference... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 3007 Location: Edge of marsh USA
|
Posted: Tue Apr 05, 2022 2:10 am Post subject: |
|
|
I'm using SATA drives.
Regarding the cost of disks, about a dozen or so years ago, I had multiple opportunities to pick up from various bargain-bins large spindles of CD-R, CD-RW, DVD+RW, and even a 50 pack of double-layer DVD+RW disk. I'll never run out. My heirs will never run out. I was happy to toss a few into this experiment. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9883 Location: almost Mile High in the USA
|
Posted: Tue Apr 05, 2022 2:12 am Post subject: |
|
|
Know what, it might just be due to shelf life of these discs too... a lot of these discs are well past 10 years old and quite possibly they've simply just gone bad?
I as well have a bunch of spindles of the write-once variety, alas, it's the rewritables that seem to be problematic. Don't have as many rewriteables however. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
scdbackup n00b
Joined: 19 Oct 2014 Posts: 23 Location: Germany
|
Posted: Tue Apr 05, 2022 7:10 am Post subject: |
|
|
Hi,
the error message from cdrecord means that the SCSI command A1h BLANK
failed with an error code which indicates that the command itself is
inappropriate or malformed.
A possible reason would be that the medium is not erasable, i.e. a
CD-R instead of a CD-RW.
What do you get if you insert the medium and do
Code: |
cdrecord dev=7,0,0 -minfo
|
(Note that the desired option is "-minfo" not "-msinfo", which would
do something different.)
With a blank-worthy it would have to reply:
Code: |
...
Mounted media type: CD-RW
Disk Is erasable
data type: standard
disk status: complete
...
|
With a non-erasable CD-R it would reply:
Code: |
...
Mounted media type: CD-R
Disk Is not erasable
data type: standard
disk status: empty
...
|
If it is identified as a CD-RW but "disk status:" is "empty", then it
needs no blanking yet and should be writable in the state it is in.
(I am developer of libburn. My drives are partly attached directly via
SATA and partly they sit in USB boxes. If the riddle about eccerr0r's
drive and media deepens, i will have to ask for experiments with
cdrskin or xorriso.)
Have a nice day
Thomas |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9883 Location: almost Mile High in the USA
|
Posted: Tue Apr 05, 2022 7:53 am Post subject: |
|
|
Sometimes these discs don't even detect in some of my drives...
I think I have at least one of Lite-on, TSSC, HP (probably BENQ or Lite-On) and Pioneer drives. Tried the Pioneer the most recent on some of these discs and they don't even show up, seems the drive gives up when inserted. The Lite-On drive reports bad sectors when read when inserted due to udev probably searching for label information, maybe I need to temporarily stop udev from doing this (though one would expect brasero would automatically do this?)
Anyway these are definitely phase change media (gray) and have rewritable written on the label (CDRW/DVD+RW). Just that these discs seem to confuse the drive:
Code: | # cdrecord dev=4,0,0 -minfo
Cdrecord-ProDVD-ProBD-Clone 3.02a09 (x86_64-pc-linux-gnu) Copyright (C) 1995-2016 Joerg Schilling
scsidev: '4,0,0'
scsibus: 4 target: 0 lun: 0
Linux sg driver version: 3.5.36
Using libscg version 'schily-0.9'.
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'ATAPI '
Identifikation : 'DVD A DH20A4P '
Revision : '9P59'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE FORCESPEED
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R LAYER_JUMP
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
cdrecord: CD/DVD/BD-Recorder not ready.
|
Took more than a minute before it gave up... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
scdbackup n00b
Joined: 19 Oct 2014 Posts: 23 Location: Germany
|
Posted: Tue Apr 05, 2022 12:58 pm Post subject: |
|
|
Hi,
eccerr0r wrote:
> cdrecord: CD/DVD/BD-Recorder not ready.
> Took more than a minute before it gave up...
This looks like a bad burner or a bad reaction of the burner on a medium
with which it cannot cope.
> Identifikation : 'DVD A DH20A4P '
This drive must be quite old. Nobody wants to sell some and the firmware
offers are from 2006.
What does the 'LITE-ON' 'DVDRW SOHW-1673S' (which can hardly be much
younger) tell about the medium ?
After all, cdrecord came to the attempt to blank the medium. So it must
have recognized it as something to which it can burn.
(Old burners don't necessarily have to go bad. My oldest one in service
is a LG GGW-H20L of 2008 which just survived the demise of its second
USB box.)
> The Lite-On drive reports bad sectors when read when inserted due to
> udev probably searching for label information, maybe I need to
> temporarily stop udev from doing this (though one would expect brasero
> would automatically do this?)
Another suspect would be the desktop and its possible automounting attempts.
Whatever, the combination of a medium and a drive where cdrecord cannot
report the detected medium type is not usable. Other burn software will
hardly yield better results.
At best we could learn about the sequence of SCSI commands and the replies
from the drive which get performed until cdrecord decides that nothing goes.
For that you would add option -VV to the cdrecord command and prepare for
a flood of messages:
Code: |
cdrecord -VV dev=4,0,0 -minfo 2>&1 | tee -i /tmp/cdrecord_scsi_log
|
The file /tmp/cdrecord_scsi_log would then be interesting to read.
Responsible for the detection of media types is 46h READ CONFIGURATION.
In case of a healthy relation between drive and CD-RW the transaction
should be reported as
Code: |
Executing 'get_configuration' command on Bus 33 Target 0, Lun 0 timeout 40s
CDB: 46 00 00 00 00 00 00 01 E0 00
cmd finished after 0.001s timeout 40s
Got 480 (0x1E0), expecting 480 (0x1E0) bytes of data.
Received Data: 00 00 01 E0 00 00 00 0A 00 00 03 48 00 43 00 00 00 42 00 00 00 41 00 00 00 40 00 00 00 2B 00 00 00 1B 00 00 00 1A 00 00 00 16 00 00 00 15 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 00 01 0B 08 00 00 00 07 01 00 00 00 00 02 07 04
|
The bytes "00 0A" at offset 6 tell that the current medium matches
profile 0x000A "CD-RW". With no medium inserted i get
Code: |
Received Data: 00 00 01 E0 00 00 00 00 ...
|
I would assume that the unwilling drive will answer something like that,
too.
(With my software an equivalent run would be:
Code: |
cdrskin -V dev=4,0,0 -minfo 2>&1 | tee -i /tmp/cdrskin_scsi_log
|
or
Code: |
xorriso -scsi_log on -outdev /dev/sr0 -toc 2>&1 | tee -i /tmp/xorriso_scsi_log
|
I deem the SCSI log format of libburn better readable. But i'm biased.)
Have a nice day
Thomas |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9883 Location: almost Mile High in the USA
|
Posted: Tue Apr 05, 2022 10:43 pm Post subject: |
|
|
Got one CD-R burned successfully finally, alas I forget which drive I did the successful burn in, but likely I think the 204 might be a dud drive... and have a lot of dud media (CDRW/DVD+RW)... so I guess I can safely assume the software can be ruled out of the search for which pieces are bad? _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
scdbackup n00b
Joined: 19 Oct 2014 Posts: 23 Location: Germany
|
Posted: Wed Apr 06, 2022 11:31 am Post subject: |
|
|
Hi,
eccerr0r wrote:
> so I guess I can safely assume the software can be ruled out of the search for which pieces are bad?
You have to blame the hardware when the proposed medium information runs of
cdrecord, cdrskin, or xorriso do not yield a plausible result. (Normally
without the super verbose SCSI log caused by -VV, -V, or -scsi_log "on",
respectively.)
The hardware consists of medium, drive, possibly SATA-USB bridge, cables,
and computer entrails from USB or SATA sockets to the CPU.
In most cases the problems sit in drive or medium, quite often in special
combinations of both. One needs to find a reliable drive and reliable
media to tell which part of the unrealiable hardware chain is to blame.
Have a nice day
Thomas |
|
Back to top |
|
|
|