Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a 7gb .iso file, and I want to move it to a secondary HDD I have connected on my computer, first I tried to move the entire file and it failed saying the file was too large. I noticed always 4GB was copied, so I used split to generate 3GB chunks.

Now I have the 3 chunks in the secondary disk, and I am trying to join them using cat with:

"cat x0* > backup.iso"

But it also fails saying: "cat: write error: File too large", the resulting file is once again 4GB.

How can I join these files?

I have plenty of space on that disk for the files (>50GB). I read somewhere that I should "pipe" the files contents in real time to avoid this error but I have no idea how to do it.

share|improve this question
add comment

2 Answers 2

up vote 5 down vote accepted

Wich if the format of your external drive? Some drives use FAT32, and this limit the maximun file size close to 4Gb.

If you want to have bigger files you should change it. To do this you have to format the external drive.

share|improve this answer
    
Yes it's FAT32 because I used is as the disk I can see when I boot either Linux or Windows, and I have tons of stuff in there, isn't there another solution than formatting? :( –  trimoans Sep 21 '11 at 15:32
    
You can't join them on the disk. If you want to cat them into an ISO, you need to generate the ISO on a different disk. It will not harm the file to be in separate chunks on your HDD; you will simply have to join them again on the computer you want to use it on. –  zpletan Sep 21 '11 at 15:37
    
I got an idea, since I want to use this backup only on Windows (ntfs) but I have it on Linux, I could decompress the .iso in the shared FAT32, and then I can move it to the NTFS disk and recreate the .iso, I guess that will work. Thanks. –  trimoans Sep 21 '11 at 15:55
add comment

The easiest solution would be to output the cat into an external hard drive with a format other than FAT32. You can simply reformat a USB stick >8GB and output the cat in there.

I am afraid but you won't be able to handle >4GB files in a FAT32 hard drive.

You can find further information about file systems and their limitations here: http://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.