LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-31-2005, 09:35 AM   #1
anindyanuri
Member
 
Registered: Jan 2005
Location: India
Distribution: Kubuntu Gutsy
Posts: 450

Rep: Reputation: 30
cdrecord not working


Using FC3

I want to copy a .tar file to my CD-RW disc. I am using LG 32X 10X 40X ATAPI device.

I logged in terminal as root (with su)

using the following command
Code:
cdrecord dev=ATAPI:1,0,0 --speed=4 --multi file.tar
I can see that burning light (green light for indication of burning) is on and it is writing something but after finishing I cannot find the required .tar file in the disc. I tried four times and all the times --multi option was on and I could able to see that cdrecord recognize the previous session and I am getting Track1, Track2, Track3 etc. each time I tried but never find the required file to the disc.

What is wrong with my command?

Regards
 
Old 07-31-2005, 10:53 AM   #2
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,074

Rep: Reputation: 59
cdrecord only records to disk ISO files. Cdrecord understands the file you're giving to him as an ISO file, that's why you don't have it when burning is done. You first have to make an ISO file of the file(s) you want to burn.

As this is quite boring/complicated to do, a friend of mine did a small script that does the ISO and burning "on the fly". Here it goes:
Code:
#!/bin/sh
#
# grabacion de cds iso

export CDR_DEVICE=/dev/hdc
export CDR_SPEED=52
export CDR_FIFOSIZE=51m

if [ $# -eq 0 ]
then
  echo -e "Used mode: `basename $0` [-s] <path to burn>\n"
  exit 1
fi

if [ "$1" = "-o" ]; then
  OVER="-overburn -dao"
  shift
fi

if [ "$1" = "-d" ]; then
  DUMMY="-dummy"
  shift
fi

[ "$1" != "-" ] && SIZE=`mkisofs -f -J -q -print-size "$@"`

echo Burning on dev $CDR_DEVICE a ${CDR_SPEED}X

if [ "$SIZE" ] ; then
  mkisofs -quiet -f -J "$@" | cdrecord dev=/dev/hdc -tao speed=52 driveropts=burnfree -v $DUMMY $OVER tsize="$SIZE"s -
else
  cdrecord dev=/dev/hdc -tao speed=52 driveropts=burnfree -v -
fi

exit 0
Please make any needed changes to fit your burner (mine is hdc, but your can be hdd or something else)

Hope it helps
 
Old 07-31-2005, 11:56 AM   #3
anindyanuri
Member
 
Registered: Jan 2005
Location: India
Distribution: Kubuntu Gutsy
Posts: 450

Original Poster
Rep: Reputation: 30
Thank you for this help with providing the shell script.

Regards
Anindyanuri
 
  


Reply



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 CrEsPo Linux - Software 15 04-25-2005 10:34 AM
cdrecord not working after compiling new kernel 2.6.7 alitrix Linux - Hardware 8 12-30-2004 04:06 PM
cdrecord not working - "cannot open /dev/pg1" ghambis Slackware 10 02-12-2004 05:11 PM
cdrecord.. ramsees Linux - Software 2 08-07-2003 03:47 PM
cdrecord not working..... nutshell Linux - General 2 03-02-2002 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:07 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration