Archive

Archive for the ‘CD and DVD burning’ Category

[solved] Burning a multisession Data DVD from the command line in Lucid Lynx

January 1st, 2011 1 comment

I wanted to cleanup my ever increasing collection of files by creating data DVD backups from Ubuntu.

I have the following folder in Ubuntu

/home/data/isos

First, I wanted to test that multisession writing is possible from my Lenovo external DVD unit, so from the command line I execute the following statement to burn two 1 Gb files on the first session of the disc.  This is a DVD-R unbranded disc bought from a supermarket.

growisofs -speed=1 -Z /dev/sr0 -R -J /data/isos/linux_11gR2_database_1of2.zip /data/isos/linux_11gR2_database_2of2.zip

Parameters explained

-speed=1  This is the most reliable setting

-Z initialize DVD as this is the first session

-R -J  for increased compatibility with Windows using the Rockridge and Joliet extensions

After the DVD is ejected, it can be insterted again. I used an additional command to verify that ZIP files are generated correctly.

It would also be a good idea to test it after one or two sessions from a Windows machine using the ‘verify’ command of the 7Zip application for example.

Adding a second session to the DVD requires a different parameter  (-M)

growisofs -speed=1  -M /dev/sr0 -R -J /data/isos/RIPLinuX-6.3.iso

and this is some of the expected output after a successful second session gets recorded.


Executing 'genisoimage -C 16,1748352 -M /dev/fd/3 -R -J RIPLinuX-6.3.iso | builtin_dd of=/dev/sr0 obs=32k seek=109272'
I: -input-charset not specified, using utf-8 (detected in locale settings)
Rock Ridge signatures found
97.69% done, estimate finish Sat Jan  1 20:37:58 2010
...
98.25% done, estimate finish Sat Jan  1 20:37:58 2010
/dev/sr0: "Current Write Speed" is 2.0x1352KBps.
98.52% done, estimate finish Sat Jan  1 20:38:10 2010
...
99.92% done, estimate finish Sat Jan  1 20:38:31 2010
Total translation table size: 0
Total rockridge attributes bytes: 747
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 0
1791438 extents written (3498 MB)
builtin_dd: 43088*2KB out @ average 1.9x1352KBps
/dev/sr0: flushing cache
/dev/sr0: updating RMA
/dev/sr0: closing session
/dev/sr0: reloading tray

To finalize the disc, run
growisofs -M /dev/sr0=/dev/zero

A word of warning: it cannot be guaranteed that all DVD writers will work in Linux. If you want to post here the combination of Linux distribution/hardware that worked for you, you are welcome to do it.

Tested with Ubuntu Lucid Lynx:
uname -a
Linux atom 2.6.32-27-generic #49-Ubuntu SMP Wed Dec 1 23:52:12 UTC 2010 i686 GNU/Linux

growisofs version:
* growisofs by , version 7.1,
front-ending to genisoimage: genisoimage 1.1.10 (Linux)

DVD Recorder: Lenovo external burner firmware LI06

HOWTO: Test a ZIP file from the command line

January 1st, 2011 No comments

Here’s a command line to confirm the integrity of a zip file:

unzip -t

For example

unzip -t linux_11gR2_database_1of2.zip

This is also a fantastic way to confirm that any zip files you have recently burn onto a DVD are correct.

Burn a DVD ISO file from the command line in Ubuntu Lucid Lynx

December 26th, 2010 No comments

This is a procedure for recording a DVD ISO image to a DVD-R using a Lenovo external drive.

This is the first time that I was able to burn a full ISO to a DVD without problems using any version of Ubuntu. This task seems much easier in other distributions such as Knoppix. This task is also straighforward on Windows, but I did not want to use Windows and I wanted to prove that it was doable in Ubuntu.

Here are some of my experiences:

Attempted to record using Brasero or K3B and an IDE to DVD burner device. No luck there as Ubuntu was not able to even recognize the media sometimes (either DVD-R or DVD+R). Some other times it would just end while it was recording and the DVD was wasted.

Then I bought a Lenovo external DVD and tried to use Brasero as well. Even with the lowest speed setting, it would turn DVDs into coasters fairly quickly.

Then I bought a new stack of DVD-R media from Tesco and decided to try the command line script growisofs to record an ISO image. The results were very positive and now I have been able to issue a command that works.

The following command did not work, it takes the highest speed available and it resulted in a half finished disc:

growisofs -dvd-compat -Z /dev/sr0=my_dvd_image.ISO

However, once I set the speed to 1, the DVD burn finished correctly, I just had to be patient with the resulting 2x speed.

growisofs -speed=1 -dvd-compat -Z /dev/sr0=my_dvd_image.ISO

Versions I used:
Ubuntu Lucid Lynx 10.01.
Kernel details (uname -a)

2.6.32-27-generic #49-Ubuntu SMP Wed Dec 1 23:52:12 UTC 2010 i686 GNU/Linux

 

Categories: CD and DVD burning Tags: