My CD-R discs all corrupted by freebsd.

Hello everyone!
I have a usb optical drive connected to my laptop (an asus sdrw-08u9m-u model) I want to burn something on cd-r using cdrecord from cdr-tools. cdrecord runs but after some seconds stops with an error (io error) I think its from driver. (I tried wodim from cdrkit port so) but nothing changed. my cd-r all corrupted but two discs that I burn in windows and linux. I used wodim in linux without problem. I haven't any raw discs in hands to try more 😭 :mad:
 
I use those tools for many years, burned many CDs and never had any problems - at least not ones, I messed things up by my own stupidity 😂.
What versions of FreeBSD and the cdrtools you are using?
And how exactly do you do the burning process in detail?
 
FreeBSD-14.4-RELEASE-p5
cdrtools-2024.03.21

Firstly find correct scsi id/number:
Code:
# cdrecord -scanbus

The output for me is:
Code:
Cdrecord-ProDVD-ProBD-Clone 3.02 2024/03/18 (amd64-unknown-freebsd14.3) Copyright (C) 1995-2019 Joerg Schilling
Using libscg version 'schily-0.9'.
scsibus0:
        0,0,0     0) '' '' '' NON CCS Disk
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus1:
        1,0,0   100) 'ASUS' 'SDRW-08U9M-U' '0403' Removable CD-ROM
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *

So I use the following command to burn cd-r:
Code:
# cdrecord dev=1,0,0 myimage.iso
 
well, I've had issues with USB connected DVD burners that thankfully does not happend with SATA -bus connected Internal DVDplayers.
then again We always used USB connected DVDplayers with an external PSU, for SPARC/Solaris for both Fujitsus M10/M12 range and Oracles T8 SPARC series
Im leaning towards the issue being the quality/speed of the USB port used on the PC and if the DVD device gets enough Power though the USB connection , MOST USB DVDplayers are shipped with DUAL USB connection cord. The idea being that you connect the two USB connectors to differnet USB chips on the motherboard to be powered from 2 sourcces therby getting some more milliAMPs to the DVDPlayer motor.
 
Hello everyone!
I have a usb optical drive connected to my laptop (an asus sdrw-08u9m-u model) I want to burn something on cd-r using cdrecord from cdr-tools. cdrecord runs but after some seconds stops with an error (io error) I think its from driver. (I tried wodim from cdrkit port so) but nothing changed. my cd-r all corrupted but two discs that I burn in windows and linux. I used wodim in linux without problem. I haven't any raw discs in hands to try more 😭 :mad:
It may be helpful to include the exact error you are getting.
 
FWIW, writing optical media is not tolerant of interrupts in the middle of writing a track. This is the biggest weak point of most of the cd writing tools that have been created in the opensource world. Jörg Schilling understood this and for years his utilities were the gold standard for writing optical media in the opensource world. Anything you can do to make your machine quiet and to give priority to the buffering/writing process on you machine is advised. I've gone as far as to put a machine single-user mode to write media so that it's less likely another process can interrupt the track writing...and obviously a SATA connected drive is better than a USB one.
 
I think SirDice should rename this thread to say CDs, not disks. It's misleading and sensationalist that FreeBSD would corrupt disks like hard drives.
Discs means CDs and DVDs generally speaking, not that a rename to something more specific to that wouldn't be helpful.

As far as the thread goes, one of the first things to try is lowering the speed to see if that's an issue, especially with I/0 problems.
 
Discs means CDs and DVDs generally speaking, not that a rename to something more specific to that wouldn't be helpful.

As far as the thread goes, one of the first things to try is lowering the speed to see if that's an issue, especially with I/0 problems.
Disc also is a name for these spinning rust devices. Damaging those MIGHT be seen as a serious problem by many.
 
I had a similar problem during some of my DVD writes due to dust. It's getting so little use over the years that it collects quite a bit of dust, and as you know optical drives are very sensitive to dust.

And now I literally wipe the head and inside the tray before using my laptop optical drive (don't scratch your head lens!).
 
Disc also is a name for these spinning rust devices. Damaging those MIGHT be seen as a serious problem by many.
It's not though. Discs are things like CD, dvd, bluray and laserdisc. Harddisks use platters and get their name from diskettes. It doesn't matter if damaging HDDs is serious, that's not what the previous title said.
Anyways it's a forum with a bunch of people speaking different languages, so more clarity is generally welcome, even if it was already clear.
 
My good old USB CD/DVD recorder, still faithful and reliable.

It's in its sturdy external case with its power supply and connected via USB 2.0.

%> lsusb
Bus /dev/usb Device /dev/ugen0.2: ID 059b:0152 Iomega Corp.

%> camcontrol devlist
<IOMEGA DVDRW4224E2Q-D A106> at scbus7 target 0 lun 0 (cd0,pass5)
Never an error, with cdrecords

He takes his time, but the job is reliable. They don't do things like him anymore...
 
I am not 100% sure about this,
Compact Disc, Hard / Floppy Disk.
Depends on the locale, I would say. I say "Disc", not only for storage media. This also is for the round discs in your backbone (hopefully completely in order), also in Disco (the noise temple).
 
Heh, I think it has to do with CD being from Europe/Japan.
Disc is British (the standard I and probably you learned), Disk is American.

However per Merriam Webster "compact disk" is incorrect term, disc is used, which may point to Americans not 'naturalizing' the British English term, using it as is.

Hard and Floppy disks are disks because they're "American".

I say this with 50/50 certainty - it is either correct, or not.
 
On topic, I also had these issues using a USB DVD burner on FreeBSD.

Solution was to use a old Win7 box with CDBurnerXP.
CD/DVD burning might be a fragile operation but on the Windows side it is done right for a lot of years...it is considered a stable legacy thing. Pop in a disc, use your favourite free one-click-burn tool, or even there is something built in for Windows.

It's 2026 and I really don't wish to be reminded of buffer underruns and all sorts of crap from 1999. If I need to burn a CD/DVD it is because I need to install something somewhere or listen to an album in car.

This is one of the areas where the FreeBSD/Unix low level approach just doesn't cut it any more. The cdrecord or whatever commands I used back then are even gone from my history. Can't we just burn an image without hassle in 2026?
 
On topic, I also had these issues using a USB DVD burner on FreeBSD.

Solution was to use a old Win7 box with CDBurnerXP.
CD/DVD burning might be a fragile operation but on the Windows side it is done right for a lot of years...it is considered a stable legacy thing. Pop in a disc, use your favourite free one-click-burn tool, or even there is something built in for Windows.

It's 2026 and I really don't wish to be reminded of buffer underruns and all sorts of crap from 1999. If I need to burn a CD/DVD it is because I need to install something somewhere or listen to an album in car.

This is one of the areas where the FreeBSD/Unix low level approach just doesn't cut it any more. The cdrecord or whatever commands I used back then are even gone from my history. Can't we just burn an image without hassle in 2026?
the hardware beneath is moving all the time , 5 Gb/s and 10 Gb/s USB , when acquiring a DVD/BD player you can get anything from USB2 to USB 3.2 and then you plugit into whatever free USB port you have in the machine, what could go wrong ??????
 
On the New Desktop I have this : https://www.asus.com/se/motherboards-components/optical-drives/external-blu-ray-drive/sbw-06d5h-u/
as the machine has USB 3.2 Superspeed connectors and the BD burner is USB3.2 compatible .....
running lasts weeks 15.1 stable local buildworld/buildkernel

# usbconfig

ugen0.6: <ASUS External Drive BUFFALO INC. (formerly MelCo., Inc.)> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (0mA)

it professes to run at 5 Gb/s connection USB superspeed.

Not sure its totally stable but it Burns freebsd Release & snapshot DVDs.
but isnt able to do the fixation step. ( ofcourse Joerg Shilling never saw this hardware. )
the resulting DVD is readable.

EDIT: This is the log from K3B utility
==================================

< a thousand lines deleted >
Track 01: 1316 of 1319 MB written (fifo 100%) [buf 97%] 5.4x.
Track 01: 1317 of 1319 MB written (fifo 100%) [buf 91%] 4.9x.
Track 01: 1318 of 1319 MB written (fifo 100%) [buf 94%] 5.5x.
Track 01: 1319 of 1319 MB written (fifo 100%) [buf 100%] 5.5x.
Track 01: Total bytes read/written: 1383837696/1383837696 (675702 sectors).
Writing time: 298.040s (00:04:58.040)
Average write speed 3.4x.
Min drive buffer fill was 91%
Fixating...
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 9.774s timeout 1000s
cdrecord: Cannot fixate disk.
Trouble flushing the cache
Fixating time: 9.774s (00:00:09.774)
cdrecord: fifo had 42232 puts and 42232 gets.
cdrecord: fifo was 0 times empty and 10957 times full, min fill was 89%.

cdrecord command:
-----------------------
/usr/local/bin/cdrecord -v gracetime=2 dev=/dev/cd0 speed=8 -sao driveropts=burnfree dev=7,0,0 -data -tsize=675702s -
 
Back
Top