Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a 6GB file which I need to transport on DVDs. I have a Linux system, while the recipient has a Windows system. Is there any way for me to make a multi-part archive to spread the file across two DVDs that can be opened by a Windows user?

share|improve this question
    
I have gotten the split file created on Linux, but I am having difficulty recombining it on Windows. Since there is no longer any Linux aspect to the remainder of the problem, I have opened a SU question for that: superuser.com/questions/240086/… –  Macha Jan 31 '11 at 20:09
add comment

2 Answers

up vote 4 down vote accepted

Rar is the common utility for operations such as this as it is available on both platforms.

However another approach is to use split.

split -b 1024m -d somefile somefile.

Then use 7zip on the windows machine to re-combine the files.

Rar has the advantage of being a little simpler, but requires it to be installed on both machines. Split has the advantage of it being faster as it doesnt have to put the data in an archive, but leaves it as is.

share|improve this answer
    
I have tried using split and 7-zip cannot recombine the files. It says "Cannot detect file as splitted files." –  Macha Jan 31 '11 at 19:53
    
To recombine the files, just use copy /b file1+file2+file3 recombined.zip –  9000 Feb 1 '11 at 10:30
1  
Try doing split -b 1024m -d somefile somefile.0 (this will make the files called 'file.001' instead of 'file.01'. 7zip can be picky on its recognizing the its a simple split and not an archive. The copy also works, I just never remember it :-) –  Patrick Feb 1 '11 at 15:27
add comment

Make a zip archive and split it with

zipsplit -n 4699996160 foo.zip

I believe recent versions of Windows have built-in support for zip archives. If the recipient's system is too old, it may have Winzip or 7-zip.

If you have a single file, you can split it with split:

split -b 4589840k -d pieces- large_file.dat

On the Windows machine, on the command line (press Win+R and type cmd), assemble it with

copy pieces-aa + pieces-ab large_file.dat
share|improve this answer
    
Using copy first-part + second-part output gets a 50kb output file, not the original file. –  Macha Jan 31 '11 at 19:56
    
@Macha: Odd. I suggest you ask on Super User for help with the Windows part. Since the questions will be closely related, link them to each other. Alternatively, flag your question for moderator attention and request a migration to Super User. –  Gilles Jan 31 '11 at 20:02
    
Done. superuser.com/questions/240086/… –  Macha Jan 31 '11 at 20:08
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.