slitaz-doc-wiki-data view pages/en/guides/lowramcd.txt @ rev 7

Add pages/en folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 26 12:17:18 2011 +0000 (2011-02-26)
parents
children 90832bdf1ed3
line source
1 ====== Live CD for Low-RAM Systems ======
3 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.
5 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.
7 * //slitaz-loram// will compress the ///usr// tree and the system will still run in RAM. It will not use a cdrom, harddisk or USB key
8 * //slitaz-loram-http// will get the ///usr// tree from an iso image stored in http://mirror.slitaz.org/ built using //slitaz-loram-cdrom//, and pass the 'tiny' keyword while booting from the web
9 * //slitaz-loram-cdrom// will move the ///usr// tree onto the cdrom
11 ///usr// will be read-only. If the package //funionfs// or //aufs// is installed you will have read-write access to ///usr//.
13 These packages patch ///etc/init.d/rcS// to mount ///usr// and install two scripts in ///etc/tazlito//:
15 * //loram.rootfs// is called by //tazlito gen-distro// to compress or move ///usr//
16 * //loram.extract// is called by the //slitaz-installer// to uncompress or move ///usr// and install the same distribution as the SliTaz core LiveCD
18 Let's build a //slitaz-loram-cdrom.iso// !
20 ===== slitaz-loram-cdrom =====
22 We boot the LiveCD and install the slitaz-loram-cdrom package:
24 <code> # tazpkg get-install slitaz-loram-cdrom </code>
26 //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.
28 <code> # rm -f /etc/tazlito/distro-packages.list ./distro-packages.list </code>
30 Now we can build the iso image…
32 <code> # tazlito gen-distro </code>
34 …and burn it.
36 <code># wodim dev=1,0,0 /home/slitaz/distro/slitaz-hacked.iso </code>
38 ===== Variations of slitaz-loram & slitaz-loram-cdrom =====
40 //slitaz-loram// compresses ///usr// with //cromfs// by default, which gives a higher compression ratio but is very slow. You can use //squashfs// instead:
42 * refuse to install cromfs during the slitaz-loram installation
44 <code> # yes n | tazpkg get-install slitaz-loram </code>
46 * install squashfs with its dependencies
48 <code> # yes y | tazpkg get-install squashfs </code>
50 //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.
52 ===== Let's build a slitaz-loram-cdrom-sqfs.iso!=====
54 Install the package //slitaz-loram-cdrom// and //squashfs// (sqfs) on the host system:
56 <code>
57 # tazpkg get-install slitaz-loram-cdrom
58 # yes y | tazpkg get-install squashfs
59 </code>
61 Now we repeat the latter points of the above process:
62 <code>
63 # rm -f /etc/tazlito/distro-packages.list ./distro-packages.list
64 # tazlito gen-distro
65 # wodim dev=1,0,0 /home/slitaz/distro/slitaz-hacked.iso
66 </code>
68 ===== slitaz-loram-cdrom and Large Memory Systems =====
70 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:
72 * a slitaz LiveCD (/usr was not compressed on the cdrom)
73 * a slitaz-loram LiveCD (/usr was compressed on the cdrom by squashfs or cromfs)
75 ===== slitaz-loram-cdrom and Tiny Memory Systems =====
77 The boot command line is usually:
79 <code> boot: slitaz args... </code>
81 Slitaz boots on a 9MB RAM system with the boot command:
83 <code> boot: loram single root=/dev/hdc </code>
85 Where ///dev/hdc// is the CD-ROM device, the loram boot entry avoids RAM disk creation and CD-ROM detection.
87 <note tip>Note that on a system with such a low amount of memory, the first thing to do is add swap!</note>
89 You need 10MB to use the boot scripts with:
91 <code> boot: loram root=/dev/hdc </code>
93 In this case you can add arguments like kmap=, config=, etc.
95 ===== slitaz-loram Auto-Extraction =====
97 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.
99 For example, assuming you boot the slitaz-loram-cdrom-sqfs:
101 <code> boot: slitaz extract-loram </code>
103 You will get:
105 * /usr read-only squashfs on a CD-ROM with a smaller RAM size
106 * /usr read-only squashfs in RAM with a medium RAM size (like slitaz-loram)
107 * /usr read-write tmpfs in RAM with a larger RAM size (like slitaz-core)
109 ===== Build a slitaz-loram with tazlitobox =====
111 Since SliTaz 3.0, you can now build a slitaz-loram LiveCD more easily:
112 * launch tazlitobox
113 * click on the Low RAM tab
114 * select //The filesystem is always in RAM// (for slitaz-loram) or //The filesystem may be on a CDROM// (for slitaz-loram-cdrom)
115 * fill the ISO input with your Slitaz flavor (3.0 or more recent)
116 * update the ISO output
117 * click //build ISO//
119 The filesystem root (/) is compressed (not /usr only) and mounted read-write thanks to the aufs package.
120 The //mount// and //df// commands will show a strange output, handy to detect that this kind of loram is running.
122 You can also use the following command in text mode:
123 <code> # tazlito build-loram original.iso loram.iso</code>
124 or:
125 <code> # tazlito build-loram original.iso loram-cdrom.iso cdrom</code>
127 Meta flavors are supported; you can loramize a slitaz-3in1.iso !
129 ===== And what to do with only 8MB RAM? =====
130 Try Tiny Slitaz : http://pizza.slitaz.org/tiny/ !
131 ----
132 \\
133 ^ Page Review Section ^^
134 |Quality| Good |
135 |Review| Minor Updates |
136 |Priority| Medium |
137 |Problems| add a [[http://forum.slitaz.org|forum post link]]|
138 |::: | OR add a [[http://labs.slitaz.org/issues |lab issue tracker link ]]|
139 |How to Improve|Needs a review by developers|
140 |::: | Add new rows like this ;-) |
142 \\
143 ----