(Very) Basic commands to create and copy a .iso or how to create a CD/DVD for your files in Linux with the command line.
You need two programs for this : cdrecord and mkisofs (They are by default installed on my Ubuntu)
First step, you need to identify your CD driver :
cdrecord -scanbus
Remind the 3 first number (for me : 1,0,0)
Second step, create the .iso : mkisofs -v -r -J -o image.iso /home/d/copie
Some explications :
- -v is for verbose mode
- -r gives the right to zero. For example if you create your CD as root, without this command, only the user "root" can use the files. But with -r every user who mount the CD can use the files.
- -J is the Joliet. It is for supporting the long name of your image. It is very useful when you use the CD on Windows.
- -o for output. Write the name of your .iso after this.
%%
Third step, burn the image on your CD : cdrecord -v speed=48 dev=1,0,0 -data image.iso
Wait until your CD is completly burn, and then : eject
More informations : Gravure sous Linux en ligne de commande (in french) and Linux pour les nuls - gravure (in french, but with many details).
I hope this could be help someone, but it's a good reminder for me, that is the first purpose of this section !

Commentaires