/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.11 Revision 1.12
2<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> 2<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3 3
4<!-- The content of this document is licensed under the CC-BY-SA license --> 4<!-- The content of this document is licensed under the CC-BY-SA license -->
5<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.11 2008/05/02 08:04:23 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.12 2009/01/09 18:12:12 neysx Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<abstract> 11<abstract>
12To be able to install Gentoo, you must create the necessary partitions. 12To be able to install Gentoo, you must create the necessary partitions.
13This chapter describes how to partition a disk for future usage. 13This chapter describes how to partition a disk for future usage.
14</abstract> 14</abstract>
15 15
16<version>6.1</version> 16<version>6.2</version>
17<date>2008-05-02</date> 17<date>2009-01-09</date>
18 18
19<section> 19<section>
20<title>Introduction to Block Devices</title> 20<title>Introduction to Block Devices</title>
21 21
22<subsection> 22<subsection>
269Command (m for help): <i>p</i> 269Command (m for help): <i>p</i>
270 270
271Disk /dev/sda: 240 heads, 63 sectors, 2184 cylinders 271Disk /dev/sda: 240 heads, 63 sectors, 2184 cylinders
272Units = cylinders of 15120 * 512 bytes 272Units = cylinders of 15120 * 512 bytes
273 273
274Device Boot Start End Blocks Id System 274 Device Boot Start End Blocks Id System
275/dev/sda1 1 14 105808+ 83 Linux 275/dev/sda1 * 1 14 105808+ 83 Linux
276/dev/sda2 15 49 264600 82 Linux swap 276/dev/sda2 15 49 264600 82 Linux swap
277/dev/sda3 50 70 158760 83 Linux 277/dev/sda3 50 70 158760 83 Linux
278/dev/sda4 71 2184 15981840 5 Extended 278/dev/sda4 71 2184 15981840 5 Extended
279/dev/sda5 71 209 1050808+ 83 Linux 279/dev/sda5 71 209 1050808+ 83 Linux
280/dev/sda6 210 348 1050808+ 83 Linux 280/dev/sda6 210 348 1050808+ 83 Linux
347<p> 347<p>
348We first create a small boot partition. Type <c>n</c> to create a new partition, 348We first create a small boot partition. Type <c>n</c> to create a new partition,
349then <c>p</c> to select a primary partition, followed by <c>1</c> to select the 349then <c>p</c> to select a primary partition, followed by <c>1</c> to select the
350first primary partition. When prompted for the first cylinder, hit enter. When 350first primary partition. When prompted for the first cylinder, hit enter. When
351prompted for the last cylinder, type <c>+32M</c> to create a partition 32 Mbyte 351prompted for the last cylinder, type <c>+32M</c> to create a partition 32 Mbyte
352in size: 352in size and set its bootable flag:
353</p> 353</p>
354 354
355<pre caption="Creating the boot partition"> 355<pre caption="Creating the boot partition">
356Command (m for help): <i>n</i> 356Command (m for help): <i>n</i>
357Command action 357Command action
373 373
374Disk /dev/sda: 30.0 GB, 30005821440 bytes 374Disk /dev/sda: 30.0 GB, 30005821440 bytes
375240 heads, 63 sectors/track, 3876 cylinders 375240 heads, 63 sectors/track, 3876 cylinders
376Units = cylinders of 15120 * 512 = 7741440 bytes 376Units = cylinders of 15120 * 512 = 7741440 bytes
377 377
378Device Boot Start End Blocks Id System 378 Device Boot Start End Blocks Id System
379/dev/sda1 1 14 105808+ 83 Linux 379/dev/sda1 1 14 105808+ 83 Linux
380</pre> 380</pre>
381 381
382<p> 382<p>
383We need to make this partition bootable. Type <c>a</c> to toggle the bootable 383We need to make this partition bootable. Type <c>a</c> to toggle the bootable
384flag on a partition and select <c>1</c>. If you press <c>p</c> again, you will 384flag on a partition and select <c>1</c>. If you press <c>p</c> again, you will
385notice that an <path>*</path> is placed in the "Boot" column. 385notice that an <path>*</path> is placed in the "Boot" column.
386</p> 386</p>
387 387
388</body> 388</body>
389</subsection> 389</subsection>
408 408
409Disk /dev/sda: 30.0 GB, 30005821440 bytes 409Disk /dev/sda: 30.0 GB, 30005821440 bytes
410240 heads, 63 sectors/track, 3876 cylinders 410240 heads, 63 sectors/track, 3876 cylinders
411Units = cylinders of 15120 * 512 = 7741440 bytes 411Units = cylinders of 15120 * 512 = 7741440 bytes
412 412
413Device Boot Start End Blocks Id System 413 Device Boot Start End Blocks Id System
414/dev/sda1 * 1 14 105808+ 83 Linux 414/dev/sda1 * 1 14 105808+ 83 Linux
415/dev/sda2 15 81 506520 82 Linux swap 415/dev/sda2 15 81 506520 82 Linux swap
416</pre> 416</pre>
417 417
418</body> 418</body>
419</subsection> 419</subsection>
420<subsection> 420<subsection>
436 436
437Disk /dev/sda: 30.0 GB, 30005821440 bytes 437Disk /dev/sda: 30.0 GB, 30005821440 bytes
438240 heads, 63 sectors/track, 3876 cylinders 438240 heads, 63 sectors/track, 3876 cylinders
439Units = cylinders of 15120 * 512 = 7741440 bytes 439Units = cylinders of 15120 * 512 = 7741440 bytes
440 440
441Device Boot Start End Blocks Id System 441 Device Boot Start End Blocks Id System
442/dev/sda1 * 1 14 105808+ 83 Linux 442/dev/sda1 * 1 14 105808+ 83 Linux
443/dev/sda2 15 81 506520 82 Linux swap 443/dev/sda2 15 81 506520 82 Linux swap
444/dev/sda3 82 3876 28690200 83 Linux 444/dev/sda3 82 3876 28690200 83 Linux
445</pre> 445</pre>
446 446
447</body> 447</body>
448</subsection> 448</subsection>
449<subsection> 449<subsection>

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20