LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-24-2005, 07:31 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
cdrecord - command line interface


Hi folks,

I'm prepared to learn using command line to burn a multi session data CD (not with K3b nor cdroaster), can following command work for me

# cdrecord -v -eject speed=40 dev=ATA:1,0,0 -multi -data /pathto/iso.image
(dev=ATA:1,0,0 is correct, found with # cdrecord --scanbus)

Shall I set the tag -toc OR -dao

TIA

B.R.
satimis
 
Old 05-24-2005, 11:52 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Here are my notes on multi session

#All images must have "-multi" used on all cdrecord sessions.

For example: I have two folders which I want to record.
I am going to use -graft-points so the folders are created
and all data is put inside them.

/mnt/tech/achome
/mnt/tech/aclinux

#The first mkisofs session is generated as normal.
Code:
cd /mnt/tech

mkisofs -R -J -graft-points "achome=./achome" |\
cdrecord -v dev=ATA:1,0,0 -multi -data -
#Additional sessions must have the track number ( -C # ) included when generated.
Code:
cd /mnt/tech
next=`cdrecord -msinfo dev=ATA:1,0,0`
echo "Next Track is $next"
mkisofs -R -J -o /home/mystuff.iso -C $next \
-M /dev/cdrom -graft-points "aclinux=./aclinux" |\
cdrecord -v dev=ATA:1,0,0 -eject -multi -data /home/mystuff.iso
#To burn additional sessions directly to the cdrom, would look like this....
Code:
cd /mnt/tech
next=`cdrecord -msinfo dev=ATA:1,0,0`
echo "Next Track is $next"
mkisofs -R -J -C $next -M /dev/cdrom -graft-points "aclinux=./aclinux" |\
cdrecord -v dev=ATA:1,0,0 -eject -multi -data -
 
Old 05-24-2005, 06:40 PM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi homey,

Tks for your detail advice.

I usually did in following way to burn multi directories simultaneously creating a new name for each of them;

mkisofs -R -l -graft-points -hide-rr-moved \
/name-A/=/path/to/dir-A/ \
/nanm-B/=/path/to/dir-B/ \
/name-C/=/path/to/dir-C/ |\
cdrecord dev=ATA:1,0,0 -v -eject -

Can the above applies to multi mount points? Tks

This is the first time for me applying "multi session" flag. I'm not sure whether I need to put

tao, dao, toc

According to "man cdrecord"

-tao
Code:
Retrieve and print out the table of content or PMA of a CD.
With this option, cdrecord will work with CD-R drives and with CD-ROM drives
I'm not very clear of what it means
Code:
"cdrecord will work with CD-R drives and with CD-ROM drives"
What is the function of the flag "-M" on
Code:
cd /mnt/tech
next=`cdrecord -msinfo dev=ATA:1,0,0`
echo "Next Track is $next"
mkisofs -R -J -o /home/mystuff.iso -C $next \
-M /dev/cdrom -graft-points "aclinux=./aclinux" |\
cdrecord -v dev=ATA:1,0,0 -eject -multi -data /home/mystuff.iso
TIA

B.R.
satimis
 
Old 05-24-2005, 06:51 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Hi,
Man makisofs shows -M as the path to the cdrecording device.

I haven't actually tried more than one directory at a time when making a multi session so I don't know how that will work. I put the dirs in quotes.

mkisofs -R -l -graft-points -hide-rr-moved \
/name-A/=/path/to/dir-A/ \
/nanm-B/=/path/to/dir-B/ \
/name-C/=/path/to/dir-C/ |\
cdrecord dev=ATA:1,0,0 -v -eject -

I haven't had any problem with not using any tao, dao, toc flags so I don't use them.
Quote:
"cdrecord will work with CD-R drives and with CD-ROM drives"
I think that just means that you can read the cdroms that you make in normal cdrom drives.
 
Old 05-24-2005, 07:00 PM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi homey,

Quote:
Man makisofs shows -M as the path to the cdrecording device.....
Noted with thanks

B.R.
satimis
 
Old 05-24-2005, 07:15 PM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Thumbs up

Glad to help.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get back into command line interface bonniehandi Linux - Newbie 1 11-19-2005 12:07 AM
Command line through a web interface tangle Linux - Software 2 01-13-2005 02:54 PM
Can't get from command line interface to GUI dphildebrand Linux - Newbie 3 12-03-2003 01:51 PM
burning cdrs using cdrecord (ver2.0) from the command line (understanding) hamster Linux - General 2 05-13-2003 06:38 PM
Which distro has the best command line interface ? lostboy Linux - Distributions 11 03-22-2003 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:45 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