SliTaz GNU/Linux official and community documentation wiki.
.png

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:guides:lowramcd [2010/02/21 02:41]
jozee
en:guides:lowramcd [2011/05/19 10:34] (current)
bellard [And what to do with only 8MB RAM?]
Line 1: Line 1:
-====== Live CD for low RAM systems ​======+====== Live CD for Low-RAM Systems ​======
  
-Minimum ​RAM requirement for Slitaz ​core Live CD is 160Mb (128Mb for 1.0). Many X11 applications won't run with such a low memory ​sizethen boot option ​screen=text is recommended.+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; sousing the text-mode //screen=text// boot option ​is recommended.
  
-The packages //​slitaz-loram,​ slitaz-loram-http or slitaz-loram-cdrom// ​are used to build a Live CD for systems with RAM larger than 64Mb, 32Mb or 24Mb respectively.+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.
  
-    * //​slitaz-loram//​ will compress ///usr// tree and all the system will still run in RAM. It will not use cdrom, harddisk or USB key. +    * //​slitaz-loram//​ will compress ​the ///usr// tree and the system will still run in RAM. It will not use cdrom, harddisk or USB key 
-    * //​slitaz-loram-http//​ will get ///usr// tree from an iso image stored in http://​mirror.slitaz.org/​ built with //​slitaz-loram-cdrom//​. To use the '​tiny'​ keyword while booting from the web +    * //​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 
-    * //​slitaz-loram-cdrom//​ will move ///usr// tree on the cdrom.+    * //​slitaz-loram-cdrom//​ will move the ///usr// tree onto the cdrom
  
 ///usr// will be read-only. If the package //​funionfs//​ or //aufs// is installed you will have read-write access to ///usr//. ///usr// will be read-only. If the package //​funionfs//​ or //aufs// is installed you will have read-write access to ///usr//.
Line 14: Line 14:
  
     * //​loram.rootfs//​ is called by //tazlito gen-distro//​ to compress or move ///usr//     * //​loram.rootfs//​ is called by //tazlito gen-distro//​ to compress or move ///usr//
-    * //​loram.extract//​ is called by //​slitaz-installer//​ to uncompress or move ///usr// and install the same distribution as the Slitaz ​core Live CD+    * //​loram.extract//​ is called by the //​slitaz-installer//​ to uncompress or move ///usr// and install the same distribution as the SliTaz ​core LiveCD
  
-Let's build slitaz-loram-cdrom.iso !+Let's build a //slitaz-loram-cdrom.iso// !
  
 ===== slitaz-loram-cdrom ===== ===== slitaz-loram-cdrom =====
  
-We boot the Live CD and install ​package ​slitaz-loram-cdrom:​+We boot the LiveCD ​and install ​the slitaz-loram-cdrom ​package:
  
 <​code>​ # tazpkg get-install slitaz-loram-cdrom </​code>​ <​code>​ # tazpkg get-install slitaz-loram-cdrom </​code>​
  
-//tazlito gen-distro//​ will 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 installed packages.+//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.
  
 <​code>​ # rm -f /​etc/​tazlito/​distro-packages.list ./​distro-packages.list </​code>​ <​code>​ # rm -f /​etc/​tazlito/​distro-packages.list ./​distro-packages.list </​code>​
Line 36: Line 36:
 <​code>#​ wodim dev=1,0,0 /​home/​slitaz/​distro/​slitaz-hacked.iso </​code>​ <​code>#​ wodim dev=1,0,0 /​home/​slitaz/​distro/​slitaz-hacked.iso </​code>​
  
-===== slitaz-loram ​slitaz-loram-cdrom ​variations ​=====+===== Variations of slitaz-loram ​slitaz-loram-cdrom =====
  
-//​slitaz-loram//​ compresses ///usr// with //cromfs// by default ​(higher compression but very slow). You can use //​squashfs//​ instead :+//​slitaz-loram//​ compresses ///usr// with //cromfs// by default, which gives a higher compression ​ratio but is very slow. You can use //​squashfs//​ instead:
  
-    * refuse to install cromfs during slitaz-loram installation,+    * refuse to install cromfs during ​the slitaz-loram installation
  
-  ​<​code>​ # yes n | tazpkg get-install slitaz-loram </​code>​+<​code>​ # yes n | tazpkg get-install slitaz-loram </​code>​
  
-    * install squashfs with its dependancies.+    * install squashfs with its dependencies
  
-   <​code> ​  ​# yes y | tazpkg get-install squashfs </​code>​+<​code>​ # yes y | tazpkg get-install squashfs </​code>​
  
-//​slitaz-loram-cdrom//​ moves ///usr// uncompressed to cdrom and produces a 90Mb iso. if you install cromfs or squashfs ///usr// will be compressed ​in cdrom and iso size will be between 25Mb and 35Mb.+//​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.
  
-=== Let's build slitaz-loram-cdrom-sqfs.iso !===+===== Let's build slitaz-loram-cdrom-sqfs.iso!=====
  
-We boot the Live CD and install ​the package //​slitaz-loram-cdrom//​ and //​squashfs//​ (sqfs):+Install ​the package //​slitaz-loram-cdrom//​ and //​squashfs//​ (sqfs) ​on the host system:
  
 <​code>​ <​code>​
-# tazpkg get-install slitaz-loram-cdrom + # tazpkg get-install slitaz-loram-cdrom 
-# yes y | tazpkg get-install squashfs+ # yes y | tazpkg get-install squashfs
 </​code>​ </​code>​
  
-Now we can continue ​the process+Now we repeat ​the latter points of the above process:
 <​code>​ <​code>​
-# rm -f /​etc/​tazlito/​distro-packages.list ./​distro-packages.list + # rm -f /​etc/​tazlito/​distro-packages.list ./​distro-packages.list 
-# tazlito gen-distro + # tazlito gen-distro 
-# wodim dev=1,0,0 /​home/​slitaz/​distro/​slitaz-hacked.iso+ # wodim dev=1,0,0 /​home/​slitaz/​distro/​slitaz-hacked.iso
 </​code>​ </​code>​
  
-=== slitaz-loram-cdrom and large memory size ===+===== slitaz-loram-cdrom and Large Memory Systems =====
  
-When the slitaz-loram-cdrom ​Live CD detects enough memory during boot, ///usr// is copied from cdrom to ram. You can eject and/or use the CD drive. The system behaves as:+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:
  
-    * a slitaz ​Live CD (/usr was not compressed on cdrom) +    * a slitaz ​LiveCD ​(/usr was not compressed on the cdrom) 
-    * a slitaz-loram ​Live CD (/usr was compressed on cdrom by squashfs or cromfs)+    * a slitaz-loram ​LiveCD ​(/usr was compressed on the cdrom by squashfs or cromfs)
  
-=== slitaz-loram-cdrom and tiny memory size ===+===== slitaz-loram-cdrom and Tiny Memory Systems =====
  
 The boot command line is usually: The boot command line is usually:
Line 79: Line 79:
 <​code>​ boot: slitaz args... </​code>​ <​code>​ boot: slitaz args... </​code>​
  
-Slitaz boots on a 9Mb RAM system with the boot command:+Slitaz boots on a 9MB RAM system with the boot command:
  
 <​code>​ boot: loram single root=/​dev/​hdc </​code>​ <​code>​ boot: loram single root=/​dev/​hdc </​code>​
  
-Where ///​dev/​hdc//​ is the CD-ROM device. The loram boot entry avoids ​ramdisk ​creation and CD-ROM detection. +Where ///​dev/​hdc//​ is the CD-ROM device, the loram boot entry avoids ​RAM disk creation and CD-ROM detection. 
-Next the first thing to do is add swap ! + 
-You need 10Mb to use the boot scripts with+<note tip>Note that on a system with such a low amount of memory, ​the first thing to do is add swap!</​note>​ 
 + 
 +You need 10MB to use the boot scripts with:
  
 <​code>​ boot: loram root=/​dev/​hdc </​code>​ <​code>​ boot: loram root=/​dev/​hdc </​code>​
  
-In this case you can add arguments like kmap=, config= ​+In this case you can add arguments like kmap=, config=, etc.
  
-=== slitaz-loram ​auto extraction ​===+===== slitaz-loram ​Auto-Extraction =====
  
-Each slitaz-loram* flavor can be extracted ​in 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.+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.
  
-Example: ​assuming you boot slitaz-loram-cdrom-sqfs,+For example, ​assuming you boot the slitaz-loram-cdrom-sqfs:
  
 <​code>​ boot: slitaz extract-loram </​code>​ <​code>​ boot: slitaz extract-loram </​code>​
  
-you will get:+You will get: 
 + 
 +    * /usr read-only squashfs on a CD-ROM with a smaller RAM size 
 +    * /usr read-only squashfs in RAM with a medium RAM size (like slitaz-loram) 
 +    * /usr read-write tmpfs in RAM with a larger RAM size (like slitaz-core) 
 + 
 +===== Build a slitaz-loram with tazlitobox ===== 
 + 
 +Since SliTaz 3.0, you can now build a slitaz-loram LiveCD more easily: 
 +    * launch tazlitobox 
 +    * click on the Low RAM tab 
 +    * select //The filesystem is always in RAM// (for slitaz-loram) or //The filesystem may be on a CDROM// (for slitaz-loram-cdrom) 
 +    * fill the ISO input with your Slitaz flavor (3.0 or more recent) 
 +    * update the ISO output 
 +    * click //build ISO// 
 + 
 +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: 
 +<​code>​ # tazlito build-loram original.iso loram.iso</​code>​ 
 +or: 
 +<​code>​ # tazlito build-loram original.iso loram-cdrom.iso cdrom</​code>​
  
-    * /usr read-only squashfs on cdrom with small RAM size. +Meta flavors are supported; you can loramize a slitaz-3in1.iso !
-    * /usr read-only squashfs in RAM with middle RAM size (like slitaz-loram). +
-    * /usr read-write tmpfs in RAM with big RAM size (like slitaz-core).+
  
 +===== And what to do with only 8MB RAM? =====
 +Try Tiny Slitaz : http://​tiny.slitaz.org/​ !
 +---- 
 +\\
 +^  Page Review Section ​ ^^ 
 +|Quality| Good  |
 +|Review| Minor Updates ​ |
 +|Priority| Medium |
 +|Problems| add a [[http://​forum.slitaz.org|forum post link]]|
 +|:::     | OR add a [[http://​labs.slitaz.org/​issues |lab issue tracker link ]]|
 +|How to Improve|Needs a review by developers|
 +|::: | Add new rows like this ;-)  |
  
 +\\
 +----
 
en/guides/lowramcd.1266716490.txt.gz · Last modified: 2010/07/08 17:16 (external edit)