dir2xzm or mksquashfs ?

Post here if you are a new Porteus member and you're looking for some help.
roro
Black ninja
Black ninja
Posts: 65
Joined: 04 Aug 2022, 08:41
Distribution: Porteus 5.0 XFCE

dir2xzm or mksquashfs ?

Post#1 by roro » 20 Sep 2022, 11:34

Hi users,
instead of dir2xzm you can also use mkquashfs
I found it in the forum:
mksquashfs /home/guest/.mozilla/firefox/FirefoxProfile $PORTDIR/modules/fp.xzm -comp zstd -b 256K -noappend -no-strip

But why 256K (default is 128 Kbytes)
How to choose the block size?
mksquashfs is better because many parameters ?
But the parameters -noappend, -no-strip are completely incomprehensible to me.

As a beginner, it's difficult in Porteus.
I read diligently in the forum. I hope it gets me further.
Thanks

User avatar
M. Eerie
Moderator
Moderator
Posts: 620
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

dir2xzm or mksquashfs ?

Post#2 by M. Eerie » 20 Sep 2022, 12:39

Hi roro, welcome to the forum.
dir2xzm is a convenient function to create standard .xzm Porteus modules. Thus, dir2xzm calls mksquashfs with some predefined parameters to accomplish that task.

However, you can use mksquashfs with other parameters, should you need any other compression method (zstd, gzip, lzo, etc.).
roro wrote:
20 Sep 2022, 11:34
But why 256K (default is 128 Kbytes)
How to choose the block size?
This is the chunk used to compress data. The bigger you choose it, the more compression you will get.
There's a downside to this. If your system has low resources (memory), you would run into trouble trying to decompress the data, so given that Porteus is conceived as a distro for people dealing with such systems, the 256k is a good compromise.
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

roro
Black ninja
Black ninja
Posts: 65
Joined: 04 Aug 2022, 08:41
Distribution: Porteus 5.0 XFCE

dir2xzm or mksquashfs ?

Post#3 by roro » 21 Sep 2022, 08:48

thanks M. Eerie,
but what do the parameters mean -noappend and -no-strip

donald
Full of knowledge
Full of knowledge
Posts: 2065
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

dir2xzm or mksquashfs ?

Post#4 by donald » 21 Sep 2022, 09:38

-no-strip
act like tar, and do not strip leading directories from source files.

-noappend
do not append to existing filesystem.

https://www.mankier.com/1/mksquashfs

Post Reply