rev |
line source |
paul@157
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
paul@157
|
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
paul@157
|
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
paul@157
|
4 <head>
|
paul@157
|
5 <title>SliTaz Cookbook (en) - RootCD</title>
|
paul@157
|
6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
|
paul@157
|
7 <meta name="description" content="slitaz English cookbook" />
|
paul@157
|
8 <meta name="expires" content="never" />
|
paul@157
|
9 <meta name="modified" content="2008-02-26 18:30:00" />
|
paul@157
|
10 <meta name="publisher" content="www.slitaz.org" />
|
paul@157
|
11 <meta name="author" content="Christophe Lincoln"/>
|
paul@157
|
12 <link rel="shortcut icon" href="favicon.ico" />
|
paul@157
|
13 <link rel="stylesheet" type="text/css" href="book.css" />
|
paul@157
|
14 </head>
|
paul@157
|
15 <body bgcolor="#ffffff">
|
paul@157
|
16
|
paul@157
|
17 <!-- Header and quick navigation -->
|
paul@157
|
18 <div id="header">
|
paul@157
|
19 <div align="right" id="quicknav">
|
paul@157
|
20 <a name="top"></a>
|
paul@157
|
21 <a href="boot-scripts.html">Boot Scripts</a> |
|
paul@157
|
22 <a href="index.html">Table of contents</a>
|
paul@157
|
23 </div>
|
paul@157
|
24 <h1><font color="#3E1220">SliTaz Cookbook (en)</font></h1>
|
paul@157
|
25 </div>
|
paul@157
|
26
|
paul@157
|
27 <!-- Content. -->
|
paul@157
|
28 <div id="content">
|
paul@157
|
29 <div class="content-right"></div>
|
paul@157
|
30
|
paul@157
|
31 <h2><font color="#df8f06">Rootcd</font></h2>
|
paul@157
|
32 <p>
|
paul@157
|
33 Descriptions of files contained on the cdrom.
|
paul@157
|
34 </p>
|
paul@157
|
35
|
paul@157
|
36 <ul>
|
paul@157
|
37 <li><a href="#syslinux">Syslinux/isolinux.</a></li>
|
paul@157
|
38 <li><a href="#splash">Isolinux boot splash image.</a></li>
|
paul@157
|
39 <li><a href="#isolinux-iso">ISO bootable with isolinux.</a></li>
|
paul@157
|
40 <li><a href="#grub">GRUB.</a></li>
|
paul@157
|
41 <li><a href="#grub-iso">ISO bootable with GRUB.</a></li>
|
paul@157
|
42 <li><a href="#memtest86">Memtest86.</a></li>
|
paul@157
|
43 </ul>
|
paul@157
|
44
|
paul@157
|
45 <a name="syslinux"></a>
|
paul@158
|
46 <h3>Syslinux/isolinux</h3>
|
paul@157
|
47 <p>
|
paul@157
|
48 Syslinux and main bootloader of SliTaz - we use the isolinux version to start
|
paul@157
|
49 the system contained on the CD-ROM. Simple effective and configurable, it
|
paul@157
|
50 was installed during the creation of the base system.
|
paul@157
|
51 The binary is named isolinux.bin and its configuration file isolinux.cfg.
|
paul@157
|
52 Here's an example of isolinux.cfg using isolinux.msg to post the splash
|
paul@157
|
53 image and displayable help files via F1, F2, F3 and F4. You will find the
|
paul@157
|
54 files help.txt, options.txt, etc in <a href="slitaz-tools.html">SliTaz tools</a>.
|
paul@157
|
55 </p>
|
paul@157
|
56 <pre class="script">display isolinux.msg
|
paul@157
|
57 default slitaz
|
paul@157
|
58 label slitaz
|
paul@157
|
59 kernel /boot/bzImage
|
paul@157
|
60 append initrd=/boot/rootfs.gz rw root=/dev/null vga=788
|
paul@157
|
61 implicit 0
|
paul@157
|
62 prompt 1
|
paul@157
|
63 timeout 80
|
paul@157
|
64 F1 help.txt
|
paul@157
|
65 F2 options.txt
|
paul@157
|
66 F3 isolinux.msg
|
paul@157
|
67 F4 display.txt
|
paul@157
|
68 </pre>
|
paul@157
|
69
|
paul@157
|
70 <a name="splash"></a>
|
paul@158
|
71 <h3>Isolinux boot splash image</h3>
|
paul@157
|
72 <p>
|
paul@157
|
73 We can configure isolinux to display a splash image when booting SliTaz or
|
paul@157
|
74 any other operating system using isolinux. This image has a particular
|
paul@157
|
75 format <code>.lss</code>, suitable for Syslinux, and must be indexed using the 16 color
|
paul@157
|
76 mode. You can use the official logo, ppmforge, imagemagick, GIMP or
|
paul@157
|
77 other tools to create your image.
|
paul@157
|
78 </p>
|
paul@157
|
79 <p>
|
paul@157
|
80 The Syslinux file (sample/syslogo.lss) provides an official logo which you can
|
paul@157
|
81 directly use by copying to the root of the CD-ROM. SliTaz
|
paul@157
|
82 provides a logo (rootcd/boot/isolinux/splash.lss) which you can locate in
|
paul@157
|
83 <a href="slitaz-tools.html">SliTaz tools</a>.
|
paul@157
|
84 To display a splash image when booting; it's necessary that the 'display' option calls
|
paul@157
|
85 the isolinux.msg file which loads the *.lss format image. Note that the isolinux.msg file
|
paul@157
|
86 uses 24 ASCII characters. Example using 'echo' and an isolinux.msg file incorporating a .lss
|
paul@157
|
87 splash image:
|
paul@157
|
88 </p>
|
paul@157
|
89 <pre> # echo -e "\24isplash.lss\n" > isolinux.msg
|
paul@157
|
90 </pre>
|
paul@157
|
91 <p>
|
paul@157
|
92 You can also add a text message underneath the splash image by modifying this
|
paul@157
|
93 file with your favorite text editor, <code>echo</code> or <code>cat</code> and so on.
|
paul@157
|
94 </p>
|
paul@157
|
95
|
paul@157
|
96 <a name="isolinux-iso"></a>
|
paul@158
|
97 <h3>ISO bootable with isolinux</h3>
|
paul@157
|
98 <p>
|
paul@157
|
99 To create a bootable ISO image using isolinux and genisoimage:
|
paul@157
|
100 </p>
|
paul@157
|
101 <pre> # genisoimage -R -o slitaz-test.iso -b boot/isolinux/isolinux.bin \
|
paul@157
|
102 -c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
|
paul@157
|
103 -V "SliTaz" -input-charset iso8859-1 -boot-info-table rootcd
|
paul@157
|
104 </pre>
|
paul@157
|
105
|
paul@157
|
106 <a name="grub"></a>
|
paul@158
|
107 <h3>GRUB</h3>
|
paul@157
|
108 <p>
|
paul@157
|
109 GRUB (GRand Unified Bootloader) is a bootloader distributed by the GNU
|
paul@157
|
110 project. This is what is used during installation to a hard drive; it can
|
paul@157
|
111 boot Linux, BSD, HURD and Window$. GRUB provides stage2_eltorito
|
paul@157
|
112 to start the ISO images. To find stage2_eltorito on your system, you need
|
paul@157
|
113 to have the GRUB package installed. Finally you copy stage2_eltorito to the
|
paul@157
|
114 root of the cdrom. Note that SliTaz provides a (.tazpkg) package
|
paul@157
|
115 grub-0.97 that you can find on the mirrors or you can rebuild grub-0.97
|
paul@157
|
116 from sources. Sample copy of the <code>stage2_eltorito</code> image from a
|
paul@157
|
117 Debian system or SliTaz:
|
paul@157
|
118 </p>
|
paul@157
|
119 <pre> # mkdir -p rootcd/boot/grub
|
paul@157
|
120 # cp /usr/lib/grub/i386-pc/stage2_eltorito \
|
paul@157
|
121 rootcd/boot/grub
|
paul@157
|
122 </pre>
|
paul@157
|
123 <p>
|
paul@157
|
124 The GRUB configuration file is called menu.lst and can be edited with your
|
paul@157
|
125 favorite text editor. Example:
|
paul@157
|
126 </p>
|
paul@157
|
127 <pre class="script"># By default, boot the first entry.
|
paul@157
|
128 default 0
|
paul@157
|
129
|
paul@157
|
130 # Boot automatically after 20 secs.
|
paul@157
|
131 timeout 20
|
paul@157
|
132
|
paul@157
|
133 # Change the colors.
|
paul@157
|
134 color yellow/brown white/black
|
paul@157
|
135
|
paul@157
|
136 title SliTaz GNU/Linux 1.0 (vga 800x600) (Kernel 2.6.20)
|
paul@157
|
137 kernel /boot/bzImage root=/dev/null vga=788
|
paul@157
|
138 initrd /boot/rootfs.gz
|
paul@157
|
139
|
paul@157
|
140 title SliTaz GNU/Linux 1.0 (vga 1024x768) (Kernel 2.6.20)
|
paul@157
|
141 kernel /boot/bzImage root=/dev/null vga=771
|
paul@157
|
142 initrd /boot/rootfs.gz
|
paul@157
|
143 </pre>
|
paul@157
|
144
|
paul@157
|
145 <a name="grub-iso"></a>
|
paul@158
|
146 <h3>ISO bootable with GRUB</h3>
|
paul@157
|
147 <p>
|
paul@157
|
148 To create a bootable ISO image using GRUB and genisoimage or mkisofs:
|
paul@157
|
149 </p>
|
paul@157
|
150 <pre> # genisoimage -R -o slitaz-test.iso -b boot/grub/stage2_eltorito \
|
paul@157
|
151 -no-emul-boot -V "SliTaz" -boot-load-size 4 -input-charset iso8859-1 \
|
paul@157
|
152 -boot-info-table rootcd
|
paul@157
|
153 </pre>
|
paul@158
|
154 <a name="memtest86"></a>
|
paul@158
|
155 <h3>Memtest86</h3>
|
paul@157
|
156 <p>
|
paul@157
|
157 The application memtest86 is a tool to test random access memory
|
paul@157
|
158 (RAM). We download the utility into the src directory, decompress the archive,
|
paul@157
|
159 and copy the (precompiled) binary:
|
paul@157
|
160 </p>
|
paul@157
|
161 <pre> # mkdir -v -p src
|
paul@157
|
162 # cd src
|
paul@157
|
163 # wget http://www.memtest86.com/memtest86-3.2.tar.gz
|
paul@157
|
164 # tar xzfv memtest86-3.2.tar.gz
|
paul@157
|
165 # cd memtest86-3.2
|
paul@157
|
166 (# more README)
|
paul@157
|
167 # cp precomp.bin ../../rootcd/boot/memtest
|
paul@157
|
168 # cd ../..
|
paul@157
|
169 </pre>
|
paul@157
|
170 <p>
|
paul@157
|
171 Once installed, you can add the label for the memtest86 file to isolinux.cfg,
|
paul@157
|
172 specifing the path to the utility:
|
paul@157
|
173 </p>
|
paul@157
|
174 <pre class="script">label memtest
|
paul@157
|
175 kernel /boot/memtest
|
paul@157
|
176 </pre>
|
paul@157
|
177 <p>
|
paul@157
|
178 Or if you want to use GRUB, the line to launch memtest86:
|
paul@157
|
179 </p>
|
paul@157
|
180 <pre class="script">title Memtest86 (Test system memory)
|
paul@157
|
181 kernel /boot/memtest
|
paul@157
|
182 </pre>
|
paul@157
|
183 <p>
|
paul@157
|
184 Once the lines are added, you can then create a new ISO and test.
|
paul@157
|
185 </p>
|
paul@157
|
186
|
paul@157
|
187 <!-- End of content -->
|
paul@157
|
188 </div>
|
paul@157
|
189
|
paul@157
|
190 <!-- Footer. -->
|
paul@157
|
191 <div id="footer">
|
paul@157
|
192 <div class="footer-right"></div>
|
paul@157
|
193 <a href="#top">Top of the page</a> |
|
paul@157
|
194 <a href="index.html">Table of contents</a>
|
paul@157
|
195 </div>
|
paul@157
|
196
|
paul@157
|
197 <div id="copy">
|
paul@157
|
198 Copyright © 2008 <a href="http://www.slitaz.org/en/">SliTaz</a> -
|
paul@157
|
199 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
|
paul@157
|
200 Documentation is under
|
paul@157
|
201 <a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
|
paul@157
|
202 and code is <a href="http://validator.w3.org/">valid xHTML 1.0</a>.
|
paul@157
|
203 </div>
|
paul@157
|
204
|
paul@157
|
205 </body>
|
paul@157
|
206 </html>
|