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
dir2xzm or mksquashfs ?
dir2xzm or mksquashfs ?
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.).
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.
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.).
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=102066#p102066
https://forum.porteus.org/viewtopic.php?p=102306#p102306
https://forum.porteus.org/viewtopic.php?p=72741#p72741

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=102066#p102066
https://forum.porteus.org/viewtopic.php?p=102306#p102306
https://forum.porteus.org/viewtopic.php?p=72741#p72741
dir2xzm or mksquashfs ?
thanks M. Eerie,
but what do the parameters mean -noappend and -no-strip
but what do the parameters mean -noappend and -no-strip
-
- Full of knowledge
- Posts: 2104
- Joined: 17 Jun 2013, 13:17
- Distribution: Porteus 3.2.2 XFCE 32bit
- Location: Germany
dir2xzm or mksquashfs ?
-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
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