The minimum RAM requirement for the SliTaz core Live CD is 160MB (128MB for 1.0). Many graphical applications won't run with such a low amount of memory; so, using the text-mode screen=text boot option is recommended.
The packages slitaz-loram, slitaz-loram-http or slitaz-loram-cdrom can be used to build a LiveCD for systems with RAM larger than 64MB, 32Mb or 24MB respectively. These can be installed directly on the host system, rather than specified in the packages list for the LiveCD you are building.
/usr will be read-only. If the package funionfs or aufs is installed you will have read-write access to /usr.
These packages patch /etc/init.d/rcS to mount /usr and install two scripts in /etc/tazlito:
Let's build a slitaz-loram-cdrom.iso !
We boot the LiveCD and install the slitaz-loram-cdrom package:
# tazpkg get-install slitaz-loram-cdrom
tazlito gen-distro will then create an ISO with the packages listed in /etc/tazlito/distro-packages.list or ./distro-packages.list. Since some more packages are installed, we remove these files to force tazlito to use all of the installed packages.
# rm -f /etc/tazlito/distro-packages.list ./distro-packages.list
Now we can build the iso image…
# tazlito gen-distro
…and burn it.
# wodim dev=1,0,0 /home/slitaz/distro/slitaz-hacked.iso
slitaz-loram compresses /usr with cromfs by default, which gives a higher compression ratio but is very slow. You can use squashfs instead:
# yes n | tazpkg get-install slitaz-loram
# yes y | tazpkg get-install squashfs
slitaz-loram-cdrom moves /usr uncompressed to the cdrom and produces a 90MB iso. If you install cromfs or squashfs, /usr will be compressed on the LiveCD and the ISO size will be around 30 megabytes.
Install the package slitaz-loram-cdrom and squashfs (sqfs) on the host system:
# tazpkg get-install slitaz-loram-cdrom # yes y | tazpkg get-install squashfs
Now we repeat the latter points of the above process:
# rm -f /etc/tazlito/distro-packages.list ./distro-packages.list # tazlito gen-distro # wodim dev=1,0,0 /home/slitaz/distro/slitaz-hacked.iso
When the slitaz-loram-cdrom LiveCD detects enough memory during boot, /usr is copied from the CD-ROM to RAM. You can eject and/or use the CD drive. The system behaves as a regular LiveCD in this case:
The boot command line is usually:
boot: slitaz args...
Slitaz boots on a 9MB RAM system with the boot command:
boot: loram single root=/dev/hdc
Where /dev/hdc is the CD-ROM device, the loram boot entry avoids RAM disk creation and CD-ROM detection.
You need 10MB to use the boot scripts with:
boot: loram root=/dev/hdc
In this case you can add arguments like kmap=, config=, etc.
Each slitaz-loram* flavor can be extracted into RAM at boot time (if enough memory is available) by using the boot argument extract-loram. You will get a core flavor running without read-only restrictions for /usr.
For example, assuming you boot the slitaz-loram-cdrom-sqfs:
boot: slitaz extract-loram
You will get:
Since SliTaz 3.0, you can now build a slitaz-loram LiveCD more easily:
The filesystem root (/) is compressed (not /usr only) and mounted read-write thanks to the aufs package. The mount and df commands will show a strange output, handy to detect that this kind of loram is running.
You can also use the following command in text mode:
# tazlito build-loram original.iso loram.iso
or:
# tazlito build-loram original.iso loram-cdrom.iso cdrom
Meta flavors are supported; you can loramize a slitaz-3in1.iso !
Try Tiny Slitaz : http://tiny.slitaz.org/ !
Page Review Section | |
---|---|
Quality | Good |
Review | Minor Updates |
Priority | Medium |
Problems | add a forum post link |
OR add a lab issue tracker link | |
How to Improve | Needs a review by developers |
Add new rows like this |