Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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 ?
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.
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.
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
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.
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.