cdrecord and burning disks on FreeBSD with filesize over 4GB

CeDeROM tomek.cedro at gmail.com
Sat Jan 16 19:43:16 UTC 2010


Hello Marc!

On Sat, Jan 16, 2010 at 6:49 PM, Marc Fonvieille <blackend at freebsd.org> wrote:
> So, does the following is Ok for addition to the Handbook?
>
> --
> Note:
> If you need to burn files larger than 4.38 GB, for example in the case
> of a double layer media, the -iso-level 3 option must be passed to
> mkisofs(8).  Therefore this option has to be added to any growisofs(1)
> command line, e.g.:
>
> # growisofs -dvd-compat -Z /dev/cd0 -iso-level 3 -J -R /path/to/data
>
> or
>
> # growisofs -dvd-compat -Z /dev/cd0=imagefile.iso -iso-level 3
>
> Be sure to have the sysutils/cdrtools-devel port installed instead of
> sysutils/cdrtools.  This later comes with a mkisofs(8) version that does
> not work very well with the -iso-level 3 option.
> --
>
>
> --
> Marc
>

To doublecheck that:

%growisofs -dvd-compat -R -J -iso-level 3 -Z /dev/cd1 /path/to/data/*

And it is working. The "-iso-level 3" is required to burn DVD with
per-file-size >4GB, that is some large audio or video file.
Then I have created an ISO file form these files, to test the iso
burning, but I got this error:
growisofs: no mkisofs options are permitted with =, aborting...

So I suppose this switch is only aplicable at creating the iso image
stage. When a valid iso image is already created (ie. with "-iso-level
3" switch) no additional switch is necessary for growisofs. Please
note that I am already using the cdrtools-devel package (in cdrtools I
did not have this warning). Also old version of mkisofs  did not
complain about -iso-level 3 switch but gave an error that some large
files will not fit on image.

To confirm the image burning from an iso containing the large files
with no -iso-level 3 switch:

%mkisofs -R -J -iso-level 3 -o ../dvd.iso *
(...)
 99.18% done, estimate finish Sat Jan 16 20:03:51 2010
 99.40% done, estimate finish Sat Jan 16 20:03:50 2010
 99.62% done, estimate finish Sat Jan 16 20:03:51 2010
 99.84% done, estimate finish Sat Jan 16 20:03:50 2010
Total translation table size: 0
Total rockridge attributes bytes: 713
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 0
2288723 extents written (4470 MB)
%cd ..
%growisofs -dvd-compat -R -J -Z /dev/cd1=dvd.iso -iso-level 3
growisofs: no mkisofs options are permitted with =, aborting...
%growisofs -dvd-compat -Z /dev/cd1=dvd.iso
WARNING: /dev/cd1 already carries isofs!
About to execute 'builtin_dd if=dvd.iso of=/dev/pass1 obs=32k seek=0'
Sleeping for 5 sec...
(...)
 4623237120/4687304704 (98.6%) @4.0x, remaining 0:11 RBU 100.0% UBU  99.8%
 4641751040/4687304704 (99.0%) @4.0x, remaining 0:08 RBU 100.0% UBU 100.0%
 4660232192/4687304704 (99.4%) @4.0x, remaining 0:04 RBU  80.8% UBU 100.0%
 4678713344/4687304704 (99.8%) @4.0x, remaining 0:01 RBU  25.7% UBU  93.4%
builtin_dd: 2288736*2KB out @ average 4.0x1352KBps
/dev/pass1: flushing cache
/dev/pass1: writing lead-out

And after checking - the files are on the disk (the large file is
automatically split into two and works well).


Therefore I would recommend something like this:

--
Note:
If you need to burn directly to a disk or create an ISO file
containing files larger than 4.38 GB, the "-iso-level 3" option must
be passed to mkisofs(8).  Therefore this option has to be added to any
mkisofs(8) commandline while creating the ISO image, or growisofs(1)
command line used for burning directly to a disk, e.g.:

%mkisofs -R -J -iso-level 3 -o ../dvd.iso *
%growisofs -dvd-compat -R -J -iso-level 3 -Z /dev/cd0 /path/to/data/*

When you have an ISO image containing large files already inside, no
additional options are required for growisofs(1) to burn the image on
a disk.

Also, be sure that you have cdrtools version  >2.01, as the older ones
does not contain large file support. This propagates issues in other
GUI-based applications. Currently only the sysutils/cdrtools-devel
port contains alpha version fresh enough to support large files, so if
you experience troubles please move to the development package.
--

Best regards!
Tomek Cedro


-- 
CeDeROM, http://www.tomek.cedro.info



More information about the freebsd-doc mailing list