![]() |
![]() |
#1 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
LHA - Splitting a large file into 2 archives
Hello guys,
Can anyone help me with splitting a large file into say 2 x 700KB archives? I've list / read the LHA information: ![]() ![]() Noticed that there is an option "-V" but can't get this to work... Can anyone tell me the exact syntax to be used? |
![]() |
![]() |
#2 |
Zone Friend
Join Date: Jun 2006
Location: Gargore
Age: 44
Posts: 17,789
|
I think multi volume size must have single floppy disk capacity.
|
![]() |
![]() |
#3 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
i think it does not work with this version, but with lha150 from aminet.
you need the attached keyfile in your L: folder. and it will produce another archive, which you also have to extract. once you have the lha version 1.50, try the following syntax: Code:
lha150 -V700 -r a archive.lha sys: lha150 -V700 a archive.lha bigfile there might be an option to not ask after each volume is filled. Last edited by emufan; 13 August 2016 at 20:07. |
![]() |
![]() |
#4 |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,016
|
Or Just use Splitz and Joinz, commonly available utils on Aminet, you can specify the size of the files you want to split to.
|
![]() |
![]() |
#5 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
Much appreciated emufan
![]() ![]() ![]() ...strange that this doesn't seem to work in the later version 1.21 though. Anyway, managed to compile LHA 1.50 that you linked to and then used the 1st syntax that you provided. I now have 3 files: a) <filename>.lha b) <filename>.l01 b) <filename>.l02 Now for the next problem; how do I extract them? Note that each file will be on a separate disk so I guess I need to call each one in turn somehow? |
![]() |
![]() |
#6 | |||
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
Quote:
![]() ...though I've managed to split an .LZX archive into 3 parts using: Quote:
Quote:
|
|||
![]() |
![]() |
#7 |
Registered User
Join Date: Feb 2008
Location: RNO
Posts: 1,007
|
I would avoid custom splitters/joiners which add their own headers, because we already have the Join command in AmigaOS, which can join plain splitted files. I personally split files using DOpus' split function, but there should be several commands in Aminet which split files in "standard" way too. Didn't check how the previously mentioned splitters work, but just as an opinion
![]() |
![]() |
![]() |
#8 |
Registered User
Join Date: Jan 2014
Location: Belgrade / Serbia
Age: 41
Posts: 1,008
|
I use hjsplit. And I think I used in 90s too to transfer files over floppies from Amiga to PC and vice versa. It's multiplatform tool. And easy to use. If you already didn't sort out things maybe you can try it.
http://www.hjsplit.org/amiga/ |
![]() |
![]() |
#9 |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,016
|
Most join/splitting programs you only need to specify the first file to join, and it will automatically pickup the rest itself.
|
![]() |
![]() |
#10 | ||
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
Quote:
![]() I did however get it working, it was my mistake... The correct syntax is as follows (and documented with FSplit): Quote:
![]() |
||
![]() |
![]() |
#11 | |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
Quote:
After splitting the original files with "FSplit": http://aminet.net/package/disk/misc/FSplit, the Amiga already has a program I can use to re-join i.e. "Join" ![]() |
|
![]() |
![]() |
#12 |
Registered User
Join Date: Jan 2014
Location: Poland
Posts: 168
|
|
![]() |
![]() |
#13 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
Cheers SKOLMAN_MWS, thanks for your suggestion. I came across this on Aminet
![]() Have found a solution now, that works a treat for my original purpose i.e: ... "FSplit" (http://aminet.net/package/disk/misc/FSplit) to split the file. ... "Join" (part of WorkBench) to join all files afterwards. |
![]() |
![]() |
#14 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
you were focused on lha, so you got a working way.
but yes, split/join is the better way ![]() |
![]() |
![]() |
#15 | |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
Thank you so much for you assistance emufan; very much appreciated
![]() ![]() ![]() Only issue with the .LHA solution is that I can't work out how to extract all 3 files created afterwards. Quote:
... Just .LZX everything up, no matter how large. ... Use FSplit to split into manageable parts. ... Use Join to re-join all parts into the original .LZX file. ... Extract the .LZX file. The great thing for me is that I learnt something new with both solutions ![]() |
|
![]() |
![]() |
#16 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
extracting I have not tested, I was asuming, it would just work out of the box
( lha x base-archive.lha ) but it doesnt :/ funnily enough, it does work with the c:join command: c:join base.lha base.l01 base.l02 TO full.lha next you can just lha x full.lha. this does work, just tested right at the moment ![]() on the other side, there must be some cryptic option for lha, to decompress such multi-volume archives, but I cannot see, what it is :/ edit: the manual gives some hints, how to extract the multi-volume archives: Quote:
Code:
lha_150 -V -Qvram x ram:base ![]() Last edited by emufan; 16 August 2016 at 14:42. |
|
![]() |
![]() |
#17 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
Thanks again
![]() ...seems like a lot of hassle though when compared to LZX / split / rejoin / unLZX (plus LZX seems to have better compression than LHA, from what I've found) ![]() |
![]() |
![]() |
#18 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
np. at the end it is all about gathering information.
maybe someone can make some use out of it ![]() |
![]() |
![]() |
#19 |
Posts: n/a
|
I`d like to backup a large sum of data to a NAS drive, on the fly.
What is the best solution? Is it possible to redirect the .lha file as being created to pipe: and split it? |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Some issues when mounting ADFs and large archives | Leffmann | support.WinUAE | 2 | 24 August 2015 20:46 |
Self Extracting LHA Archives | hipoonios | support.Apps | 7 | 16 January 2015 23:15 |
Protection bits of amiga lha-archives | jbl007 | Coders. General | 0 | 23 August 2014 21:52 |
How to unpack LHA archives using Amiga Installer Script? | doble07 | Coders. General | 3 | 02 February 2010 11:47 |
Making LHA archives that the Amiga can read? | Muzer | support.Other | 7 | 02 October 2009 20:26 |
|
|