Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old May 26th, 2007   #1
dophine
First Cup of Ubuntu
 
Join Date: Sep 2006
Beans: 2
how to create multi zip files

hi,

I want to zip a big a file to multi smaller size zip file. how can I do that?

thank you
dophine is offline   Reply With Quote
Old November 11th, 2007   #2
dachinster
A Carafe of Ubuntu
 
Join Date: Apr 2007
My beans are hidden!
Ubuntu 7.04 Feisty Fawn
Re: how to create multi zip files

hi guys, i see there is a thread about this already so instead of starting another, i just wanted to follow up with this...

i have an 8GB file and i want to zip/tar it across 2 dvds.
i need to make them small enough to fit on a standard dvd

anyone knows how to create a multi volume zip file?
dachinster is offline   Reply With Quote
Old November 11th, 2007   #3
mali2297
Chocolate Ubuntu Mocha Blend
 
mali2297's Avatar
 
Join Date: Jul 2006
Location: Sweden
Beans: 1,755
Re: how to create multi zip files

Quote:
Originally Posted by dachinster View Post
hi guys, i see there is a thread about this already so instead of starting another, i just wanted to follow up with this...

i have an 8GB file and i want to zip/tar it across 2 dvds.
i need to make them small enough to fit on a standard dvd

anyone knows how to create a multi volume zip file?
Assume that you want to use tar to archive and compress a file foo of size 8 GB. Type commands
Code:
tar -cvzf foo.tar.gz foo
split -d -b4000m foo.tar.gz foo.tar.gz.
Then you will have two files foo.tar.gz.00 and foo.tar.gz.01 of size 4 GB maximum each.

To extract foo from the split compressed archive:
Code:
cat foo.tar.gz.* > foo.tar.gz
tar -xvzf foo.tar.gz
Of course, you could skip tar and just split the original file:
Code:
split -d -b4000m foo foo.
and join the pieces later with
Code:
cat foo.* > foo
mali2297 is offline   Reply With Quote
Old November 11th, 2007   #4
dachinster
A Carafe of Ubuntu
 
Join Date: Apr 2007
My beans are hidden!
Ubuntu 7.04 Feisty Fawn
Re: how to create multi zip files

o, my mistake, it is actually a directory of files that needs compressing.
will the above still work?
once of the files inside that directory is an ISO file 7.8GB big but I need the accompanying files to go with it

Last edited by dachinster; November 11th, 2007 at 05:13 PM..
dachinster is offline   Reply With Quote
Old November 11th, 2007   #5
mali2297
Chocolate Ubuntu Mocha Blend
 
mali2297's Avatar
 
Join Date: Jul 2006
Location: Sweden
Beans: 1,755
Re: how to create multi zip files

Quote:
Originally Posted by dachinster View Post
o, my mistake, it is actually a directory of files that needs compressing.
will the above still work?
once of the files inside that directory is an ISO file 7.8GB big but I need the accompanying files to go with it
Yes, you can create a compressed tar file with same command if foo is a directory. The file foo.tar.gz can then also be split as before.

Alternatively, tar can itself construct multivolume archives if you don't use compression:
Code:
tar -cvL4000000 -f foo.tar.00 -f foo.tar.01 foo
..to extract:
Code:
tar -xvM -f foo.tar.00 -f foo.tar.01
As you can see, the possibilities are numerous.
mali2297 is offline   Reply With Quote
Old November 11th, 2007   #6
inversekinetix
Day Old Decaf
 
Join Date: Oct 2007
My beans are hidden!
Re: how to create multi zip files

Quote:
Originally Posted by mali2297 View Post
Yes, you can create a compressed tar file with same command if foo is a directory. The file foo.tar.gz can then also be split as before.

Alternatively, tar can itself construct multivolume archives if you don't use compression:
Code:
tar -cvL4000000 -f foo.tar.00 -f foo.tar.01 foo
..to extract:
Code:
tar -xvM -f foo.tar.00 -f foo.tar.01
As you can see, the possibilities are numerous.
is there a gui way to do that?

what does foo mean?
inversekinetix is offline   Reply With Quote
Old November 12th, 2007   #7
mali2297
Chocolate Ubuntu Mocha Blend
 
mali2297's Avatar
 
Join Date: Jul 2006
Location: Sweden
Beans: 1,755
Re: how to create multi zip files

Quote:
Originally Posted by inversekinetix View Post
is there a gui way to do that?
Some people recommend 7zip but I haven't tried it myself.

Quote:
what does foo mean?
Change it to the name of your directory (or file).
From Wikipedia:
Quote:
The word foo itself has no meaning and is merely a commonly used logical representation that is used much like the letters 'x' and 'y' in algebra.
mali2297 is offline   Reply With Quote
Old November 26th, 2007   #8
rasmusbp
Just Give Me the Beans!
 
Join Date: Nov 2005
Location: Copenhagen, Denmark
Beans: 80
Ubuntu 7.10 Gutsy Gibbon
Re: how to create multi zip files

Please - there must be a simpler way. Isn't there any archiving application with a GUI that will give you the option of creating more multiple zip files? Like any zip program in XP would have. Anyone?

Thanks.
Rasmus
__________________
---
Ubuntu 7.10 using GNOME
Asus M6N; Intel Centrino 1.6 Ghz; ATI Mobility Radeon 9600; Intel Pro/Set WLAN 2200BG
rasmusbp is offline   Reply With Quote
Old November 26th, 2007   #9
mali2297
Chocolate Ubuntu Mocha Blend
 
mali2297's Avatar
 
Join Date: Jul 2006
Location: Sweden
Beans: 1,755
Re: how to create multi zip files

Quote:
Originally Posted by rasmusbp View Post
Please - there must be a simpler way. Isn't there any archiving application with a GUI that will give you the option of creating more multiple zip files? Like any zip program in XP would have. Anyone?

Thanks.
Rasmus
You could try this:
http://ubuntuforums.org/showthread.php?t=556756
mali2297 is offline   Reply With Quote
Old November 26th, 2007   #10
rasmusbp
Just Give Me the Beans!
 
Join Date: Nov 2005
Location: Copenhagen, Denmark
Beans: 80
Ubuntu 7.10 Gutsy Gibbon
Smile Re: how to create multi zip files

great tip, thanks a lot!!
__________________
---
Ubuntu 7.10 using GNOME
Asus M6N; Intel Centrino 1.6 Ghz; ATI Mobility Radeon 9600; Intel Pro/Set WLAN 2200BG
rasmusbp is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:09 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry