rev |
line source |
pankso@16
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
pankso@16
|
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
pankso@16
|
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
pankso@16
|
4 <head>
|
pankso@16
|
5 <title>SliTaz - HD Installation</title>
|
pankso@16
|
6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
|
pankso@16
|
7 <meta name="description" content="slitaz English handbook installation" />
|
pankso@16
|
8 <meta name="expires" content="never" />
|
MikeDSmith25@117
|
9 <meta name="modified" content="2008-07-17 04:15:00" />
|
pankso@16
|
10 <meta name="publisher" content="www.slitaz.org" />
|
pankso@16
|
11 <meta name="author" content="Christophe Lincoln"/>
|
pankso@16
|
12 <link rel="shortcut icon" href="favicon.ico" />
|
pankso@16
|
13 <link rel="stylesheet" type="text/css" href="book.css" />
|
pankso@16
|
14 </head>
|
pankso@16
|
15 <body bgcolor="#ffffff">
|
pankso@16
|
16
|
pankso@16
|
17 <!-- Header and quick navigation -->
|
pankso@16
|
18 <div id="header">
|
pankso@16
|
19 <div align="right" id="quicknav">
|
pankso@16
|
20 <a name="top"></a>
|
paul@68
|
21 <a href="utilities.html">Utilities</a> |
|
pankso@16
|
22 <a href="index.html">Table of contents</a>
|
pankso@16
|
23 </div>
|
pankso@16
|
24 <h1><font color="#3E1220">SliTaz Handbook (en)</font></h1>
|
pankso@16
|
25 </div>
|
pankso@16
|
26
|
pankso@16
|
27 <!-- Content. -->
|
pankso@16
|
28 <div id="content">
|
pankso@16
|
29 <div class="content-right"></div>
|
pankso@16
|
30
|
pankso@16
|
31 <h2><font color="#DF8F06">HD Installation</font></h2>
|
pankso@16
|
32
|
pankso@16
|
33 <ul>
|
pascal@550
|
34 <li><a href="install.html#intro">Introduction.</a></li>
|
pascal@550
|
35 <li><a href="install.html#installer">SliTaz Installer.</a></li>
|
pascal@550
|
36 <li><a href="install.html#byhand">Installation by hand.</a></li>
|
pascal@550
|
37 <li><a href="install.html#grub">GRUB bootloader.</a></li>
|
pankso@16
|
38 </ul>
|
pankso@16
|
39
|
pankso@16
|
40 <a name="intro"></a>
|
pankso@16
|
41 <h3>Introduction</h3>
|
pankso@16
|
42 <p>
|
pankso@17
|
43 This document gives information and necessary instructions on how to
|
pankso@17
|
44 install SliTaz on a hard disk. This should take about 10 minutes, SliTaz core
|
pankso@17
|
45 LiveCD expands to 80 Mb, so we suggest a minimum of 120 Mb of free space.
|
paul@128
|
46 This way you will be able to install a few more packages. If you can
|
pankso@16
|
47 <a href="livecd.html">use the LiveCD</a>, you should be able to install SliTaz.
|
pankso@16
|
48 </p>
|
pankso@16
|
49
|
pankso@16
|
50 <a name="installer"></a>
|
pankso@16
|
51 <h3>SliTaz Installer</h3>
|
pankso@16
|
52 <p>
|
pankso@17
|
53 SliTaz provides a simple to use Installer which can be launched from the
|
paul@523
|
54 "System Tools" menu. SliTaz 2.0 Installer messages are in English
|
paul@545
|
55 and can be used with these complimentary instructions.
|
pankso@16
|
56 </p>
|
pankso@16
|
57 <h4>Install type</h4>
|
pankso@16
|
58 <p>
|
pankso@17
|
59 The first step lets you choose the type of installation: new install or system
|
paul@18
|
60 upgrade. In most cases you will want a new and clean installation. On confirming this
|
pankso@16
|
61 the installer will mount the master cdrom device and search for the compressed
|
MikeDSmith25@117
|
62 filesystem (<code>rootfs.gz</code>). If no filesystem is found, then the
|
MikeDSmith25@117
|
63 installation will abort.
|
pankso@16
|
64 </p>
|
pankso@16
|
65 <p>
|
pankso@16
|
66 If you get into trouble because the compressed filesystem is not found, please
|
pankso@17
|
67 check that SliTaz is in the master CD/DVD device. If the problem persists you
|
pankso@16
|
68 can use a downloaded ISO image and mount it on <code>/media/cdrom</code> where
|
pankso@17
|
69 the HD Installer expects to find it:
|
pankso@16
|
70 </p>
|
pankso@16
|
71 <pre>
|
pankso@16
|
72 # mount -o loop slitaz-1.0.iso /media/cdrom
|
pankso@16
|
73 </pre>
|
pankso@16
|
74 <h4>Target partition</h4>
|
pankso@16
|
75 <p>
|
MikeDSmith25@117
|
76 Second step is the partition configuration. If you already have a free partition
|
paul@166
|
77 you can directly use it, if not you will have to create one graphically using
|
pankso@16
|
78 Gparted or from the command line with fdisk. For example if you want to install
|
pankso@16
|
79 SliTaz on the first partition of the first disk recognized as <code>hda</code>:
|
pankso@16
|
80 </p>
|
pankso@17
|
81 <pre class="script">/dev/hda1
|
pankso@16
|
82 </pre>
|
pankso@16
|
83 <h4>Formating</h4>
|
pankso@16
|
84 <p>
|
pankso@17
|
85 The next step lets you format the target partition into <code>ext3</code>. Ext3
|
MikeDSmith25@117
|
86 is a robust, stable and journaled filesystem. If the partition is already
|
paul@35
|
87 formated you can skip this step, if not just accept. <em>Warning</em> formating a
|
pankso@16
|
88 partition will destroy all current data.
|
pankso@16
|
89 </p>
|
pankso@16
|
90 <h4>Hostname</h4>
|
pankso@16
|
91 <p>
|
pankso@17
|
92 Hostname configuration lets you set the machine name. The hostname is used
|
paul@18
|
93 internally to identify the host on the network. This value can be
|
MikeDSmith25@117
|
94 changed after the system is installed.
|
pankso@16
|
95 </p>
|
pankso@16
|
96 <h4>Bootloader - GRUB</h4>
|
pankso@16
|
97 <p>
|
pankso@17
|
98 When the installation process is finished you have the option to install the GRUB
|
pankso@17
|
99 bootloader which is capable of booting almost any kind of operating system. If
|
pankso@16
|
100 you want to use an existing GRUB installation, skip this step and add the
|
pankso@16
|
101 correct lines to your GRUB configuration file (<code>menu.lst</code>). Note
|
pankso@17
|
102 that the SliTaz Installer creates a configuration file on the target which can be
|
pankso@17
|
103 used as an example (/mnt/target/boot/grub/menu.lst).
|
pankso@16
|
104 </p>
|
pankso@16
|
105 <h4>End of installation</h4>
|
pankso@16
|
106 <p>
|
paul@523
|
107 When the Installer has finally done its job you have the option to exit or
|
pankso@17
|
108 directly reboot your new SliTaz GNU/Linux operating system. First boot is like
|
pankso@17
|
109 the LiveCD, you will be prompted for locale, keyboard, sound card and screen
|
pankso@17
|
110 selection. Future reboots will not prompt you anymore for configuration details,
|
pankso@17
|
111 but all the values can be changed either manually or with the project tools
|
pankso@17
|
112 such as <code>tazlocale</code> or <code>tazx</code>.
|
pankso@16
|
113 </p>
|
pankso@16
|
114
|
pankso@16
|
115 <a name="byhand"></a>
|
pankso@16
|
116 <h3>Installation by hand</h3>
|
pankso@16
|
117 <p>
|
pankso@16
|
118 SliTaz can also be installed by hand from the command line. To install SliTaz
|
paul@18
|
119 by hand you can use a cdrom or an ISO image. The following commands can be
|
pankso@17
|
120 copied/pasted from Firefox to Xterm.
|
pankso@16
|
121 </p>
|
pankso@16
|
122 <p>
|
pankso@16
|
123 The first thing you have to do is prepare a target partition and mount it.
|
pankso@16
|
124 Example using partition <code>/dev/hda1</code>:
|
pankso@16
|
125 </p>
|
pankso@16
|
126 <pre>
|
pankso@16
|
127 # mkdir /mnt/target
|
pankso@16
|
128 # mount /dev/hda1 /mnt/target
|
pankso@16
|
129 </pre>
|
pankso@16
|
130 <h4>Mount cdrom or ISO image</h4>
|
pankso@16
|
131 <p>
|
pankso@16
|
132 Now you have to mount the cdrom:
|
pankso@16
|
133 </p>
|
pankso@16
|
134 <pre>
|
pankso@16
|
135 # mount /dev/cdrom /media/cdrom
|
pankso@16
|
136 </pre>
|
pankso@16
|
137 <p>
|
pankso@17
|
138 Or an ISO image:
|
pankso@16
|
139 </p>
|
pankso@16
|
140 <pre>
|
pankso@16
|
141 # mount -o loop slitaz-1.0.iso /media/cdrom
|
pankso@16
|
142 </pre>
|
pankso@16
|
143 <h4>Install and extract</h4>
|
pankso@16
|
144 <p>
|
pankso@17
|
145 The goal now is to copy needed files from the media into the target partition
|
pankso@17
|
146 and then extract the compressed filesystem (<code>rootfs.gz</code>). Create a
|
pankso@16
|
147 boot directory and install the Linux Kernel:
|
pankso@16
|
148 </p>
|
pankso@16
|
149 <pre>
|
pankso@16
|
150 # mkdir /mnt/target/boot
|
pankso@16
|
151 # cp -a /media/cdrom/boot/vmlinuz-* /mnt/target/boot
|
pankso@16
|
152 </pre>
|
pankso@16
|
153 <p>
|
pankso@16
|
154 Copy the rootfs:
|
pankso@16
|
155 </p>
|
pankso@16
|
156 <pre>
|
pankso@16
|
157 # cp /media/cdrom/boot/rootfs.gz /mnt/target
|
pankso@16
|
158 </pre>
|
pankso@16
|
159 <p>
|
MikeDSmith25@117
|
160 Now the necessary files are present so you can change (<code>cd</code>)
|
MikeDSmith25@117
|
161 to the target directory and uncompress the filesystem with <code>lzma</code> and
|
pankso@16
|
162 <code>cpio</code>:
|
pankso@16
|
163 </p>
|
pankso@16
|
164 <pre>
|
pankso@16
|
165 # cd /mnt/target
|
pankso@16
|
166 # lzma d rootfs.gz -so | cpio -id
|
pankso@16
|
167 # rm rootfs.gz init
|
pankso@16
|
168 </pre>
|
pankso@16
|
169 <p>
|
pankso@17
|
170 That's all, SliTaz is installed. Before rebooting on your new SliTaz GNU/Linux
|
paul@162
|
171 installation, please check that you have a bootloader (GRUB or Lilo) and add
|
pankso@16
|
172 the necessary lines to boot SliTaz.
|
pankso@16
|
173 </p>
|
pankso@16
|
174
|
pankso@16
|
175 <a name="grub"></a>
|
pankso@16
|
176 <h3>GRUB bootloader</h3>
|
pankso@16
|
177 <p>
|
pankso@17
|
178 GRUB is an universal bootloader capable of booting almost any operating system
|
pankso@17
|
179 such as Linux, BSD or Windows. GRUB uses a single configuration file named
|
pascal@550
|
180 <code>menu.lst</code>, if you used the <a href="install.html#installer">SliTaz Installer</a>
|
pankso@17
|
181 and installed GRUB you dont need to manually install GRUB, just reboot.
|
pankso@16
|
182 </p>
|
pankso@16
|
183 <p>
|
pankso@17
|
184 Installation of GRUB onto the mbr, using root directory <code>/mnt/target</code>
|
pankso@17
|
185 (the target mounted partition) and the disk named <code>hda</code>:
|
pankso@16
|
186 </p>
|
pankso@16
|
187 <pre>
|
pankso@16
|
188 # grub-install --root-directory=/mnt/target /dev/hda
|
pankso@16
|
189 </pre>
|
pankso@16
|
190 <p>
|
pankso@17
|
191 You can now create a GRUB configuration file and add the lines which will boot
|
pankso@16
|
192 SliTaz. Menu.lst can be edited with your favorite text editor such as Nano or
|
pankso@16
|
193 Leafpad:
|
pankso@16
|
194 </p>
|
pankso@16
|
195 <pre>
|
pankso@16
|
196 # leafpad /mnt/target/boot/grub/menu.lst
|
pankso@16
|
197 </pre>
|
pankso@16
|
198 <h4>/boot/grub/menu.lst - Example</h4>
|
pankso@16
|
199 <pre class="script">
|
paul@433
|
200 title SliTaz GNU/Linux 1.0 (Kernel 2.6.25.5-slitaz)
|
pankso@16
|
201 root(hd0,0)
|
paul@433
|
202 kernel /boot/vmlinuz-2.6.25.5-slitaz root=/dev/hda1 vga=normal
|
pankso@16
|
203 </pre>
|
pankso@16
|
204 <p>
|
pankso@16
|
205 Verify again that everything is in place before rebooting:
|
pankso@16
|
206 </p>
|
pankso@16
|
207 <pre>
|
pankso@16
|
208 # reboot
|
pankso@16
|
209 </pre>
|
pankso@16
|
210
|
pankso@16
|
211 <!-- End of content -->
|
pankso@16
|
212 </div>
|
pankso@16
|
213
|
pankso@16
|
214 <!-- Footer. -->
|
pankso@16
|
215 <div id="footer">
|
pankso@16
|
216 <div class="footer-right"></div>
|
pascal@550
|
217 <a href="install.html#top">Top of the page</a> |
|
pankso@16
|
218 <a href="index.html">Table of contents</a>
|
pankso@16
|
219 </div>
|
pankso@16
|
220
|
pankso@16
|
221 <div id="copy">
|
pascal@669
|
222 Copyright © <span class="year"></span> <a href="http://www.slitaz.org/en/">SliTaz</a> -
|
pankso@16
|
223 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
|
pankso@16
|
224 Documentation is under
|
pankso@16
|
225 <a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
|
pankso@16
|
226 and code is <a href="http://validator.w3.org/">valid xHTML 1.0</a>.
|
pankso@16
|
227 </div>
|
pankso@16
|
228
|
pankso@16
|
229 </body>
|
pankso@16
|
230 </html>
|