LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help with cdrecord.. (https://www.linuxquestions.org/questions/linux-newbie-8/help-with-cdrecord-550894/)

jaepi 05-03-2007 04:22 AM

help with cdrecord..
 
im currently burning a text file to a cd-r and im using this command that i got from the net...

[root@localhost dinglej]# cdrecord speed=2 dev=1,1,0 -data perplexity.txt

but it does'nt work...this is the message that it gives me...

"cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://bugzilla.redhat.com/bugzilla
Note: The author of cdrecord should not be bothered with problems in this version.
scsidev: '1,1,0'
scsibus: 1 target: 1 lun: 0
cdrecord: Success. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'."

what do you think is wrong with my command??lol...did i lack something?? pls help... :D

Lenard 05-03-2007 05:26 AM

So your CD-R device is not dev=1,1,0, try using something like;

cdrecord dev=/dev/cdrom -data perplexity.txt

Or find out which device number to use with cdrecord; cdrecord -scanbus

Code:

$ cdrecord -scanbus
Cdrecord-Clone 2.01 (cpu-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://bugzilla.redhat.com/bugzilla
Note: The author of cdrecord should not be bothered with problems in this version.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c        1.83 04/05/20 Copyright 1997 J. Schilling').
scsibus2:
        2,0,0  200) 'PIONEER ' 'DVD-RW DVR-K16RS' '1.39' Removable CD-ROM

Which means the command is: cdrecord speed=2 dev=2,0,0 -data perplexity.txt

jaepi 05-03-2007 05:45 AM

i have figured out a new command...here it is..

cdrecord -v -eject -data dev=/dev/hdd speed=16 /home/dinglej/perplexity.txt

but im producing again,another error..

cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://bugzilla.redhat.com/bugzilla
Note: The author of cdrecord should not be bothered with problems in this version.
TOC Type: 1 = CD-ROM
scsidev: '/dev/hdd'
devname: '/dev/hdd'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c 1.83 04/05/20 Copyright 1997 J. Schilling').
SCSI buffer size: 64512
atapi: 1
cdrecord: Warning: controller returns wrong size for CD capabilities page.
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'SONY '
Identifikation : 'CD-RW CRX320E '
Revision : 'NYK1'
Device seems to be: Generic mmc2 DVD-ROM.
cdrecord: Warning: controller returns wrong size for CD capabilities page.
Current: 0x0009
Profile: 0x0010
Profile: 0x000A
Profile: 0x0009 (current)
Profile: 0x0008
Profile: 0x0002
cdrecord: Warning: controller returns wrong size for CD capabilities page.
cdrecord: Warning: controller returns wrong size for CD capabilities page.
cdrecord: Warning: controller returns wrong size for CD capabilities page.
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
Drive buf size : 1422080 = 1388 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 0 MB padsize: 598 KB
Total size: 0 MB (00:04.02) = 302 sectors
Lout start: 1 MB (00:06/02) = 302 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Is not unrestricted
Is not erasable
Disk sub type: Medium Type A, high Beta category (A+) (3)
ATIP start of lead in: -11634 (97:26/66)
ATIP start of lead out: 359846 (79:59/71)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation
Blocks total: 359846 Blocks current: 358942 Blocks remaining: 358640
Forcespeed is OFF.
cdrecord: Warning: controller returns wrong size for CD capabilities page.
cdrecord: Warning: controller returns wrong size for CD capabilities page.
Speed set to 2822 KB/s
Starting to write CD/DVD at speed 16.0 in real TAO mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
BURN-Free is OFF.
Performing OPC...
Starting new track at sector: 904
Track 01: 0 of 0 MB written.
WARNING: padding up to secsize.
Track 01: writing 598 KB of pad data.
Track 01: Total bytes read/written: 230/614400 (300 sectors).
cdrecord: Success. flush cache: scsi sendcmd: no error
CDB: 35 00 00 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 03 00 00 00 00 0A 00 00 00 00 0C 00 00 00
Sense Key: 0x3 Medium Error, Segment 0
Sense Code: 0x0C Qual 0x00 (write error) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 36.702s timeout 120s
Trouble flushing the cache
cdrecord: Cannot close track.
Writing time: 36.828s
Average write speed 0.1x.
Fixating...
cdrecord: Success. close track/session: scsi sendcmd: no error
CDB: 5B 00 02 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 03 00 00 00 00 0A 00 00 00 00 72 00 00 00
Sense Key: 0x3 Medium Error, Segment 0
Sense Code: 0x72 Qual 0x00 (session fixation error) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.647s timeout 480s
cmd finished after 0.647s timeout 480s
cdrecord: Cannot fixate disk.
Fixating time: 0.652s
cdrecord: fifo had 1 puts and 1 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.

and of course, again, the file was not burned.. T_T

urka58 05-03-2007 12:46 PM

So.. are you using scsi emulation ? If yes, your cd-burner won't be /dev/hdd , but /dev/sr0 or /dev/scd0.
If not (may be you loaded a 2.6 kernel) you must use the ATAPI tranport layer. In the latter try to determine what cdrecord assigns to your Cd-burner by
cdercord dev=ATAPI -scanbus.
you should get an output like

elio@darkstar:~$ cdrecord dev=ATAPI -scanbus
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.20.1
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) 'HL-DT-ST' 'DVD-ROM GDR8163B' '0L23' Removable CD-ROM
0,1,0 1) 'HL-DT-ST' 'DVDRAM GSA-4165B' 'DL03' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *

so, as my dvd-burner is HL-DT-ST' 'DVDRAM GSA-4165B' 'DL03' Removable CD-ROM I'd do
cdrecord -v dev=ATAPI:0,1,0 -data /path/to/my/file
Hope this helps
Ciao

jaepi 05-03-2007 09:21 PM

im using your command dude, but im still getting this reply...

cdrecord -v -eject -data dev=ATA:1,1,0 speed=4 perplexity.txt


status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 03 00 00 00 00 0A 00 00 00 00 72 00 00 00
Sense Key: 0x3 Medium Error, Segment 0
Sense Code: 0x72 Qual 0x00 (session fixation error) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 3.851s timeout 480s
cmd finished after 3.851s timeout 480s
cdrecord: Cannot fixate disk.
Fixating time: 3.856s
cdrecord: fifo had 1 puts and 0 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.

cannot fixate disk...what does that imply??

Lenard 05-04-2007 05:51 AM

Please update the firmware of this device;

Vendor_info : 'SONY '
Identifikation : 'CD-RW CRX320E '
Revision : 'NYK1'

http://sony.storagesupport.com/cdrw/firmware.htm#320

Note: this has do be done form a Windows OS.

urka58 05-04-2007 12:37 PM

Is cdrecord running suid ?
Anyway the command is
cdrecord -v dev=ATAPI:0,1,0 -data /path/to/my/file
ATAPI not ATA
Ciao

jaepi 05-06-2007 07:30 PM

Quote:

Originally Posted by Lenard
Please update the firmware of this device;

Vendor_info : 'SONY '
Identifikation : 'CD-RW CRX320E '
Revision : 'NYK1'

http://sony.storagesupport.com/cdrw/firmware.htm#320

Note: this has do be done form a Windows OS.


uhhmmm...im just curious...why do i have to update the firmware of my burner?

:D

Lenard 05-07-2007 06:11 AM

Because of the bugs/fixes/improvements in the older firmware versions. Revision : 'NYK1' has been replaced a number of times, the current version is NYK5 as per the link.

jaepi 05-08-2007 02:10 AM

there is something wrong with the way i set my commands in burning the file...i tried burning files in windows system and it works well...uhhmmm....im still figuring it out...

michaelk 05-08-2007 06:58 AM

The file being burned using the cdrecord command must be a iso9660 filesystem. You can create a iso9660 filesystem using the mkisofs utility.

BTW k3b is an excellent GUI CD writing application.

jaepi 05-08-2007 09:05 PM

Quote:

Originally Posted by michaelk
The file being burned using the cdrecord command must be a iso9660 filesystem. You can create a iso9660 filesystem using the mkisofs utility.

BTW k3b is an excellent GUI CD writing application.

i tried making iso files but i cant burn them...


All times are GMT -5. The time now is 02:32 PM.