slitaz-doc-wiki-data view pages/de/guides/lowramcd.txt @ rev 42

Updated pages folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Apr 20 19:44:46 2011 +0000 (2011-04-20)
parents
children
line source
1 ====== Live CD für Low-RAM Systeme ======
3 Die minimale Anforderung an RAM für die SliTaz core Live CD ist 160 MB (128 MB für 1.0). Viele grafische Applkationen werden mit wenig Arbeitsspeicher nicht laufen, daher wird der Textmodus empfohlen - Bootoption //screen=text// .
5 Die Pakete //slitaz-loram//, //slitaz-loram-http// oder //slitaz-loram-cdrom// können dazu verwendet werden um LiveCD's zu erzeugen für Systeme mit 24MB, 32MB oder 64MB. Diese können direkt auf dem Host-System installiert werden, anstatt in den angegebenen Paketlisten die Sie für LiveCD verwenden.
7 * //slitaz-loram// komprimiert das Verzeichnis ///usr// und das System laeuft im RAM. Es wird keine CD-ROM, Festplatte oder USB-Stick benutzt
8 * //slitaz-loram-http// holt sich das Verzeichnis ///usr// von einem ISO Image, welches auf http://mirror.slitaz.org/ gespeichert ist.
9 * //slitaz-loram-cdrom// verschiebt das Verzeichnis ///usr// auf die CD-ROM
11 Das Verzeichnis ///usr// ist schreibgeschützt (RO). Wenn das Paket //funionfs// oder //aufs// installiert ist, dann kann man Schreibzugriff auf das Verzeichnis ///usr// haben.
13 Diese Pakete modifizieren die Datei ///etc/init.d/rcS// damit das Verzeichnis ///usr// gemountet wird und installieren zwei Skripte in ///etc/tazlito//:
15 * //loram.rootfs// wird von //tazlito gen-distro// aufgerufen, um das Verzeichnis ///usr// zu packen oder zu verschieben.
16 * //loram.extract// wird von //slitaz-installer// aufgerufen, um das Verzeichnis ///usr// zu entpacken oder zu verschieben und die selbe Distribution wie die SliTaz core LiveCD zu installieren
18 Laßt uns eine //slitaz-loram-cdrom.iso// erzeugen!
20 ===== slitaz-loram-cdrom =====
22 Wir booten die Live CD und installieren das Paket slitaz-loram-cdrom :
24 <code> # tazpkg get-install slitaz-loram-cdrom </code>
26 //tazlito gen-distro// wird ein ISO erzeugen, welches die Pakete aus ///etc/tazlito/distro-packages.list// oder //./distro-packages.list// enthält. Zuerst entfernen wird die Paketlisten, um nur die wirklich installierten Pakete zu nutzen.
28 <code> # rm -f /etc/tazlito/distro-packages.list ./distro-packages.list </code>
30 Nun können wir das ISO Image erzeugen...
32 <code> # tazlito gen-distro </code>
34 …und dann brennen wir es auf CD.
36 <code># wodim dev=1,0,0 /home/slitaz/distro/slitaz-hacked.iso </code>
38 ===== Variationen von 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 ===== Erzeugung eines slitaz-loram-cdrom-sqfs.iso!=====
54 Installiere die Pakete //slitaz-loram-cdrom// und //squashfs// (sqfs) auf dem host system:
56 <code>
57 # tazpkg get-install slitaz-loram-cdrom
58 # yes y | tazpkg get-install squashfs
59 </code>
61 Jetzt wiederholen wir die letzten Punkte des obigen Verfahrens:
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 und 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 und 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 Jede slitaz-loram* Version can beim Start in den Arbeitsspeicher (RAM) geladen werden (Wenn genug RAM vorhanden ist). Dazu muss die Boot-Option extarct-loram verwendet werden. Als Ergebnis bekommst Du eine Version ohne die Beschraenkungen des Schreibschutzes.
99 Zum Beispiel: Angenommen Du gibst beim Start des sliTaz-loram-cdrom-sqfs folgendes ein:
101 <code> boot: slitaz extract-loram </code>
103 Du bekommst:
105 * /usr schreibgeschützt (RO) squashfs auf der CD-ROM (bei wenig Arbeitsspeicher (RAM))
106 * /usr schreibgeschützt (RO) squashfs im RAM (bei mittlerem Arbeitsspeicher (RAM)) (like slitaz-loram)
107 * /usr beschreibbar (RW) tmpfs im RAM (bei viel Arbeitsspeicher (RAM)) (like slitaz-core)
109 ===== Erzeuge ein slitaz-loram mit tazlitobox =====
111 Seit SliTaz 3.0, du kannst eine slitaz-loram LiveCD sehr einfach erzeugen:
112 * Start: tazlitobox
113 * Klicke auf den Reiter: Low RAM
114 * Wähle: //The filesystem is always in RAM// (für slitaz-loram) oder //The filesystem may be on a CDROM// (für slitaz-loram-cdrom)
115 * Fülle das Feld ISO input mit Deinem Slitaz flavor (3.0 or more recent)
116 * Aktualisiere: ISO output
117 * Klicke auf: //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 Alternativ kannst Du auch folgende Befehle auf der Konsole verwenden:
123 <code> # tazlito build-loram original.iso loram.iso</code>
124 oder:
125 <code> # tazlito build-loram original.iso loram-cdrom.iso cdrom</code>
127 Meta flavors werden unterstuetzt; Du kannst ein slitaz-3in1.iso speicherminimieren!
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| in work / in Arbeit |
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 ----