Page 1 of 1

unrar spanned archive

Posted: Tue Sep 24, 2013 6:05 am
by mcgyver83
Hi!
I have a spanned archive set (part1.rar, part2.rar .... etc) and I need to unrar it via command line.
I tried

Code: Select all

unrar e a.part1.rar

Code: Select all

unrar e a.part1.rar a.part2.rar
but I still have the same error:

Code: Select all

unrar 0.0.1  Copyright (C) 2004  Ben Asselstine, Jeroen Dekkers


Extracting from /media/ScreenPlayHD/a.part1.rar

Extracting  a.txt                                              Failed    
1 Failed

Everything is fine with single rar file or if I try to unrar the same spanned archive from windows.
Same error if I use Xarchive from LXDE.

Re: unrar spanned archive

Posted: Wed Sep 25, 2013 11:53 am
by mcgyver83
No one? :roll:

Re: unrar spanned archive

Posted: Wed Sep 25, 2013 12:32 pm
by RaTTuS
umm at a guess they are named wrong
should they not be something like
file.rar
file.part2
file.part3

then you
unrar e file

it will find the other parts then

Re: unrar spanned archive

Posted: Wed Sep 25, 2013 1:07 pm
by mcgyver83
On windows I can unrar them as they are now, a.rar, a.part1.rar, a.part2.rar ..
You are suggesting to rename them in a.part1, a.part2 removing rar suffix?

Re: unrar spanned archive

Posted: Wed Sep 25, 2013 1:43 pm
by RaTTuS
yeah try it and see

I never use rar these days myself

Re: unrar spanned archive

Posted: Wed Sep 25, 2013 4:27 pm
by mcgyver83
I had
a.part1.rar,
a.part2.rar,
a.part3.rar.

Unrar e a.part1.rar
failed.

Unrar e a.part1.rar a.part2.rar a.part3.rar
failed.


Renamed to
a.part1,
a.part2,
a.part3

Unrar e a.part1
failed.

Unrar e a.part1 a.part2 a.part3
failed.

Error:
unrar 0.0.1 Copyright (C) 2004 Ben Asselstine, Jeroen Dekkers


Extracting from /media/ScreenPlayHD/a.part1

Extracting p.iso Failed
1 Failed

Re: unrar spanned archive

Posted: Thu Oct 10, 2013 6:36 am
by mcgyver83
I still have the same problem.

Can someone suggest me another utility to unrar spanned archive?

Re: unrar spanned archive

Posted: Mon Nov 04, 2013 10:30 pm
by mcgyver83
none can help me?

Re: unrar spanned archive

Posted: Mon Nov 04, 2013 10:52 pm
by suchenwi
As RaTTuS wrote on Sep.23, the files should be named
x.rar
x.part2
x.part3
...
Have you tried that?

Re: unrar spanned archive

Posted: Mon Nov 04, 2013 11:42 pm
by jojopi
suchenwi wrote:As RaTTuS wrote on Sep.23, the files should be named
x.rar
x.part2
x.part3
No, they are named correctly. They can be either .partN.rar, or old-style: .rar .r00 .r01…

The problem is that the unrar implementation in package unrar-free does not support multipart archives. http://gna.org/bugs/?723

The "proper" versions of rar/unrar are not free software and presumably are not available for ARMv6 with hard float ABI. It may be possible to compile unrar (but not rar) yourself from source. http://www.rarlab.com/rar_add.htm

A better option is to stop using rar. It is very slow and does not have particularly good compression.

Re: unrar spanned archive

Posted: Tue Nov 05, 2013 7:36 am
by mcgyver83
Is the compile an hard job?
I'm e rookie on linux compilation stuff.
In the link you provided I found 2 interesting archive:
UnRAR for ARM Linux Command line freeware ARMEL v4 Linux UnRAR.
UnRAR for ARM Linux Command line freeware ARM Linux UnRAR.

Which one I have to download and compile?

There is any way to join the partN.rar files to have big rar file and use unrar-free with it?

Re: unrar spanned archive

Posted: Tue Nov 05, 2013 9:40 am
by RaTTuS
personally,
I'd unrar them on a PC then re zip them with anything else [or not and just move them whole]
rar is slow , proprietary , not very good and a lot of other things that I will not mention on a family friendly forum [FFF]

http://www.rarlab.com/rar/unrarsrc-5.0.12.tar.gz <- is probably the place you want to start

Re: unrar spanned archive

Posted: Tue Nov 05, 2013 1:03 pm
by mcgyver83
Thanks.
I'll check you link.

Regards

Re: unrar spanned archive

Posted: Tue Nov 05, 2013 1:23 pm
by Joe Schmoe
I know the goal is to "solve the problem" and not get waylaid into "side meta", but, just out of curiosity (seriously!), I think many of would like to know why it is that you need to use RAR.

Is this a one-time deal, or is it part of an on-going process?

Is there any reason why you couldn't just unrar it on a PC (and be done with this task) ?

(I assume that size is an issue - given that the thing is a multi-part archive - but still, the question remains...)

Re: unrar spanned archive

Posted: Tue Nov 05, 2013 1:25 pm
by Joe Schmoe
I should add to the previous that (given what little I know about RAR, having never used it, just read about it), the primary attraction of RAR is the ability to run scripts and stuff as part of the unpacking process (i.e., it is more of an installer than just a mere archiver), but the funny thing about this, of course, is that that functionality be turned off (disabled) in a non-Windows version [*].

[*] For "security reasons" ...

Re: unrar spanned archive

Posted: Thu Nov 07, 2013 11:53 am
by mcgyver83
I usually receive rar files so I have to deal with them and I cannot choose the packing algorithm.
I'm not moving file to the pc because it will take a while copying them via samba (raspberry is connect via wifi dongle to the network).

Re: unrar spanned archive

Posted: Thu Nov 07, 2013 2:16 pm
by Joe Schmoe
mcgyver83 wrote:I usually receive rar files so I have to deal with them and I cannot choose the packing algorithm.
I'm not moving file to the pc because it will take a while copying them via samba (raspberry is connect via wifi dongle to the network).
OK - that all makes sense. The key being that it is *not* a "one-time deal".

Re: unrar spanned archive

Posted: Fri Nov 08, 2013 8:55 am
by mcgyver83
unfortunately no :?
Ok, I'll try compiling winrar sources.

Thanks

Re: unrar spanned archive

Posted: Mon Nov 11, 2013 9:42 pm
by mcgyver83
jojopi wrote:
suchenwi wrote:As RaTTuS wrote on Sep.23, the files should be named
x.rar
x.part2
x.part3
No, they are named correctly. They can be either .partN.rar, or old-style: .rar .r00 .r01…

The problem is that the unrar implementation in package unrar-free does not support multipart archives. http://gna.org/bugs/?723

The "proper" versions of rar/unrar are not free software and presumably are not available for ARMv6 with hard float ABI. It may be possible to compile unrar (but not rar) yourself from source. http://www.rarlab.com/rar_add.htm

A better option is to stop using rar. It is very slow and does not have particularly good compression.
I'm trying to compile from the sources suggested by Rattus, http://www.rarlab.com/rar/unrarsrc-5.0.12.tar.gz
I extracted the sources, run "make".... after how can I install compiled software and delete sources?
Sorry but it's the first compile I made