LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rar and file size limit (https://www.linuxquestions.org/questions/linux-software-2/rar-and-file-size-limit-653555/)

Zeusz3 07-04-2008 06:52 AM

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

colucix 07-04-2008 07:10 AM

Code:

rar a -r -v100000k name_of_archive directory_name

xushi 12-17-2008 06:59 AM

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

ErV 12-17-2008 07:11 AM

Quote:

Originally Posted by xushi (Post 3378478)
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.

xushi 12-17-2008 07:18 AM

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.

xushi 12-18-2008 04:33 AM

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

b0uncer 12-18-2008 05:41 AM

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.

xushi 12-18-2008 05:45 AM

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!


All times are GMT -5. The time now is 01:12 PM.