/[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.81 - (show annotations) (download) (as text)
Fri May 2 08:04:22 2008 UTC (6 years, 5 months ago) by nightmorph
Branch: MAIN
Changes since 1.80: +4 -6 lines
File MIME type: application/xml
As announced on the list (http://archives.gentoo.org/gentoo-doc/msg_e721be404c6a5ae8ce5c5bf02f45381c.xml), assume all arches are using the libata framework, so sd* everywhere. includes updating block device and partition descriptions. also added a new included file for boot config (starting sshd, hdparm, etc). synced up several wayward files, including sparc. also changed/dropped usage of some now useless keys, since everyone's using sd*. lots of intensive, invasive changes. and i never even used sed once.

1 <?xml version='1.0' encoding="UTF-8"?>
2 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall.xml,v 1.80 2008/01/01 21:32:30 neysx Exp $ -->
3
4 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
5
6 <guide lang="en">
7 <title>Gentoo Linux x86 Quick Install Guide</title>
8
9 <values>
10 <key id="raid+lvm">no</key>
11 <key id="root">/dev/sda3</key>
12 </values>
13
14 <author title="Author">
15 <mail link="neysx"/>
16 </author>
17 <author title="Author">
18 <mail link="swift"/>
19 </author>
20 <author title="Author">Steven Wagner</author>
21
22 <abstract>
23 The Quick install guide covers the Gentoo install process in a non-verbose
24 manner. Its purpose is to allow users to perform a stage3 install in no time.
25 Users should already have prior experience with installing Gentoo Linux if they
26 want to follow this guide.
27 </abstract>
28
29 <!-- The content of this document is licensed under the CC-BY-SA license -->
30 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
31 <license/>
32
33 <version>22</version>
34 <date>2008-05-02</date>
35
36 <chapter>
37 <title>Introduction</title>
38 <section>
39 <body>
40
41 <p>
42 This guide contains all commands you should use to complete a stage3
43 installation of Gentoo. You need a connection to the Internet to download the
44 stage3 and Portage snapshots.
45 </p>
46
47 <p>
48 New users should read the <uri link="/doc/en/handbook/index.xml">Handbook</uri>
49 as it gives a better overview about the installation process.
50 </p>
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
93 as used in our handbook. Replace <path>sda</path> with your disk.
94 </p>
95
96 <pre caption="Create the partitions">
97 livecd ~ # <i>fdisk /dev/sda</i>
98
99 <comment>(The rest of this guide uses the following partitioning scheme)</comment>
100 livecd ~ # <i>fdisk -l /dev/sda</i>
101
102 Disk /dev/sda: 599.9 GB, 599978409984 bytes
103 255 heads, 63 sectors/track, 72943 cylinders
104 Units = cylinders of 16065 * 512 = 8225280 bytes
105
106 Device Boot Start End Blocks Id System
107 /dev/sda1 1 12 96358+ 83 Linux
108 /dev/sda2 13 110 787185 82 Linux swap / Solaris
109 /dev/sda3 111 72943 585031072+ 83 Linux
110 </pre>
111
112 <p>
113 Use <c>mke2fs</c>, <c>mke2fs -j</c>, <c>mkreiserfs</c>, <c>mkfs.xfs</c> and
114 <c>mkfs.jfs</c> to create file systems on your Linux partitions. Initialize your
115 swap partition using <c>mkswap</c> and <c>swapon</c>.
116 </p>
117
118 <pre caption="Create the file systems and activate swap">
119 <comment>(ext2 is all you need on the /boot partition)</comment>
120 livecd ~ # <i>mke2fs /dev/sda1</i>
121
122 <comment>(Let's use ext3 on the main partition)</comment>
123 livecd ~ # <i>mke2fs -j /dev/sda3</i>
124
125 <comment>(Create and activate swap)</comment>
126 livecd ~ # <i>mkswap /dev/sda2 &amp;&amp; swapon /dev/sda2</i>
127 </pre>
128
129 <p>
130 Mount the freshly created file systems on <path>/mnt/gentoo</path>. Create
131 directories for the other mount points (like <path>/mnt/gentoo/boot</path>) if
132 you need them and mount them too.
133 </p>
134
135 <pre caption="Mount the file systems">
136 livecd ~ # <i>mount /dev/sda3 /mnt/gentoo</i>
137 livecd ~ # <i>mkdir /mnt/gentoo/boot</i>
138 livecd ~ # <i>mount /dev/sda1 /mnt/gentoo/boot</i>
139 livecd ~ # <i>cd /mnt/gentoo</i>
140 </pre>
141
142 </body>
143 </section>
144
145 <section>
146 <include href="gentoo-x86-quickinstall-stage.xml"/>
147 </section>
148
149 <section>
150 <title>Kernel Configuration</title>
151 <body>
152
153 <p>
154 Install a kernel source (usually <c>gentoo-sources</c>), configure it, compile
155 it and copy the <path>arch/i386/boot/bzImage</path> file to <path>/boot</path>.
156 </p>
157
158 <pre caption="Install a kernel source, compile it and install the kernel">
159 livecd etc # <i>time emerge gentoo-sources</i>
160
161 real 2m51.435s
162 user 0m58.220s
163 sys 0m29.890s
164 livecd etc # <i>cd /usr/src/linux</i>
165 livecd linux # <i>make menuconfig</i>
166 <comment>(Configure your kernel)</comment>
167 livecd linux # <i>time make -j2</i>
168
169 <comment>(Elapsed time depends highly on the options you selected)</comment>
170 real 3m51.962s
171 user 3m27.060s
172 sys 0m24.310s
173
174 livecd linux # <i>make modules_install</i>
175 livecd linux # <i>cp arch/i386/boot/bzImage /boot/kernel</i>
176 </pre>
177
178 </body>
179 </section>
180
181 <section>
182 <include href="gentoo-x86-quickinstall-system.xml"/>
183 </section>
184
185 <section id="reboot">
186 <title>Reboot</title>
187 <body>
188
189 <p>
190 Exit the chrooted environment, unmount all file systems and reboot:
191 </p>
192
193 <pre caption="Reboot">
194 livecd conf.d # <i>exit</i>
195 livecd / # <i>umount /mnt/gentoo/proc /mnt/gentoo/boot /mnt/gentoo</i>
196 livecd / # <i>reboot</i>
197 <comment>(Don't forget to remove the CD)</comment>
198 </pre>
199
200 </body>
201 </section>
202
203 <section>
204 <include href="gentoo-x86-quickinstall-after-reboot.xml"/>
205 </section>
206
207 </chapter>
208 </guide>

  ViewVC Help
Powered by ViewVC 1.1.20