1 |
swift |
1.1 |
<?xml version='1.0' encoding="UTF-8"?> |
2 |
swift |
1.87 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall.xml,v 1.86 2012/03/31 13:27:30 swift Exp $ --> |
3 |
swift |
1.8 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
4 |
|
|
|
5 |
nightmorph |
1.84 |
<guide> |
6 |
neysx |
1.31 |
<title>Gentoo Linux x86 Quick Install Guide</title> |
7 |
swift |
1.38 |
|
8 |
neysx |
1.80 |
<values> |
9 |
|
|
<key id="raid+lvm">no</key> |
10 |
|
|
<key id="root">/dev/sda3</key> |
11 |
|
|
</values> |
12 |
|
|
|
13 |
swift |
1.38 |
<author title="Author"> |
14 |
neysx |
1.80 |
<mail link="neysx"/> |
15 |
neysx |
1.52 |
</author> |
16 |
|
|
<author title="Author"> |
17 |
neysx |
1.80 |
<mail link="swift"/> |
18 |
swift |
1.1 |
</author> |
19 |
swift |
1.38 |
<author title="Author">Steven Wagner</author> |
20 |
swift |
1.1 |
|
21 |
|
|
<abstract> |
22 |
nightmorph |
1.84 |
The Quick Install guide covers the Gentoo install process in a non-verbose |
23 |
neysx |
1.52 |
manner. Its purpose is to allow users to perform a stage3 install in no time. |
24 |
|
|
Users should already have prior experience with installing Gentoo Linux if they |
25 |
|
|
want to follow this guide. |
26 |
swift |
1.2 |
</abstract> |
27 |
|
|
|
28 |
swift |
1.44 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
29 |
|
|
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
30 |
swift |
1.1 |
<license/> |
31 |
swift |
1.2 |
|
32 |
swift |
1.87 |
<version>28</version> |
33 |
|
|
<date>2013-01-16</date> |
34 |
neysx |
1.52 |
|
35 |
|
|
<chapter> |
36 |
|
|
<title>Introduction</title> |
37 |
|
|
<section> |
38 |
|
|
<body> |
39 |
|
|
|
40 |
|
|
<p> |
41 |
nightmorph |
1.84 |
This guide contains all the commands you should use to complete a stage3 |
42 |
neysx |
1.52 |
installation of Gentoo. You need a connection to the Internet to download the |
43 |
|
|
stage3 and Portage snapshots. |
44 |
|
|
</p> |
45 |
|
|
|
46 |
nightmorph |
1.84 |
<impo> |
47 |
jkt |
1.79 |
New users should read the <uri link="/doc/en/handbook/index.xml">Handbook</uri> |
48 |
nightmorph |
1.84 |
as it gives a better overview about the installation process. The Quick Install |
49 |
|
|
guide is designed for experienced users who just need a checklist to follow. |
50 |
|
|
</impo> |
51 |
jkt |
1.79 |
|
52 |
|
|
<p> |
53 |
neysx |
1.52 |
Timing output follows all commands that take more than a couple of seconds to |
54 |
nightmorph |
1.63 |
finish. Commands were timed on an AMD 2000 1.66 Ghz PC with 512 MB of RAM and |
55 |
neysx |
1.52 |
two SATA disks connected to a hardware controller. |
56 |
|
|
</p> |
57 |
|
|
|
58 |
|
|
<pre caption="Test box specs"> |
59 |
|
|
<comment>(The following specs and the timing information should help you determine |
60 |
|
|
a rough estimate of the time you need to complete your install)</comment> |
61 |
|
|
|
62 |
|
|
# <i>grep bogo /proc/cpuinfo</i> |
63 |
rane |
1.55 |
bogomips : 3337.81 |
64 |
neysx |
1.52 |
|
65 |
|
|
# <i>hdparm -tT /dev/sda</i> |
66 |
|
|
/dev/sda: |
67 |
|
|
Timing cached reads: 1100 MB in 2.00 seconds = 549.97 MB/sec |
68 |
|
|
Timing buffered disk reads: 224 MB in 3.01 seconds = 74.36 MB/sec |
69 |
|
|
|
70 |
|
|
# <i>grep MemTotal /proc/meminfo</i> |
71 |
|
|
MemTotal: 509248 kB |
72 |
|
|
</pre> |
73 |
|
|
|
74 |
|
|
</body> |
75 |
|
|
</section> |
76 |
|
|
</chapter> |
77 |
swift |
1.1 |
|
78 |
|
|
<chapter> |
79 |
neysx |
1.31 |
<title>Quick Install Guide</title> |
80 |
swift |
1.38 |
|
81 |
neysx |
1.52 |
<section> |
82 |
neysx |
1.80 |
<include href="gentoo-x86-quickinstall-media.xml"/> |
83 |
swift |
1.38 |
</section> |
84 |
neysx |
1.52 |
|
85 |
swift |
1.38 |
<section> |
86 |
|
|
<title>Preparing the Disks</title> |
87 |
|
|
<body> |
88 |
|
|
|
89 |
|
|
<p> |
90 |
|
|
Use <c>fdisk</c> or <c>cfdisk</c> to create your partition layout. You need at |
91 |
neysx |
1.52 |
least a swap partition (type 82) and one Linux partition (type 83). The |
92 |
neysx |
1.82 |
following scenario creates a <path>/boot</path>, a swap and a main partition as |
93 |
|
|
used in our handbook. Replace <path>sda</path> with your disk. Most systems |
94 |
|
|
ignore the bootable flag, but a few need it. Set this flag on your boot |
95 |
|
|
partition with fdisk's <c>a</c> command. |
96 |
neysx |
1.52 |
</p> |
97 |
|
|
|
98 |
|
|
<pre caption="Create the partitions"> |
99 |
|
|
livecd ~ # <i>fdisk /dev/sda</i> |
100 |
|
|
|
101 |
|
|
<comment>(The rest of this guide uses the following partitioning scheme)</comment> |
102 |
|
|
livecd ~ # <i>fdisk -l /dev/sda</i> |
103 |
|
|
|
104 |
|
|
Disk /dev/sda: 599.9 GB, 599978409984 bytes |
105 |
|
|
255 heads, 63 sectors/track, 72943 cylinders |
106 |
|
|
Units = cylinders of 16065 * 512 = 8225280 bytes |
107 |
|
|
|
108 |
|
|
Device Boot Start End Blocks Id System |
109 |
neysx |
1.82 |
/dev/sda1 * 1 12 96358+ 83 Linux |
110 |
neysx |
1.52 |
/dev/sda2 13 110 787185 82 Linux swap / Solaris |
111 |
|
|
/dev/sda3 111 72943 585031072+ 83 Linux |
112 |
|
|
</pre> |
113 |
swift |
1.38 |
|
114 |
|
|
<p> |
115 |
swift |
1.87 |
Use <c>mkfs.ext2</c>, <c>mkfs.ext3</c>, <c>mkfs.ext4</c>, <c>mkreiserfs</c>, |
116 |
|
|
<c>mkfs.xfs</c> and <c>mkfs.jfs</c> to create file systems on your Linux |
117 |
|
|
partitions. Initialize your swap partition using <c>mkswap</c> and <c>swapon</c>. |
118 |
swift |
1.38 |
</p> |
119 |
|
|
|
120 |
neysx |
1.52 |
<pre caption="Create the file systems and activate swap"> |
121 |
|
|
<comment>(ext2 is all you need on the /boot partition)</comment> |
122 |
swift |
1.87 |
livecd ~ # <i>mkfs.ext2 /dev/sda1</i> |
123 |
neysx |
1.52 |
|
124 |
|
|
<comment>(Let's use ext3 on the main partition)</comment> |
125 |
swift |
1.87 |
livecd ~ # <i>mkfs.ext3 /dev/sda3</i> |
126 |
neysx |
1.52 |
|
127 |
|
|
<comment>(Create and activate swap)</comment> |
128 |
|
|
livecd ~ # <i>mkswap /dev/sda2 && swapon /dev/sda2</i> |
129 |
|
|
</pre> |
130 |
|
|
|
131 |
swift |
1.38 |
<p> |
132 |
|
|
Mount the freshly created file systems on <path>/mnt/gentoo</path>. Create |
133 |
|
|
directories for the other mount points (like <path>/mnt/gentoo/boot</path>) if |
134 |
neysx |
1.52 |
you need them and mount them too. |
135 |
swift |
1.38 |
</p> |
136 |
|
|
|
137 |
neysx |
1.52 |
<pre caption="Mount the file systems"> |
138 |
|
|
livecd ~ # <i>mount /dev/sda3 /mnt/gentoo</i> |
139 |
|
|
livecd ~ # <i>mkdir /mnt/gentoo/boot</i> |
140 |
|
|
livecd ~ # <i>mount /dev/sda1 /mnt/gentoo/boot</i> |
141 |
|
|
livecd ~ # <i>cd /mnt/gentoo</i> |
142 |
|
|
</pre> |
143 |
|
|
|
144 |
|
|
</body> |
145 |
|
|
</section> |
146 |
|
|
|
147 |
swift |
1.38 |
<section> |
148 |
neysx |
1.80 |
<include href="gentoo-x86-quickinstall-stage.xml"/> |
149 |
neysx |
1.52 |
</section> |
150 |
swift |
1.1 |
|
151 |
swift |
1.38 |
<section> |
152 |
|
|
<title>Kernel Configuration</title> |
153 |
|
|
<body> |
154 |
|
|
|
155 |
swift |
1.1 |
<p> |
156 |
nightmorph |
1.69 |
Install a kernel source (usually <c>gentoo-sources</c>), configure it, compile |
157 |
|
|
it and copy the <path>arch/i386/boot/bzImage</path> file to <path>/boot</path>. |
158 |
neysx |
1.52 |
</p> |
159 |
|
|
|
160 |
|
|
<pre caption="Install a kernel source, compile it and install the kernel"> |
161 |
neysx |
1.61 |
livecd etc # <i>time emerge gentoo-sources</i> |
162 |
neysx |
1.52 |
|
163 |
|
|
real 2m51.435s |
164 |
|
|
user 0m58.220s |
165 |
|
|
sys 0m29.890s |
166 |
neysx |
1.61 |
livecd etc # <i>cd /usr/src/linux</i> |
167 |
neysx |
1.52 |
livecd linux # <i>make menuconfig</i> |
168 |
|
|
<comment>(Configure your kernel)</comment> |
169 |
|
|
livecd linux # <i>time make -j2</i> |
170 |
|
|
|
171 |
|
|
<comment>(Elapsed time depends highly on the options you selected)</comment> |
172 |
|
|
real 3m51.962s |
173 |
|
|
user 3m27.060s |
174 |
|
|
sys 0m24.310s |
175 |
swift |
1.38 |
|
176 |
neysx |
1.52 |
livecd linux # <i>make modules_install</i> |
177 |
|
|
livecd linux # <i>cp arch/i386/boot/bzImage /boot/kernel</i> |
178 |
|
|
</pre> |
179 |
swift |
1.1 |
|
180 |
swift |
1.86 |
<p> |
181 |
|
|
Optionally build an initramfs to boot from: |
182 |
|
|
</p> |
183 |
|
|
|
184 |
|
|
<pre caption="Building an initramfs"> |
185 |
|
|
# <i>emerge genkernel</i> |
186 |
|
|
# <i>genkernel --install --no-ramdisk-modules initramfs</i> |
187 |
|
|
</pre> |
188 |
|
|
|
189 |
swift |
1.38 |
</body> |
190 |
|
|
</section> |
191 |
swift |
1.1 |
|
192 |
swift |
1.38 |
<section> |
193 |
neysx |
1.80 |
<include href="gentoo-x86-quickinstall-system.xml"/> |
194 |
swift |
1.38 |
</section> |
195 |
neysx |
1.52 |
|
196 |
|
|
<section id="reboot"> |
197 |
|
|
<title>Reboot</title> |
198 |
|
|
<body> |
199 |
|
|
|
200 |
|
|
<p> |
201 |
|
|
Exit the chrooted environment, unmount all file systems and reboot: |
202 |
|
|
</p> |
203 |
|
|
|
204 |
|
|
<pre caption="Reboot"> |
205 |
|
|
livecd conf.d # <i>exit</i> |
206 |
nightmorph |
1.85 |
livecd / # <i>umount -l /mnt/gentoo/dev{/shm,/pts,}</i> |
207 |
swift |
1.87 |
livecd / # <i>umount -l /mnt/gentoo{/proc,/boot,/sys,}</i> |
208 |
neysx |
1.52 |
livecd / # <i>reboot</i> |
209 |
|
|
<comment>(Don't forget to remove the CD)</comment> |
210 |
|
|
</pre> |
211 |
|
|
|
212 |
|
|
</body> |
213 |
|
|
</section> |
214 |
|
|
|
215 |
|
|
<section> |
216 |
neysx |
1.80 |
<include href="gentoo-x86-quickinstall-after-reboot.xml"/> |
217 |
swift |
1.38 |
</section> |
218 |
neysx |
1.52 |
|
219 |
neysx |
1.49 |
</chapter> |
220 |
swift |
1.1 |
</guide> |