English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 13 August 2016, 19:13   #1
DamienD
Global Moderator

DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 41
Posts: 10,888
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?
DamienD is offline  
AdSense AdSense  
Old 13 August 2016, 19:18   #2
s2325
Zone Friend

s2325's Avatar
 
Join Date: Jun 2006
Location: Gargore
Age: 37
Posts: 17,790
I think multi volume size must have single floppy disk capacity.
s2325 is offline  
Old 13 August 2016, 19:49   #3
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
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
multiple-volume / -r recursive into folders / 700kb each volume.
there might be an option to not ask after each volume is filled.
Attached Files
File Type: lha lha_keyfile.lha (96 Bytes, 54 views)

Last edited by emufan; 13 August 2016 at 20:07.
emufan is offline  
Old 13 August 2016, 20:07   #4
Galahad/FLT
Going nowhere

Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 44
Posts: 6,842
Or Just use Splitz and Joinz, commonly available utils on Aminet, you can specify the size of the files you want to split to.
Galahad/FLT is offline  
Old 13 August 2016, 20:59   #5
DamienD
Global Moderator

DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 41
Posts: 10,888
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?
DamienD is offline  
Old 13 August 2016, 21:02   #6
DamienD
Global Moderator

DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 41
Posts: 10,888
Quote:
Originally Posted by Galahad/FLT View Post
Or Just use Splitz and Joinz, commonly available utils on Aminet, you can specify the size of the files you want to split to.
Thank you kindly also Galahad

...though I've managed to split an .LZX archive into 3 parts using:

Quote:
FSplit <filename>.lzx C 3
I'm unsure how to join. I tried the following after reading the docs but no joy:

Quote:
Join <filename>.lzx-001.splt <filename>.lzx-002.splt <filename>.lzx-003.splt <filename>.lzx
DamienD is offline  
Old 13 August 2016, 21:06   #7
jPV
Registered User
jPV's Avatar
 
Join Date: Feb 2008
Location: RNO
Posts: 541
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
jPV is offline  
Old 13 August 2016, 21:16   #8
Cobe
Registered User

 
Join Date: Jan 2014
Location: Belgrade / Serbia
Age: 35
Posts: 542
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/
Cobe is offline  
Old 13 August 2016, 21:26   #9
Galahad/FLT
Going nowhere

Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 44
Posts: 6,842
Most join/splitting programs you only need to specify the first file to join, and it will automatically pickup the rest itself.
Galahad/FLT is offline  
Old 13 August 2016, 21:38   #10
DamienD
Global Moderator

DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 41
Posts: 10,888
Quote:
Originally Posted by Galahad/FLT View Post
Most join/splitting programs you only need to specify the first file to join, and it will automatically pickup the rest itself.
Ok, I'll try that

I did however get it working, it was my mistake... The correct syntax is as follows (and documented with FSplit):

Quote:
Join <filename>.lzx-001.splt <filename>.lzx-002.splt <filename>.lzx-003.splt to <filename>.lzx
...like a muppet; I had missed the part above in bold / underline
DamienD is offline  
Old 13 August 2016, 21:42   #11
DamienD
Global Moderator

DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 41
Posts: 10,888
Quote:
Originally Posted by Cobe View Post
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/
Thank you Cobe; but I need a command line tool instead of a GUI.

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"
DamienD is offline  
Old 14 August 2016, 18:46   #12
SKOLMAN_MWS
Registered User

 
Join Date: Jan 2014
Location: Poland
Posts: 100
http://www.onyxsoft.se/joinsplitter.html

SKOLMAN_MWS is offline  
Old 14 August 2016, 19:45   #13
DamienD
Global Moderator

DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 41
Posts: 10,888
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.
DamienD is offline  
Old 16 August 2016, 03:59   #14
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
you were focused on lha, so you got a working way.
but yes, split/join is the better way
emufan is offline  
Old 16 August 2016, 11:48   #15
DamienD
Global Moderator

DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 41
Posts: 10,888
Quote:
Originally Posted by emufan View Post
you were focused on lha, so you got a working way.
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:
Originally Posted by DamienD View Post
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?
Quote:
Originally Posted by emufan View Post
but yes, split/join is the better way
Yeah, this turned out to be simplier i.e:

... 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
DamienD is offline  
Old 16 August 2016, 14:18   #16
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
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:
LhA -V -Qvdf0,df1 x df0:MltArc #?.c

This would extract all `.c' files (#?.c) from the
multivolume archive (-V) `MltArc.lha', alternating between
drive df0: and df1: (-Qvdf0,df1).
in my example i put all the archive parts in the ram disk, and this one did work:
Code:
lha_150 -V -Qvram x ram:base
this way, it did extract all files, asking to insert new volume after each part.

Last edited by emufan; 16 August 2016 at 14:42.
emufan is offline  
Old 16 August 2016, 15:20   #17
DamienD
Global Moderator

DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 41
Posts: 10,888
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)
DamienD is offline  
Old 16 August 2016, 17:54   #18
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
np. at the end it is all about gathering information.
maybe someone can make some use out of it
emufan is offline  
Old 31 January 2017, 09:54   #19
Cass
 
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?
 
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:13.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Page generated in 0.36530 seconds with 15 queries