website view en/doc/cookbook/rootcd.html @ rev 298

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