LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-03-2007, 04:22 AM   #1
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Rep: Reputation: 30
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...
 
Old 05-03-2007, 05:26 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
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
 
Old 05-03-2007, 05:45 AM   #3
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Original Poster
Rep: Reputation: 30
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
 
Old 05-03-2007, 12:46 PM   #4
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 530

Rep: Reputation: 30
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
 
Old 05-03-2007, 09:21 PM   #5
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Original Poster
Rep: Reputation: 30
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??
 
Old 05-04-2007, 05:51 AM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
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.
 
Old 05-04-2007, 12:37 PM   #7
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 530

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

Last edited by urka58; 05-04-2007 at 12:42 PM.
 
Old 05-06-2007, 07:30 PM   #8
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Original Poster
Rep: Reputation: 30
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?

 
Old 05-07-2007, 06:11 AM   #9
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
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.
 
Old 05-08-2007, 02:10 AM   #10
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Original Poster
Rep: Reputation: 30
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...
 
Old 05-08-2007, 06:58 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,858

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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.
 
Old 05-08-2007, 09:05 PM   #12
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Original Poster
Rep: Reputation: 30
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cdrecord bong.mau Linux - Software 2 04-17-2007 11:41 AM
cdrecord help bruse Linux - Software 3 02-07-2006 11:32 PM
cdrecord Kent Emia Linux - Newbie 2 03-05-2004 10:01 PM
Cdrecord How To Juventino Linux - Software 4 03-05-2004 04:47 PM
cdrecord Pedroski Linux - Software 4 02-20-2004 11:15 AM


All times are GMT -5. The time now is 05:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration