Special commands in Porteus:lzm2xzm as an example

Post tutorials, HOWTO's and other useful resources here.
User avatar
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Special commands in Porteus:lzm2xzm as an example

Post#1 by francois » 03 Jul 2011, 04:18

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?
Prendre son temps, profiter de celui qui passe.

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: Special commands in Porteus:lzm2xzm as an example

Post#2 by Ahau » 03 Jul 2011, 06:21

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)
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Special commands in Porteus:lzm2xzm as an example

Post#3 by francois » 03 Jul 2011, 11:05

I wonder if we should not find and add hyperlinks for threads that used the commands with success?
Prendre son temps, profiter de celui qui passe.

Post Reply