LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   K3b burn files bigger than 2gb howto (https://www.linuxquestions.org/questions/linux-desktop-74/k3b-burn-files-bigger-than-2gb-howto-587444/)

edubidu 09-26-2007 04:46 AM

K3b burn files bigger than 2gb howto
 
Somebody knows how to burn files bigger than 2gb with k3b?
I read in a forum that udf could do that, but the only option I found is under a new DVD project - Properties under the Filesystem Tab "Generate UDF structures".

This doesn't help, unfortunately.

The files I try to burn are virtual machine-Files bigger than 5gb...

Please note thad I do NOT want to SPLIT the file...

Someone has an idea?
Maybe another burning tool could manage this?

bigrigdriver 09-26-2007 11:30 AM

First, use a tool such as mkisofs to make an .iso of the file(s)/directory(s) you want.

Then use k3b to burn the .iso to dvd. You could also use growisofs to burn the dvd from the command line.

Mkisofs makes the .iso, but it also compresses the file(s). For example, a Linux liveDVD with 4.7 gb will expand to 7 gb or more when installed.

edubidu 09-26-2007 12:26 PM

Hi, thank you for this quick response!
the thing is I'd like to read the file directly from dvd to work with it. When I change it into an iso, would this be possible? I mean, if the file is a xxx.vhd and I make an ISO, would I be able to read then the file as a xxx.vhd on the dvd?

osor 09-26-2007 12:45 PM

Quote:

Originally Posted by bigrigdriver (Post 2904492)
First, use a tool such as mkisofs to make an .iso of the file(s)/directory(s) you want.

Then use k3b to burn the .iso to dvd. You could also use growisofs to burn the dvd from the command line.

Unfortunately this may not work with files as big as 5 gigabytes. For one thing, it requires a very recent mkisofs (one with multiple extents per file). Additionally, you may not be able to read the resultant CD correctly in linux. See this thread for more information.

Your best bet is to use udftools from the command line (or get K3B to use udftools as a backend).

edubidu 09-27-2007 04:54 AM

Hello, thanks! I installed udftools and read the user manual from http://www.linuxfromscratch.org/blfs.../udftools.html
but seems I am to bad to use it...

so I did cdrwtool -d /dev/cdrom -q
using device /dev/cdrom
set_options
#/home/loc/download # mkudffs

how do I burn now my file??

osor 09-27-2007 01:41 PM

Quote:

Originally Posted by edubidu (Post 2905219)
Hello, thanks! I installed udftools and read the user manual from http://www.linuxfromscratch.org/blfs.../udftools.html
but seems I am to bad to use it...

That link is not a manual. It is installation instructions for building from scratch.

The easiest way of making disks with a UDF filesystem through packet writing, for which many tutorials exist. Alternatively (if you want make an image first and burn it later), you can do something similar to “fake” packet writing. By this, I mean writing to a file on a loopback-mounted UDF filesystem. This can subsequently be unmounted to give you an image file, suitable for burning as a track with cdrecord.

For example (this Works For Me™), if you make a 5 gigabyte file called random.txt and a 6 gigabyte image file:
Code:

$ head --bytes=5120 /dev/urandom > random.txt
$ head --bytes=6144 /dev/zero    > image.udf
$ mkudffs --utf8 image.udf
$ mkdir udf
$ sudo mount -t udf -o loop,noatime,rw image.udf udf
$ sudo cp random.txt udf
$ sudo umount udf

Now you have a udf image (image.udf) which you created without even touching a cd drive. This image can subsequently be transferred to a computer with a burner, and be burned like so:
Code:

cdrecord -dao -dev=/dev/hdc image.udf

edubidu 09-28-2007 02:20 AM

wow! let me try this...


All times are GMT -5. The time now is 06:29 PM.