Page 1 of 1
How to compress lz4? (with gui if possible)
Posted: Fri 31 May 2019, 20:18
by zagreb999
lz4 -how compress?
who knows to compress to lz4
in gui?
thanks
Posted: Sat 01 Jun 2019, 00:24
by musher0
Hello zagreb999.
Easy enough.
Check if you have lz4 installed by typing in console:
If not, install it through the PPM.
Then install the latest version of
PackIt, by forum member SFR.
You have to install lz4 before PacKIt, otherwise PackIt will not list ( recognize ) lz4.
IHTH.
Posted: Sat 01 Jun 2019, 05:37
by zagreb999
mr. musher0 thank you!!!
which .pet i need to install for lz4?
i have debiandog 32bit
please see screenshot
thanks...
Posted: Sat 01 Jun 2019, 08:42
by fredx181
zagreb999 wrote:mr. musher0 thank you!!!
which .pet i need to install for lz4?
i have debiandog 32bit
please see screenshot
thanks...
That should be
liblz4-tool, btw, here's also a deb for Packit (named it pack-it because otherwise it would conflict with a network tool named "packit"):
https://fred181.gitlab.io/devuandog/i38 ... .1_all.deb
(perhaps you need to restart X to have Packit displayed in the filemanager right-click actions)
Fred
Posted: Sat 01 Jun 2019, 11:44
by zagreb999
fred, thank you for your excellence!
i made lz4 of initrd in stretchdog (deblive with mklive script-works
great) for old laptop with 1gb of ram...
because that have to be faster.
but, initrd can work only with xz and gz compression
can we do something to work also with lz4?
thanks
Posted: Sat 01 Jun 2019, 12:35
by fredx181
Ah, initrd yes, can be done from terminal:
Don't know if you extracted the initrd1.xz already, anyway below will extract it and create new initrd.lz4 in same directory as initrd1.xz
Open a terminal in directory where initrd1.xz is located and run the following:
Code: Select all
# extract initrd1.xz in newinitrd folder and create new initrd.lz4:
mkdir newinitrd # make dir where the extracted files go
cd newinitrd # go inside newinitrd directory
xz -dc ../initrd1.xz | cpio -i # extract ../initrd1.xz
find | cpio -o -H newc | lz4 -l > ../initrd.lz4 # make new ../initrd.lz4
To extract the initrd.lz4 (maybe you need to do later), something like:
Open a terminal in directory where initrd.lz4 is located
Code: Select all
mkdir extract-initrd-lz4
cd extract-initrd-lz4
lz4 -dc ../initrd.lz4 | cpio -id
Not sure if initrd.lz4 will boot, did not test that.
Fred
initrd-lz4
Posted: Sat 01 Jun 2019, 12:47
by zagreb999
thanks fred
initrd1.lz4 can not boot...
what we can do?
Re: initrd-lz4
Posted: Sat 01 Jun 2019, 13:05
by fredx181
zagreb999 wrote:thanks fred
initrd1.lz4 can not boot...
what we can do?
Should work !
I now tested and boots fine, I thought already that the kernel supports lz4, but wasn't 100% sure, probably you did something wrong, just try again and check if everything is correct.
Did you rename in your menu.lst (or whatever) initrd1.xz to initrd.lz4 ? Name correct ? (is it initrd
1.lz4 or initrd.lz4)
EDIT: Btw, note that you get only a little bit faster boot with initrd.lz4, do not expect that the system will run faster.
Fred
Posted: Sat 01 Jun 2019, 13:19
by zagreb999
fred ok,
thanks!
your welcome!
Posted: Sat 01 Jun 2019, 15:04
by musher0
Next time, zagreb999,
please specify if your question is for a Dog or a Puppy,
and which version it is. Thanks in advance.
I wasted my time answering you.
Best regards.