LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-06-2013, 08:24 AM   #1
sryzdn
Member
 
Registered: Feb 2013
Posts: 274

Rep: Reputation: 9
how to burn files into a DVD from command line?


Hi,

My system is not directing me to the GUI gnome 3 in fedora 18.

I need to make a back up of my home directories from the commandline. Any one can give me the commands to burn all file to a DVD?
 
Old 06-06-2013, 08:27 AM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
hmm i can tell you the commands are mkisofs and cdrecord, though i forget the specifics of how to use them.
 
Old 06-06-2013, 09:28 AM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Do a search on CLI burning. This has been answered many times on LQ.
Here are some examples

Make .iso from multiple directories
Code:
genisoimage -J -r -pad -graft-points dir1/=/path/files dir2/=/path/files dir3/=/path/files > filename.iso
Make .iso from directory
Code:
mkisofs -R -J /path/to/files -o /path/to/output.iso
Burn .iso to DVD
Code:
growisofs -dvd-compat -speed=8  -use-the-force-luke=tty -Z /dev/sr0=/path/file.iso
Burn DVD from files
Code:
growisofs -use-the-force-luke=tty -Z /dev/sr0 -J -r -speed=8 -dvd-compat -pad -graft-points /path/file1.avi /path/file2.avi /path/file3.avi
Burn .iso to CD
Code:
wodim speed=8 -tao dev=/dev/sr0 /path/file.iso
Burn files to CD
Code:
mkisofs -J -r -pad -graft-points /path/file /path/file | cdrecord dev=1,1,0 speed=8 -
Code:
genisoimage -J -r -pad -graft-points /path/file /path/file | cdrecord dev=1,1,0 speed=8 -
Write audio CD
Code:
cdrecord -v dev=/dev/sr0 speed=8 -audio -pad *.wav
You can also write a DVD-CD with dd
 
2 members found this post helpful.
Old 06-06-2013, 09:50 AM   #4
sryzdn
Member
 
Registered: Feb 2013
Posts: 274

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by frieza View Post
hmm i can tell you the commands are mkisofs and cdrecord, though i forget the specifics of how to use them.
Thanks, just searched them(mkisofs and cdrecord and growisofs) in the net and could successfully backup
 
Old 06-06-2013, 11:21 AM   #5
13stein.j
Member
 
Registered: May 2013
Location: Brooklyn, New York
Distribution: Linux Mint 15/Ubuntu 13.10/Debian 7/SUSE 11.x/openSUSE 12.3/RHEL 6.4/Fedora 18/Slackware, and 5 more
Posts: 111

Rep: Reputation: 6
Technically, if it is an img file, iso, or something similar, you can use the dd command like so,
Code:
dd if=path to image of=/dev/cdrom or wherever the destination is

Last edited by 13stein.j; 06-06-2013 at 11:22 AM. Reason: misinformation
 
Old 06-06-2013, 12:11 PM   #6
linuxCode
Member
 
Registered: Jun 2013
Location: New York City
Distribution: Arch
Posts: 33

Rep: Reputation: 44
Great examples teckk

I want to add that that the dev address has to be adjusted for cdrecord as it may differ per system.

Code:
cdrecord --scanbus

Last edited by linuxCode; 06-06-2013 at 12:58 PM.
 
Old 03-27-2019, 11:38 PM   #7
satsaeid
LQ Newbie
 
Registered: Mar 2019
Posts: 1

Rep: Reputation: Disabled
Is there any Difference between CD and DVD ?

teckk, Thank you for informations, Suppose I have an .iso file, and I want sometimes burn it into a CD and sometimes to a DVD, so can I use
Code:
growisofs -dvd-compat -speed=8  -use-the-force-luke=tty -Z /dev/sr0=/path/file.iso
for both CD and DVD ?
if I want to use a CD can I just remove the -dvd-compat switch ?
 
Old 03-28-2019, 02:03 PM   #8
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Quote:
Is there any Difference between CD and DVD
Yes.

Read man growisofs
It is for DVD media.

Use cdrecord for CD optical disks.
Look at man cdrecord

Or use a graphical tool like
k3b
xfburn
bashburn
hacburn
brasero

For audio CD's there is:
cdrdao

I haven't burned an optical CD for years. In the online warehouse stores they cost more than DVD-R. Of course if you are making an audio CD for a player then you need to burn a CD.

You could also mount that .iso loopback and read it without burning it to disk at all.
 
1 members found this post helpful.
  


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
How to burn Data (file) with command line (at terminal) to DVD rewrite thuan1975 Linux - Newbie 4 05-17-2010 05:53 AM
How to burn a cd in the command line mloberg Linux - Software 1 08-31-2008 10:50 PM
Can burn from command line, but not K3B TravisOSF Slackware 1 03-18-2005 01:44 AM
Can somebody like share me to write files to DVD disc in command line? exper Linux - Software 3 08-11-2004 07:58 PM
how to burn audio cd from command line rip Linux - Software 2 05-14-2003 11:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:24 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
Open Source Consulting | Domain Registration