Page 1 of 1

Special commands in Porteus:lzm2xzm as an example

Posted: 03 Jul 2011, 04:18
by francois
This thread aim at giving more detailed explanations for some Porteus special and unique commands.

Here is one that I used lzm2xzm. It permits the transformation of modules compressed in the lzm format to be compressed in xzm, an even more efficient form of compression. In the following lines, some information will be given on its use, its syntax, but also some of its limitations.

Porteus has choosen xzm (for XZ compression modules) for verion 1,0 of its OS. XZ is synonym of LZMA2 compression:

Use:
lzm2xzm will allow the conversion of lzm modules into xzm modules.

Syntax:
lzm2xzm gimp.lzm
lzm2xzm gimp.lzm gimp.xzm

Limitations:
1. It works only for 32-bit to 32-bit modules or for 64-bit modules to 64-bit modules. You could not convert 32-bit to 64-bit and vis-et-versa, The libraries for these program being different and not compatible,see:
http://forum.porteus.org/viewtopic.php?f=48&t=440
2. You can not use it for modules on NTFS or FAT partifion, see:
http://forum.porteus.org/viewtopic.php?f=46&t=321
http://forum.porteus.org/viewtopic.php? ... 338&p=1727

Other commands specific to Porteus, and that could be treated on this thread are:
txz2xzm
dir2xzm

Do you have some few to submit?

Re: Special commands in Porteus:lzm2xzm as an example

Posted: 03 Jul 2011, 06:21
by Ahau
Great idea for documentation!

I'm sure I'll think of some more...but for right now,

As a modular distro, users will often need to mount modules and image files to gain access to their contents. To simplify this process, Porteus includes the following two commands:

mloop
uloop

Use: mloop mounts an image file or a module (e.g. ISO files, .dat containers, .xzm modules, initrd) on a loop and makes its' contents available in /mnt/loop. If an additional loop is needed, one will be created. Entering the 'uloop' command will unmount /mnt/loop/.

Syntax:
mloop /mnt/sdb1/porteus/base/000-kernel.xzm
uloop (no options need to be specified; anything mounted at /mnt/loop will be unmounted)

Re: Special commands in Porteus:lzm2xzm as an example

Posted: 03 Jul 2011, 11:05
by francois
I wonder if we should not find and add hyperlinks for threads that used the commands with success?