Selasa, 27 November 2012

Burn to Disk in linux


Burning a DVD via Terminal using "growisofs" command


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.

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

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

Tidak ada komentar:

Posting Komentar