Burn CD dan DVD via CLI

From OnnoWiki
Jump to navigation Jump to search

Sumber: http://community.linuxmint.com/tutorial/view/1089




I have tried several DVD burners in Linux but neither of them was able to burn DVD properly either due to bugs in softwares or due to lack of hardware compatibility. Even I have tried DVD burning using wodim in terminal but the problem was not solved. At last I was able to burn DVD successfully using growisofs command. So I am writing this tutorial and I hope it might help someone who faces similar problem as mine.


Instalasi

apt-get install growisofs

BURNING A MULTISESSION DVD

Multisession disc is that one in which data can be added again if free space is available. In other words, if we add 1 GB data one time and burn DVD, we can add more data to it next time untill the disc is full.


1.To burn a disk first time i.e. to burn a blank DVD,

growisofs -Z /dev/sr0 -r -J /path/to/files

where /dev/sr0 corresponds to mount point of your disc. On my computer it was sr0, so I am using it in this tutorial. It may be /dev/cdrom, /dev/sg1, /dev/cdrw or some other which may vary according to your system. Please find correct mount point using commands like df or some other command that you know.

/path/to/files corresponds to exact path where files are located.

Example: To burn contents of a folder named mint1 on desktop, type

growisofs -Z /dev/sr0 -r -J /home/user_name/Desktop/mint1

This will burn files and folders contained in mint1 located at desktop but note that it will not burn parent folder mint1


2. To continue a multisession disc,

growisofs -M /dev/sr0 -r -J /path/to/files

This will add more files to the disc and previous files will also remain on disc.


CREATE A DISC IMAGE

genisoimage -r -J -o image_name.iso /path/to/folder

Example: To create an iso image having name data.iso of a contents of folder mint1 located on desktop,

genisoimage -r -J -o data.iso /home/use_name/Desktop/mint1


BURN AN ISO IMAGE TO DVD

To burn a disc image to DVD like images of operating systems, type

growisofs -dvd-compat -Z /dev/sr0=/path/to/iso_file

Example: To burn image LinuxMint.iso located at Downloads folder of a user, type

growisofs -dvd-compat -Z /dev/sr0=/home/user_name/Downloads/LinuxMint.iso


Akan keluar

growisofs -dvd-compat -Z /dev/sr0=ubuntu-14.04-desktop-amd64.iso 
Executing 'builtin_dd if=ubuntu-14.04-desktop-amd64.iso of=/dev/sr0 obs=32k seek=0'
/dev/sr0: "Current Write Speed" is 8.2x1352KBps.
    9502720/1010827264 ( 0.9%) @1.8x, remaining 7:01 RBU 100.0% UBU   4.9%
   25722880/1010827264 ( 2.5%) @3.5x, remaining 4:28 RBU 100.0% UBU  99.5%
   40435712/1010827264 ( 4.0%) @3.2x, remaining 4:23 RBU  82.3% UBU  99.7%
   56885248/1010827264 ( 5.6%) @3.6x, remaining 3:54 RBU  54.6% UBU  99.7%
   73498624/1010827264 ( 7.3%) @3.6x, remaining 3:36 RBU 100.0% UBU  99.4%
   90243072/1010827264 ( 8.9%) @3.6x, remaining 3:34 RBU 100.0% UBU  99.7%
  107118592/1010827264 (10.6%) @3.7x, remaining 3:22 RBU 100.0% UBU  99.5%
..
..
..
  837058560/1010827264 (82.8%) @4.7x, remaining 0:31 RBU 100.0% UBU  99.5%
  857178112/1010827264 (84.8%) @4.3x, remaining 0:27 RBU 100.0% UBU  99.5%
  879230976/1010827264 (87.0%) @4.8x, remaining 0:23 RBU 100.0% UBU  99.5%
  901382144/1010827264 (89.2%) @4.8x, remaining 0:19 RBU 100.0% UBU  99.4%
  923697152/1010827264 (91.4%) @4.8x, remaining 0:15 RBU 100.0% UBU  99.5%
  946110464/1010827264 (93.6%) @4.9x, remaining 0:11 RBU 100.0% UBU  99.5%
  968687616/1010827264 (95.8%) @4.9x, remaining 0:07 RBU 100.0% UBU  99.4%
  989495296/1010827264 (97.9%) @4.5x, remaining 0:03 RBU  63.6% UBU  99.5%
builtin_dd: 493568*2KB out @ average 4.1x1352KBps
/dev/sr0: flushing cache
/dev/sr0: updating RMA
/dev/sr0: closing disc
/dev/sr0: reloading tray



BLANKING A DVD+RW DISC

To blank a rewritable DVD,

dvd+rw-format -blank /dev/sr0


For further details, type in terminal man growisofs, growisofs --help and man genisoimage



Referensi