/[gentoo]/xml/htdocs/doc/en/gentoo-x86-quickinstall.xml
Gentoo

Contents of /xml/htdocs/doc/en/gentoo-x86-quickinstall.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.87 - (show annotations) (download) (as text)
Sat Jan 19 20:59:22 2013 UTC (20 months, 1 week ago) by swift
Branch: MAIN
CVS Tags: HEAD
Changes since 1.86: +9 -9 lines
File MIME type: application/xml
Updates towards quickinstall to match with handbook settings, many thanks to Daniel Meltzer for the patches on gentoo-doc

1 <?xml version='1.0' encoding="UTF-8"?>
2 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall.xml,v 1.86 2012/03/31 13:27:30 swift Exp $ -->
3 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4
5 <guide>
6 <title>Gentoo Linux x86 Quick Install Guide</title>
7
8 <values>
9 <key id="raid+lvm">no</key>
10 <key id="root">/dev/sda3</key>
11 </values>
12
13 <author title="Author">
14 <mail link="neysx"/>
15 </author>
16 <author title="Author">
17 <mail link="swift"/>
18 </author>
19 <author title="Author">Steven Wagner</author>
20
21 <abstract>
22 The Quick Install guide covers the Gentoo install process in a non-verbose
23 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 </abstract>
27
28 <!-- The content of this document is licensed under the CC-BY-SA license -->
29 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
30 <license/>
31
32 <version>28</version>
33 <date>2013-01-16</date>
34
35 <chapter>
36 <title>Introduction</title>
37 <section>
38 <body>
39
40 <p>
41 This guide contains all the commands you should use to complete a stage3
42 installation of Gentoo. You need a connection to the Internet to download the
43 stage3 and Portage snapshots.
44 </p>
45
46 <impo>
47 New users should read the <uri link="/doc/en/handbook/index.xml">Handbook</uri>
48 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
52 <p>
53 Timing output follows all commands that take more than a couple of seconds to
54 finish. Commands were timed on an AMD 2000 1.66 Ghz PC with 512 MB of RAM and
55 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 bogomips : 3337.81
64
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
78 <chapter>
79 <title>Quick Install Guide</title>
80
81 <section>
82 <include href="gentoo-x86-quickinstall-media.xml"/>
83 </section>
84
85 <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 least a swap partition (type 82) and one Linux partition (type 83). The
92 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 </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 /dev/sda1 * 1 12 96358+ 83 Linux
110 /dev/sda2 13 110 787185 82 Linux swap / Solaris
111 /dev/sda3 111 72943 585031072+ 83 Linux
112 </pre>
113
114 <p>
115 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 </p>
119
120 <pre caption="Create the file systems and activate swap">
121 <comment>(ext2 is all you need on the /boot partition)</comment>
122 livecd ~ # <i>mkfs.ext2 /dev/sda1</i>
123
124 <comment>(Let's use ext3 on the main partition)</comment>
125 livecd ~ # <i>mkfs.ext3 /dev/sda3</i>
126
127 <comment>(Create and activate swap)</comment>
128 livecd ~ # <i>mkswap /dev/sda2 &amp;&amp; swapon /dev/sda2</i>
129 </pre>
130
131 <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 you need them and mount them too.
135 </p>
136
137 <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 <section>
148 <include href="gentoo-x86-quickinstall-stage.xml"/>
149 </section>
150
151 <section>
152 <title>Kernel Configuration</title>
153 <body>
154
155 <p>
156 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 </p>
159
160 <pre caption="Install a kernel source, compile it and install the kernel">
161 livecd etc # <i>time emerge gentoo-sources</i>
162
163 real 2m51.435s
164 user 0m58.220s
165 sys 0m29.890s
166 livecd etc # <i>cd /usr/src/linux</i>
167 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
176 livecd linux # <i>make modules_install</i>
177 livecd linux # <i>cp arch/i386/boot/bzImage /boot/kernel</i>
178 </pre>
179
180 <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 </body>
190 </section>
191
192 <section>
193 <include href="gentoo-x86-quickinstall-system.xml"/>
194 </section>
195
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 livecd / # <i>umount -l /mnt/gentoo/dev{/shm,/pts,}</i>
207 livecd / # <i>umount -l /mnt/gentoo{/proc,/boot,/sys,}</i>
208 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 <include href="gentoo-x86-quickinstall-after-reboot.xml"/>
217 </section>
218
219 </chapter>
220 </guide>

  ViewVC Help
Powered by ViewVC 1.1.20