LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How Do I Burn A CD In Linux (https://www.linuxquestions.org/questions/linux-general-1/how-do-i-burn-a-cd-in-linux-711543/)

oraclesqlinuz 03-14-2009 03:16 AM

How Do I Burn A CD In Linux
 
Sorry for using this reply to ask a question, but I haven't figured out how to post one yet.

Can someone please tell me what the syntax is to copy a simple text file from your hard drive to a CD disk? Everytime I enter the quetion on the the Google Linux website I get information on how to burn music on a CD, how to create an ISO image, and many other things. But I can't find a simple answer to my question.

I have tried the cp command but I haven't gotten any results, I've tried to copy the file to both a floppy disk and CD, but with no success. The CD and the floppy disk always come out blank. Any help from anyone would be greatly appreciated.

pixellany 03-14-2009 06:29 AM

Welcome to LQ!! (You seem to have successfully started a new thread.....)

Quote:

Can someone please tell me what the syntax is to copy a simple text file from your hard drive to a CD disk?
Basically, you don't. Optical media has to be written with software that is designed for the purpose----it goes beyond the basic mv and cp commands.

As for the floppy, how are you attempting to copy to it? (Note that you may have to mount it first.)

Nylex 03-14-2009 06:32 AM

You need to create an ISO image containing the files you want and then burn that to the CD. You can use mkisofs to create the image and cdrecord to burn it. Of course, graphical applications like K3b can do all this for you, if you prefer.

ErV 03-14-2009 06:39 AM

Quote:

Originally Posted by oraclesqlinuz (Post 3475083)
Can someone please tell me what the syntax is to copy a simple text file from your hard drive to a CD disk?

AFAIK, you can't do that. Use k3b or cdrecord to burn files to disk.

nflenz 03-14-2009 07:46 PM

Quote:

Originally Posted by Nylex (Post 3475190)
You need to create an ISO image containing the files you want and then burn that to the CD. You can use mkisofs to create the image and cdrecord to burn it. Of course, graphical applications like K3b can do all this for you, if you prefer.

Right, but it's much simpler to just use growisofs.

Code:

$ growisofs -Z /dev/dvd [files to burn]
More files can be added to the disk after the initial burn with the -M option:

Code:

$ growisofs -M /dev/dvd [files to burn]
You can burn a file directly to the disk (without creating a file system) by specifying device=file. This is mostly useful for burning isos.

Code:

$ growisofs -Z /dev/dvd=[linux.iso]

Nylex 03-15-2009 01:26 AM

Ah, I didn't know that! Thanks :).


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