LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-15-2003, 06:12 PM   #1
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Burning a data CD?


I'm switching servers and I need to move my webfiles and .conf files over to the new server. Its a lot of stuff but I can fit it all on to one cd.

The problems is that I can't figure out how to burn a data CD. I've tried KonCD and it has so many options I get confused and it never works.

What I'm gonna do is gather all the files I need into one directory and then compress them and try to burn them on to a cd. Is there an easier way to do this from a shell rather then messing with KonCD?

Someone please tell me how they burn data CDs.
 
Old 02-15-2003, 06:25 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
The command line program cdrecord does the job for me.

# Generate an ISO from a directory.
mkisofs -J -r -o foo.iso /path/to/directory
mkisofs -v -r -T -J -U -V "Label" -o foo.iso /path/to/directory

# Burn an ISO to CD-R/CD-RW
cdrecord -v speed=5 dev=0,0,0 -data /path/to/foo.iso

Change the speed number to fit your burner.

Last edited by fancypiper; 02-15-2003 at 06:31 PM.
 
Old 02-15-2003, 07:41 PM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Original Poster
Rep: Reputation: 57
Thanks alot. I haven't tried it yet but I just have a few more questions.

1. When the iso is burnt to cd does it go on to the cd as 1 iso file or will all the different files be on there?
2. How do I find out my cd burner speed? Mine just says "High Speed" on the physical drive.

Thanks in advance!
 
Old 02-15-2003, 07:45 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Short and sweet, nice reply. One thing I'd add is tar them together (if the tarball is small enough to still fit on the CD, no need to bzip or gzip it after).

Then simply mkisofs the single large tarball, and burn the iso at that point. For me, it's just nice to have 1 file to unpack, and I like to keep the same permissions on my files (usually); however it may be someone else's preference to have all the files/directories on the disc just as they were before to make for easier viewability and such.

Cool
 
Old 02-15-2003, 07:49 PM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Original Poster
Rep: Reputation: 57
Cool. Good idea about tarring the files. Ummm so how do you know what your burner speed is?
 
Old 02-15-2003, 07:49 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Quote:
Originally posted by Crashed_Again
Thanks alot. I haven't tried it yet but I just have a few more questions.

1. When the iso is burnt to cd does it go on to the cd as 1 iso file or will all the different files be on there?
2. How do I find out my cd burner speed? Mine just says "High Speed" on the physical drive.

Thanks in advance!
1. If you create the "tarball" it will be one file. However, if you put all the files into 1 directory, then mkisofs that directory, then the iso will burn to the cd all the files.

2. I do believe cdrecord is smarter than you and me. I have tried using faster speeds than my drive/medium allow, and cdrecord slows down to the fastest speed possible (whichever is the slowest, the drive or medium). With that said... You may want to be conservative if you don't have a lot of CD's to "experiment" with, go with 4 or so.

Cool
 
Old 02-15-2003, 07:52 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Quote:
Originally posted by fancypiper
The command line program cdrecord does the job for me.

# Generate an ISO from a directory.
mkisofs -J -r -o foo.iso /path/to/directory
mkisofs -v -r -T -J -U -V "Label" -o foo.iso /path/to/directory

# Burn an ISO to CD-R/CD-RW
cdrecord -v speed=5 dev=0,0,0 -data /path/to/foo.iso

Change the speed number to fit your burner.
2 things to help you simplify your command Mr Fancypiper:

1. mkisofs -Jr -o is the same as mkisofs -J -r -o (and mkisofs -vrTJUV is the same as your above command as well);

2. cdrecord defaults to -data so you really don't need to add that flag

Cool
 
Old 02-15-2003, 08:12 PM   #8
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: Red Hat (8.0, RHEL5,6), CentOS, SuSE (10.x, 11.x, 12.2, 13.2), Solaris (8-10), Tru64, MacOS, Raspian
Posts: 1,137

Rep: Reputation: 65
Quote:
Originally posted by fancypiper
# Burn an ISO to CD-R/CD-RW
cdrecord -v speed=5 dev=0,0,0 -data /path/to/foo.iso

Change the speed number to fit your burner.
...and the device ID to what is reported by ``cdrecord -scanbus''.
 
  


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
DVD data burning error mysticsound Linux - Laptop and Netbook 1 03-19-2005 01:11 AM
Burning data DVD with Knoppix 3.4 PC_Pal68 Linux - Software 7 11-01-2004 05:20 PM
Burning data DVD with Knoppix PC_Pal68 Linux - Newbie 3 11-01-2004 02:58 PM
Need a good data cd burning software Viper168 Linux - Software 1 10-27-2003 04:10 PM
cdrdao burning data illtbagu Linux - Newbie 0 03-11-2003 11:13 PM


All times are GMT -5. The time now is 09:53 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration