 |
|
 |
|
|
 |
How to create multipart rar archive in linux? |
 |
 |
|
|
05-06-07 06:13 PM
I have Fedora Core 6 installed on my machine and would like to create a
multipart rar archive of a video file for Usenet posting. The video avi
file is about 700Mb so I would like rar to create 15Mb volumes that all
make one big archive like they do in the binary Usenet newsgroups.
I have done this many times with WinRAR but it ties up my machine and I
would rather just copy the file to the Linux box with samba, then create
the rar archive on the CLI because I have rar installed on my Fedora
machine but do not have a GUI interface for it. Once it is on the Linux
machine, I can then putty over to it and open a screen to do the work,
then check back on it later, or just open a term to do it on the machine
or exit gnome and do it. Either way works fine but I like to use screen
as then I can go back and reopen the screen session to check on it or
close it out when it is done from anywhere.
I have tried several times to accomplish this but nothing I have tried
works or does what I want for it to do. Yes I have "man rar" and I have
googled for examples but most of the google pages tell how to extract
files from rar, not how to create multipart rar archives. I can just run
rar at the CLI and get some very terse information but still cannot get
it to work. Here is the basic help I get when I run rar by itself:
-------------------------------------------------------------------------
----
RAR 3.20 Copyright (c) 1993-2003 Eugene Roshal 15 May 2003
Registered to
Usage: rar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>
<Commands>
a Add files to archive
c Add archive comment
cf Add files comment
cw Write archive comment to file
d Delete files from archive
e Extract files to current directory
f Freshen files in archive
i[par]=<str> Find string in archives
k Lock archive
l[t,b] List archive [technical, bare]
m[f] Move to archive [files only]
p Print file to stdout
r Repair archive
rc Reconstruct missing volumes
rn Rename archived files
rr[N] Add data recovery record
rv[N] Create recovery volumes
s[name|-] Convert archive to or from SFX
t Test archive files
u Update files in archive
v[t,b] Verbosely list archive [technical,bare]
x Extract files with full path
<Switches>
- Stop switches scanning
ad Append archive name to destination path
ag[format] Generate archive name using the current date
ap<path> Set path inside archive
as Synchronize archive contents
av Put authenticity verification (registered versions only)
av- Disable authenticity verification check
c- Disable comments show
cfg- Disable read configuration
cl Convert names to lower case
cu Convert names to upper case
df Delete files after archiving
dh Open shared files
ds Disable name sort for solid archive
e<attr> Set file exclude attributes
ed Do not add empty directories
en Do not put 'end of archive' block
ep Exclude paths from names
ep1 Exclude base directory from names
ep2 Expand paths to full
f Freshen files
hp[password] Encrypt both file data and headers
idp Disable percentage display
ierr Send all messages to stderr
ilog[name] Log errors to file (registered versions only)
inul Disable all messages
isnd Enable sound
k Lock archive
kb Keep broken extracted files
m<0..5> Set compression level (0-store...3-default...5-maximal)
mc<par> Set advanced compression parameters
md<size> Dictionary size in KB (64,128,256,512,1024,2048,4096 or
A-G)
ms[ext;ext] Specify file types to store
o+ Overwrite existing files
o- Do not overwrite existing files
ol Save symbolic links as the link instead of the file
ow Save or restore file owner and group
p[password] Set password
p- Do not query password
r Recurse subdirectories
r0 Recurse subdirectories for wildcard names only
rr[N] Add data recovery record
rv[N] Create recovery volumes
s[<N>,v[-],e] Create solid archive
s- Disable solid archiving
sfx[name] Create SFX archive
t Test files after archiving
ta<date> Process files modified after <date> in YYYYMMDDHHMMSS
format
tb<date> Process files modified before <date> in YYYYMMDDHHMMSS
format
tk Keep original archive time
tl Set archive time to latest file
tn<time> Process files newer than <time>
to<time> Process files older than <time>
ts<m,c,a>[N] Save or restore file time (modification, creation,
access)
u Update files
v Create volumes with size autodetection or list all
volumes
v<size>[k,b] Create volumes with size=<size>*1000 [*1024, *1]
ver[n] File version control
vn Use the old style volume naming scheme
vp Pause before each volume
w<path> Assign work directory
x<file> Exclude specified file
x@ Read file names to exclude from stdin
x@<list> Exclude files in specified list file
y Assume Yes on all queries
z<file> Read archive comment from file
-------------------------------------------------------------------------
----
Here is what happens when I try to do what I think will make the rar
archive, split into 15Mb chuncks as in:
GoodMovie.rar.rar
GoodMovie.rar.00
GoodMovie.rar.01
GoodMovie.rar.01
...etc.
[ohmster@ohmster post]$ rar a -v 15000 GoodMovie.rar *
RAR 3.20 Copyright (c) 1993-2003 Eugene Roshal 15 May 2003
Registered to
Cannot open GoodMovie.rar
Creating archive 15000.rar
Adding Really Terrific Movie - Part 1.avi 0%
User break
[ohmster@ohmster post]$
Well that for sure did not work, I did a Ctl-c to kill it.
Since I see no option to create an archive, I use the program "rar" with
command "a" to add files. Then I use the "-v" switch to tell it to create
chunks and follow it with the size I want "15000k" as in fifteen hundred
kilobyte chunks, meaning 15Mb. I then tell rar the name of the new
archive will be "GoodMovie.rar" and that it is to add everything in the
current directory to the new archive by using a wildcard, "*". In this
case, the only thing in the current directory is "Really Terrific Movie -
Part 1.avi".
[ohmster@ohmster post]$ ls -lh
total 702M
-rw-r--r-- 1 ohmster ohmster 701M May 6 12:44 Really Terrific Movie -
Part 1.avi
[ohmster@ohmster post]$
I have tried all kinds of variations on this, none of them just creates
the archive in 15Mb chunks the way I want, the way WinRAR does. In
WinRAR, I just right click the file, choose (rar icon) "add to
archive...", then WinRAR comes up and there is the filename with an rar
extension on it that you can change if you want and also a dropdown box
where you can choose a predetermined size such as "1,457.664 - 3.5" (For
a floppy disk I guess) or put your own like I do 15,000,000, then just
click the "OK" button and the process begins, easy as that. No mistakes,
works great.
...but this is Linux, and I want to do this in Linux, and I have to use
the command line with the right commands, switches, and parameters. Can
somebody please, please show me how to do this as I am pulling my hair
out with this one, cannot google for it (Since it is not free, not very
much information on how to use it other than getting files extracted.),
cannot get the gist of the man page or the rar help.
Take this file:
-rw-r--r-- 1 ohmster ohmster 701M May 6 12:44 Really Terrific Movie -
Part 1.avi
Create an rar file of it that is split into 15Mb chunks.
Someone please provide a working example. I am going nuts on this one.
Thank you.
--
~Ohmster
ohmster at ohmster dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: How to create multipart rar archive in linux? |
 |
 |
|
|
05-06-07 06:13 PM
Ohmster wrote:
> I have Fedora Core 6 installed on my machine and would like to create a
> multipart rar archive of a video file for Usenet posting. The video avi
> file is about 700Mb so I would like rar to create 15Mb volumes that all
> make one big archive like they do in the binary Usenet newsgroups.
for tar files is that splitting on 100MB
"tar czvf - source | split -d -b 100m -"
for rar files check "rar --help"
--
EOS
www.photo-memories.be
Running KDE 3.5.6 / openSUSE 10.2
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: How to create multipart rar archive in linux? |
 |
 |
|
|
05-06-07 06:13 PM
EOS <heelstraf@hotmail.com> wrote in news:C1o%h.161281$pR.1052726
@phobos.telenet-ops.be:
> Ohmster wrote:
>
a[vbcol=seagreen]
avi[vbcol=seagreen]
all[vbcol=seagreen]
>
> for tar files is that splitting on 100MB
> "tar czvf - source | split -d -b 100m -"
>
> for rar files check "rar --help"
Thanks for the help EOS, but I cannot use tar as most Usenet binary
people do not have a Linux machine or even know what a tar file is. I
think that Winzip can open a tar file but that would really create
problems, I have to use rar.
What I posted was "rar --help", those are the commands and switches to
use with rar, I just cannot seem to get the results I want with it. I am
sure that it is quite possible to do and that some Linux guru will easily
understand the help output that I posted and be able to come up with
working command line syntax, for me the answer that I seek appears to be
quite elusive.
Either somebody in here knows how to do it because they have already done
so or can try it on their machine to see if the syntax that they come up
with will work, that is, if some kind soul is interested and will try to
help. I have done that for other newbies and others in here have really
rolled up their sleeves and have helped me out too.
I think it was that fellow that makes the weekly FAQ and stats for the
newsgroup, Michael Heiming, helped me out a lot back in the days when
installing nvidia drivers was not so easy as it is now with the nvidia
installer that is available for Linux downloads. Back then, you had to
download and compile a kernel module and with Redhat and rpm files, there
were no kernel headers on the system and you really needed that to build
the nvidia kernel module. Mike had another Linux machine at his house
that had Redhat on it with an nvidia card so the figured out how to use
rpm to use ftp to download, extract, and install the kernel headers with
rpm and then how to build and install the drivers. It was no "walk in the
park" but he did it and did a bang up job of it, for sure. I bet that one
post of his has probably been googled for and helped out a great many
other beginner Linux enthusiasts all over the world. That is the great
thing about Usenet and google, once you make a post, it gets archived and
if someone else is in the same mess as you are in, they can google for
and find the help that they need.
I still get emails from others that have had similar problems to mine,
the latest one was cifs and making mount work with samba shares on
Fedora. I kept getting a memory error and with the help of Steven French,
the guy who wrote the cifs module for Linux, eventually figured out that
it was not Linux that was the problem, it was the XP machine with the
shares. I tried to mount shares from a different XP machine and it worked
so then with a little follow up and more googling, we tracked it down to
a registry addition to the un-mountable samba share XP machine, that
allowed my samba shares to be mounted, finally. I answer all such
requests for help because I have been there and have been stuck like that
too.
Anyway, I will keep plugging away and maybe someone here can help figure
it out, thanks for trying.
--
~Ohmster
ohmster at ohmster dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: How to create multipart rar archive in linux? |
 |
 |
|
|
05-06-07 06:13 PM
On Sun, 06 May 2007 19:05:19 +0200, Ohmster wrote:
> Take this file:
> -rw-r--r-- 1 ohmster ohmster 701M May 6 12:44 Really Terrific Movie -
> Part 1.avi
>
> Create an rar file of it that is split into 15Mb chunks.
>
> Someone please provide a working example. I am going nuts on this one.
> Thank you.
rar a -v15000k <good.movie.name>
This will create;
<good.movie.name>.part01.rar,
<good.movie.name>.part02.rar
<good.movie.name>.part03.rar
etc.
rar a -v15000k -vn <good.movie.name>
will create;
<good.movie.name>.rar
<good.movie.name>.r00
<good.movie.name>.r01
etc.
The individual files will be 14.6MB each, except the last, which will be
smaller. The command puts every file in the working directory into the
.rar files, so if you only want the movie rared, be sure it's the only
file in the working directory
--
imotgm
"Lost? Lost? I've never been lost... Been a tad confused for a
month or two, but never lost."
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: How to create multipart rar archive in linux? |
 |
 |
|
|
05-07-07 12:13 AM
On Sun, 06 May 2007 19:50:29 +0200, Ohmster wrote:
> Either somebody in here knows how to do it because they have already done
> so or can try it on their machine to see if the syntax that they come up
> with will work, that is, if some kind soul is interested and will try to
> help. I have done that for other newbies and others in here have really
> rolled up their sleeves and have helped me out too.
Newbie, newbie, newbie.
Damn, I've wanted to do that to some regular for a long time. :D
> Anyway, I will keep plugging away and maybe someone here can help figure
> it out, thanks for trying.
See my other post. I just wanted to add;
rar t *part01.rar
will test the new .rar files for integrity. If the old style numbering is
used, .r00, .r01, the command is simply;
rar t *.rar
Have fun. ;)
--
imotgm
"Lost? Lost? I've never been lost... Been a tad confused for a
month or two, but never lost."
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: How to create multipart rar archive in linux? |
 |
 |
|
|
05-07-07 12:13 AM
In <Xns9928851FEBBB4MyBigKitty@194.177.96.26>, on Sun, 6 May 2007
19:05:19 +0200 (CEST), Ohmster wrote:
> Yes I have "man rar" and I have
> googled for examples but most of the google pages tell how to extract
> files from rar, not how to create multipart rar archives.
Have you looked at the included documenation?
> v<size>[k,b] Create volumes with size=<size>*1000 [*1024, *1]
Look for the part in the doc that corresponds with that.
There are examples.
> Can
> somebody please, please show me how to do this as I am pulling my hair
> out with this one, cannot google for it (Since it is not free, not very
> much information on how to use it other than getting files extracted.),
> cannot get the gist of the man page or the rar help.
The docfile is much more detailed than the man page.
It has everything you need.
> Someone please provide a working example. I am going nuts on this one.
$ locate rar.txt
You may come up with rar.txt.gz, but someone who's
been using Linux for as many years as you have should
certainly know how to read that. (Actually someone
who's been using Linux for so many years shouldn't need
to be told to use locate, or to look in /usr/share/doc
but hey...
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: How to create multipart rar archive in linux? |
 |
 |
|
|
05-07-07 12:13 AM
On 2007-05-06, Ohmster <nowayin@hell.com> wrote:
> Thanks for the help EOS, but I cannot use tar as most Usenet binary
> people do not have a Linux machine or even know what a tar file is. I
> think that Winzip can open a tar file but that would really create
> problems, I have to use rar.
AFAIK, all win archive managers know how to use tar. WinZip, WinRar,
7zip, WinArj... can use tar because it's a very simple archive.
--
Najveca moc u fizici je moci staviti minus tamo gdje ti treba.
The greatest special power in physics is to be able to place the
minus sign where you need it.
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: How to create multipart rar archive in linux? |
 |
 |
|
|
05-07-07 06:16 AM
imotgm <imotgmREM@notreally.yahoo.com> wrote in
news:pan.2007.05.06.18.00.21.397624@notreally.yahoo.com:
I really hope this works. Okay, here we go...
> rar a -v15000k <good.movie.name>
[ohmster@ohmster post]$ ls -la
total 718192
drwxr-xr-x 2 ohmster ohmster 135168 May 6 20:12 .
drwxr-xr-x 88 ohmster ftpsecure 4096 May 3 18:21 ..
-rw-r--r-- 1 ohmster ohmster 734556160 May 6 20:10 Really Terrific
Movie - Part 1.avi
[ohmster@ohmster post]$ rar a -v15000k "Really Terrific Movie - Part
1.avi"
RAR 3.20 Copyright (c) 1993-2003 Eugene Roshal 15 May 2003
Registered to
ERROR: Cannot modify volume[ohmster@ohmster post]$
That cannot work, not specifying the source, not even a wildcard here.
Trying it with a made up archive name like you said...
ERROR: Cannot modify volume[ohmster@ohmster post]$ rar a -v15000k
good.movie.name
RAR 3.20 Copyright (c) 1993-2003 Eugene Roshal 15 May 2003
Registered to
Creating archive good.movie.name
Adding Really Terrific Movie - Part 1.avi
Creating archive good.movie.name.part02.rar
... Really Terrific Movie - Part 1.avi
User break
[ohmster@ohmster post]$ ls
good.movie.name.part01.rar Really Terrific Movie - Part 1.avi
[ohmster@ohmster post]$ ls -lh
total 716M
-rw-rw-r-- 1 ohmster ohmster 15M May 6 20:15 good.movie.name.part01.rar
-rw-r--r-- 1 ohmster ohmster 701M May 6 20:10 Really Terrific Movie -
Part 1.avi
[ohmster@ohmster post]$
Wow, it works! I did a Ctl-c to stop it and see what it was doing. By
George I think you've got it! Okay I am going to try the whole thing and
let you know how it goes.
> This will create;
> <good.movie.name>.part01.rar,
> <good.movie.name>.part02.rar
> <good.movie.name>.part03.rar
> etc.
>
> rar a -v15000k -vn <good.movie.name>
>
> will create;
> <good.movie.name>.rar
> <good.movie.name>.r00
> <good.movie.name>.r01
> etc.
>
> The individual files will be 14.6MB each, except the last, which will
be
> smaller. The command puts every file in the working directory into the
> .rar files, so if you only want the movie rared, be sure it's the only
> file in the working directory
Thank you so much. For some reason, I really got a brain lock on this one
and could not get past it man.
--
~Ohmster
ohmster at ohmster dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: How to create multipart rar archive in linux? |
 |
 |
|
|
05-07-07 06:16 AM
imotgm <imotgmREM@notreally.yahoo.com> wrote in
news:pan.2007.05.06.18.16.10.25750@notreally.yahoo.com:
>
> Newbie, newbie, newbie.
Well, even you were a newbie at one time, we all start out that way. ;> )
> Damn, I've wanted to do that to some regular for a long time. :D
LOL!
>
> See my other post. I just wanted to add;
>
> rar t *part01.rar
>
> will test the new .rar files for integrity. If the old style numbering
> is used, .r00, .r01, the command is simply;
>
> rar t *.rar
>
> Have fun. ;)
It works, thank you so much dude. Saving this for posterity.
--
~Ohmster
ohmster at ohmster dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: How to create multipart rar archive in linux? |
 |
 |
|
|
05-07-07 06:16 AM
Davorin Vlahovic <nrubA@ylf.krs.ref.rh> wrote in
news:slrnf3sc4j.3vk.nrubA@afrodita.home.lan:
> On 2007-05-06, Ohmster <nowayin@hell.com> wrote:
>
> AFAIK, all win archive managers know how to use tar. WinZip, WinRar,
> 7zip, WinArj... can use tar because it's a very simple archive.
>
Agreed, but then I will get a string of follow-ups like "What the hell is a
tar file and what do I do with it?" type stuff. Will just do the rar thing
and let it be done. Tar for sure is a very good way to get things done
though.
--
~Ohmster
ohmster at ohmster dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.
[ Post a follow-up to this message ]
|
|
|
 |
|
|
|
|
Sponsored Links |
 |
 |
|
|
 |
All times are GMT. The time now is 05:01 AM. |
 |
|
|
 |
|
 |
|
|
 |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
|
|
|
|
|
 |
|
 |
|