LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-04-2008, 06:52 AM   #1
Zeusz3
LQ Newbie
 
Registered: May 2008
Distribution: Debian 4.0
Posts: 17

Rep: Reputation: 0
rar and file size limit


hello,
i want to compress a folder with is about 900Mb into rar but i want to split the rar files into parts of 100Mb each, how could i do this?
i tried ark, file-roller and rar but couldn't find the way to do that
am using debian etch
 
Old 07-04-2008, 07:10 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Code:
rar a -r -v100000k name_of_archive directory_name
 
Old 12-17-2008, 06:59 AM   #3
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Hi,

I'm trying to find the same thing but to segment a 14G .rar file into DVDs. How do you calculate the exact -v for it?

As far as i know, to fit them to CDs you need to use -v614400k (102400k * 6), which gives you exactly 700MB (approx 732Mb). How much should it be for a standard 4.4G DVD ?

-v4710400k ? (102400*46)

thanks
 
Old 12-17-2008, 07:11 AM   #4
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by xushi View Post
Hi,

I'm trying to find the same thing but to segment a 14G .rar file into DVDs. How do you calculate the exact -v for it?

As far as i know, to fit them to CDs you need to use -v614400k (102400k * 6), which gives you exactly 700MB (approx 732Mb). How much should it be for a standard 4.4G DVD ?

-v4710400k ? (102400*46)

thanks
rar 3.70 supports keys like -v100m - where size is in megabytes. And it might support keys like -v1g - where size is supplied in gigabytes.

Last edited by ErV; 12-17-2008 at 07:13 AM.
 
Old 12-17-2008, 07:18 AM   #5
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
That's good to know, thanks ErV,

Indeed the version i now have is 3.80. I tried -v4.4g and so far it looks like it's working. I just hope the size is exact. I'll confirm once it's done.
 
Old 12-18-2008, 04:33 AM   #6
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Hi,

Ok, so if i use -v4.4G, i end up with
-rw-r--r-- 1 xushi xushi 3.8G Dec 17 16:44 xxx.part1.rar
which is
-rw-r--r-- 1 xushi xushi 4000000000 Dec 17 16:44 xxx.part1.rar

So i decided to give -v4.4g a try instead, i got
-rw-r--r-- 1 xushi xushi 4.0G Dec 18 10:22 xxx.part1.rar
which is
-rw-r--r-- 1 xushi xushi 4294967296 Dec 18 10:22 xxx.part1.rar

Is that still too small to fill a DVD?


In case anyone asks, here is the full command to have zero compression (-m0, because i already compressed with bzip2), good redundancy (-rr), and segmentation (-v)

rar a -r -m0 -rr[524288] -v4.4G ciscobackups/Backup.rar my_big_file
 
Old 12-18-2008, 05:41 AM   #7
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
There's another possibility too, but it comes with a drawback: you need to create the compressed file (as a single file) first, before splitting. Here's the beginning of the man-page of split:
Code:
SPLIT(1)                         User Commands                        SPLIT(1)

NAME
       split - split a file into pieces

SYNOPSIS
       split [OPTION] [INPUT [PREFIX]]

DESCRIPTION
       Output  fixed-size  pieces of INPUT to PREFIXaa, PREFIXab, ...; default
       size is 1000 lines, and default PREFIX is ‘x’.  With no INPUT, or  when
       INPUT is -, read standard input.
In short, it splits a given file into pieces of certain size, and when you want to get the full file back, you can just concatenate it, for example with cat
Code:
cat file1 file2 file3 ... fileN > bigfile
Though if you have limitations (filesystem's maximum file size, insufficient free space on media, ...) with respect to the filesize and need to create fixed-size pieces because of that, split might not be the tool for this problem since you couldn't first create the big archive to split. But if it's OK to first archive, then split, this is really handy.

EDIT: don't get confused by the beginning of the man page (read it completely, please): the size can be determined not only by lines, but by bytes for example, and numeric suffixes can be used instead of alphabetic.

Last edited by b0uncer; 12-18-2008 at 05:43 AM.
 
Old 12-18-2008, 05:45 AM   #8
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Hi B0uncer,

Yea i already know about using cat, and it looks much easier too, but my problem is that The files will be extracted on Windows by amatures, hence the need to use rar. Winrar doesn't take any effort to extract (just right click + extract).

I just checked with a burner and it said it had 120MB free space left, so maybe i should have put -v1.43 instead. Otherwise it looks to be close enough as it is!
 
  


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
File Size limit? compu73rg33k Linux - Software 1 02-27-2005 10:11 PM
limit file size ust Linux - General 2 02-24-2005 07:33 AM
File Size Limit?? Manuel-H Linux - Software 1 04-16-2004 03:23 AM
File size limit petway56 Linux - General 4 05-07-2003 11:19 PM
file size limit jaysan Slackware 5 07-12-2002 03:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:11 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
Open Source Consulting | Domain Registration