LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 01-07-2005, 05:37 PM   #1
haoscar
LQ Newbie
 
Registered: Jul 2004
Posts: 24

Rep: Reputation: 15
Writing DVD's in Linux with file size over 2 gb


Hello,
I have been trying to write a dvd in Linux using mkisofs made iso and using dvdrecord to burn the iso on the dvd.

The problem I have faced is that I have .tar file with size > 2 GB. It seems that mkisofs cant make an iso image of a file greater than 2 GB. I know bzippign is an option but I wanted to do it with tar.

I found on the net that the latest version of mkisofs handles that, but I downloaded cdrtools-2.01 and it did try to make an iso image but when i mounted that iso, it had a corrupted the data.

Does anybody know an alternate way to make data DVD's with file size > 2 gb in Linux.

I found that there is a toold called mkudffs, but there isnt any good examples on how to use.

Any thoughts??.

Thanks in advance,
haoscar
 
Old 01-07-2005, 06:41 PM   #2
BruceCadieux
Member
 
Registered: Apr 2002
Location: Wales MA.
Distribution: openSuSE 11.1
Posts: 409

Rep: Reputation: 32
I just use k3b to burn my DVD files, just recently I created and burned 7.5 gig images to DVD DL media, and regularly burn 4.7 gig disks. Never had a problem.
 
Old 01-08-2005, 04:34 AM   #3
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
I admit that I don't know enough about dvd's yet, but I was wondering about your filesystem on the hard drive. Are you using EXT2 or EXT3? I believe that there is a 2G file size limit on these filesystems, which would explain why you're having this problem (if you can't make a big enough "temp" file, you're certainly not gonna make the dvd, either). The solution would be to use XFS or ReiserFS for a "temp" partition for K3B (or for your whole drive! I went to ReiserFS 3 as soon as it came out and haven't looked back).


edited because I didn't have the facts - I'm leaving the post intact, just admitting here that I was wrong on several counts here - read my later post for the goods...

Last edited by vectordrake; 01-10-2005 at 05:46 PM.
 
Old 01-08-2005, 04:49 AM   #4
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 12.04
Posts: 913

Rep: Reputation: 33
If I read haoscar's post correctly, he's referring to the situation where he's got ONE file that's larger than 2 GB.
 
Old 01-08-2005, 09:10 AM   #5
BruceCadieux
Member
 
Registered: Apr 2002
Location: Wales MA.
Distribution: openSuSE 11.1
Posts: 409

Rep: Reputation: 32
So am I. A single file 7.5 gigs .img format. I have also tarballed complete directories (several gigs) and then burned the tar balls to data DVD's.

k3b hasn't failed me yet.
 
Old 01-08-2005, 09:16 AM   #6
dizzutch
Member
 
Registered: Sep 2004
Location: Worcester, MA USA
Distribution: Debian, Gentoo, Fedora FC2
Posts: 66

Rep: Reputation: 15
isn't that a 32bit problem, a 32bit machine can't address a machine over 2something GB. I'm sure there's ways around it. but that's what i though
 
Old 01-08-2005, 09:27 AM   #7
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Quote:
Originally posted by dizzutch
isn't that a 32bit problem, a 32bit machine can't address a machine over 2something GB. I'm sure there's ways around it. but that's what i though
4GB limit on memory addressing per process.
 
Old 01-08-2005, 12:38 PM   #8
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 12.04
Posts: 913

Rep: Reputation: 33
Quote:
Originally posted by BruceCadieux
So am I. A single file 7.5 gigs .img format. I have also tarballed complete directories (several gigs) and then burned the tar balls to data DVD's.
You're talking about an ISO image that's larger than 2 GB, which is actually quite normal considering even a single-layer DVD-R can store up to 4.7 GB of data. I've never had trouble creating an ISO image larger than 2 GB, either.

The impression I got from the OP is that he's trying to create an ISO image from an original file that's already larger than 2 GB.

As for the file size limit and 32-bit architecture, I believe they are related. The signed integer on a 32-bit machine is 32-bit, which means the largest file size can only be 2 ^ 31 - 1 bytes. Most UNIX/Linux systems have that limitation removed somehow, though.
 
Old 01-08-2005, 04:03 PM   #9
BruceCadieux
Member
 
Registered: Apr 2002
Location: Wales MA.
Distribution: openSuSE 11.1
Posts: 409

Rep: Reputation: 32
Ya quoted me, but apparently didn't even read what you quoted. Because I said Not only iso's but I have created tarballs larger then 2 gigs and 4 gigs and burned them to DVD's
 
Old 01-08-2005, 04:46 PM   #10
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 12.04
Posts: 913

Rep: Reputation: 33
Quote:
Originally posted by BruceCadieux
Ya quoted me, but apparently didn't even read what you quoted. Because I said Not only iso's but I have created tarballs larger then 2 gigs and 4 gigs and burned them to DVD's
Doh! I guess I jumped the gun. My apologies.
 
Old 01-10-2005, 03:03 PM   #11
haoscar
LQ Newbie
 
Registered: Jul 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Hello Guys,
Thanks for your replies. I think I shall re state my problem.

I have a tar ball of 2.6 GB size. I want to write it to a DVD, can you please let me know the steps.

The file system I have on that disk is ext3.

Do I need to change it to Reizor FS.

As I was saying I need to create an iso of that tar ball ( so a single file is > 2BG). I used the latest mkisofs and it failed to craete a clean iso.

After mounting the iso , i tried to tar -tvf file.tar and it gave me a EOF error.

I was using the latest cdrtools package.

I used the following commands
mkisofs -r -o image.iso /home/user

mount -t iso9660 -o ro,loop=/dev/loop0 image.iso test/

dvdrecord -v -dao dev=0,0,0 image.iso

Should I be using soemthing else other than dvdrecord??

What is growisofs used for ??, How do I split the large tar ball into 2 if that is needed.

Thanks a lot,

Haoscar
 
Old 01-10-2005, 04:00 PM   #12
haoscar
LQ Newbie
 
Registered: Jul 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Hi,
I tried to split the 2.6 GB iso into parts of 1 GB using the command
mkisofs -r -split-output -o image.iso user/

It did create 3 iso files but the Trans.TBL file size was zero according to i, which meant that there was problem with the iso creation.
*********************** output************************************
mkisofs -r -split-output -o image.iso user/
.
.
99.98% done, estimate finish Mon Jan 10 14:33:57 2005
Total translation table size: 0
Total rockridge attributes bytes: 248
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 5384
1335315 extents written (2608 MB)

********************************************************************
I am using version 2.01 of cdrtools.

also how does one test mount the series of iso images to check whether the iso creation was fine??

Like for mounting one iso file I use

mount -t iso9660 -o ro,loop=/dev/loop0 image.iso test/

Any thoughts people. Examples would be great.!!!!


Thanks a lot,
haoscar
 
Old 01-10-2005, 04:07 PM   #13
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 12.04
Posts: 913

Rep: Reputation: 33
I am confused by your statements. So you're saying that you can now create an ISO image of 2.6 GB from your /home/user directory? If that is the case, why do you need to split it into multiple ISO images?
 
Old 01-10-2005, 04:13 PM   #14
haoscar
LQ Newbie
 
Registered: Jul 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by daihard
I am confused by your statements. So you're saying that you can now create an ISO image of 2.6 GB from your /home/user directory? If that is the case, why do you need to split it into multiple ISO images?
Hello,
What I meant was that the iso gets created but when I mount it and try to untar the tar ( the file having size 2.6 GB) it fails.

I am not able to create a clean iso from that .tar file.
The command runs fine but after mounting it becomes clear that iso wasnt created properly.

I read that -split-output will make iso's of size 1 GB. But I saw the same output for this command too.

The Translation Table size was zero.(TRANS.TBL) (see the output from my last post).

So I am guessing I shall run inot the same problem again.

In the end, I was asking whether anybody knew how to mount multiple iso's created by -split-output onto one directory.

I hope this helps.

Thanks,
Haoscar

Last edited by haoscar; 01-10-2005 at 04:15 PM.
 
Old 01-10-2005, 05:08 PM   #15
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 12.04
Posts: 913

Rep: Reputation: 33
Quote:
Originally posted by haoscar
Hello,
What I meant was that the iso gets created but when I mount it and try to untar the tar ( the file having size 2.6 GB) it fails.

I am not able to create a clean iso from that .tar file.
The command runs fine but after mounting it becomes clear that iso wasnt created properly.
I don't mean to be picky, but you're not trying to untar the tar file right on the mount point ("/test" in your case), are you?

Since you mounted the ISO image as "read-only," you naturally cannot untar the file there. You need to copy it on a partition w/ write access in order to untar it.

Just making sure we're on the same page...

[ADD] Here's my test procedure:

(1) Create test.tar from /home/daihard/test/ as follows:
Code:
$ tar -cf test.tar /home/daihard/test/
(2) The tar file, test.tar, is 3.0 GB in size.
(3) Run "mkisofs" on it to create an ISO image:
Code:
$ mkisofs -o test.iso -l -R -p "daihard" -v "test_volume"
(4) Mount the resulting iso file (test.iso) this way:
Code:
# mount -t iso9660 -o ro,loop=/dev/loop0 test.iso /mnt/test
(5) Now, the tar file is correctly seen on /mnt/test.
(6) Copy the tar file from /mnt/test to /home/daihard/test2/.
(7) Untar it as follows:
Code:
$ tar -xf test.tar
I was able to untar the file and see/use the contents without any problem.

Last edited by daihard; 01-10-2005 at 05:38 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
writing a c program in linux which plays an'.wav' file stephenwalter Programming 8 07-09-2005 12:37 AM
Is there a file size limitation in Linux? lazyboy0001 Linux - Software 12 08-12-2004 09:28 PM
Writing a proxy file system driver in linux appas Linux - Software 0 07-22-2004 01:45 AM
writing a simple file system in linux Deepthi_57 Linux - Newbie 1 05-03-2004 01:42 AM
is there a limit to file size in Linux (RH 7.2) hemlock Linux - Newbie 6 09-06-2002 08:06 PM


All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration