/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-alpha-disk.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-alpha-disk.xml

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

Revision 1.4 Revision 1.5
1<?xml version='1.0' encoding='UTF-8'?> 1<?xml version='1.0' encoding='UTF-8'?>
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/1.0 --> 5<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-alpha-disk.xml,v 1.4 2004/07/18 10:29:59 neysx Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-alpha-disk.xml,v 1.5 2004/07/26 16:40:13 swift Exp $ -->
8 8
9<sections> 9<sections>
10<section> 10<section>
11<title>Introduction to Block Devices</title> 11<title>Introduction to Block Devices</title>
12<subsection> 12<subsection>
13<title>Block Devices</title> 13<title>Block Devices</title>
14<body> 14<body>
15 15
16<p> 16<p>
17We'll take a good look at disk-oriented aspects of Gentoo Linux 17We'll take a good look at disk-oriented aspects of Gentoo Linux
18and Linux in general, including Linux filesystems, partitions and block devices. 18and Linux in general, including Linux filesystems, partitions and block devices.
19Then, once you're familiar with the ins and outs of disks and filesystems, 19Then, once you're familiar with the ins and outs of disks and filesystems,
20you'll be guided through the process of setting up partitions and filesystems 20you'll be guided through the process of setting up partitions and filesystems
21for your Gentoo Linux installation. 21for your Gentoo Linux installation.
22</p> 22</p>
55<title>Designing a Partitioning Scheme</title> 55<title>Designing a Partitioning Scheme</title>
56<subsection> 56<subsection>
57<title>Default Partitioning Scheme</title> 57<title>Default Partitioning Scheme</title>
58<body> 58<body>
59 59
60<p> 60<p>
61As an example we use the following slice layout: 61As an example we use the following slice layout:
62</p> 62</p>
63 63
64<table> 64<table>
65<tr> 65<tr>
66 <th>Slice</th> 66 <th>Slice</th>
67 <th>Description</th> 67 <th>Description</th>
68</tr> 68</tr>
69<tr> 69<tr>
70 <ti><path>/dev/sdaa</path></ti> 70 <ti><path>/dev/sda1</path></ti>
71 <ti>Swap slice</ti> 71 <ti>Swap slice</ti>
72</tr> 72</tr>
73<tr> 73<tr>
74 <ti><path>/dev/sdab</path></ti> 74 <ti><path>/dev/sda2</path></ti>
75 <ti>Root slice</ti> 75 <ti>Root slice</ti>
76</tr> 76</tr>
77<tr> 77<tr>
78 <ti><path>/dev/sdac</path></ti> 78 <ti><path>/dev/sda3</path></ti>
79 <ti>Full disk (required)</ti> 79 <ti>Full disk (required)</ti>
80</tr> 80</tr>
81</table> 81</table>
82 82
83 83
84<p> 84<p>
85If you are interested in knowing how big a partition should be, or even how 85If you are interested in knowing how big a partition should be, or even how
86many partitions (or volumes) you need, read on. Otherwise continue now with 86many partitions (or volumes) you need, read on. Otherwise continue now with
87<uri link="#fdisk">Using fdisk to Partition your Disk</uri>. 87<uri link="#fdisk">Using fdisk to Partition your Disk</uri>.
88</p> 88</p>
89 89
90</body> 90</body>
91</subsection> 91</subsection>
92<subsection> 92<subsection>
93<title>How Many and How Big?</title> 93<title>How Many and How Big?</title>
142<title>Using fdisk on Alpha to Partition your Disk</title> 142<title>Using fdisk on Alpha to Partition your Disk</title>
143<subsection> 143<subsection>
144<body> 144<body>
145 145
146<p> 146<p>
147The following parts explain how to create the example slice layout described 147The following parts explain how to create the example slice layout described
148previously, namely: 148previously, namely:
149</p> 149</p>
150 150
151<table> 151<table>
152<tr> 152<tr>
153 <th>Slice</th> 153 <th>Slice</th>
154 <th>Description</th> 154 <th>Description</th>
155</tr> 155</tr>
156<tr> 156<tr>
157 <ti><path>/dev/sdaa</path></ti> 157 <ti><path>/dev/sda1</path></ti>
158 <ti>Swap slice</ti> 158 <ti>Swap slice</ti>
159</tr> 159</tr>
160<tr> 160<tr>
161 <ti><path>/dev/sdab</path></ti> 161 <ti><path>/dev/sda2</path></ti>
162 <ti>Root slice</ti> 162 <ti>Root slice</ti>
163</tr> 163</tr>
164<tr> 164<tr>
165 <ti><path>/dev/sdac</path></ti> 165 <ti><path>/dev/sda3</path></ti>
166 <ti>Full disk (required)</ti> 166 <ti>Full disk (required)</ti>
167</tr> 167</tr>
168</table> 168</table>
169 169
170<p> 170<p>
171Change your slice layout according to your own will. 171Change your slice layout according to your own will.
172</p> 172</p>
173 173
174 174
175</body> 175</body>
176</subsection> 176</subsection>
177<subsection> 177<subsection>
178<title>Identifying Available Disks</title> 178<title>Identifying Available Disks</title>
179<body> 179<body>
180 180
456<tr> 456<tr>
457 <ti>reiserfs</ti> 457 <ti>reiserfs</ti>
458 <ti><c>mkreiserfs</c></ti> 458 <ti><c>mkreiserfs</c></ti>
459</tr> 459</tr>
460<tr> 460<tr>
461 <ti>xfs</ti> 461 <ti>xfs</ti>
462 <ti><c>mkfs.xfs</c></ti> 462 <ti><c>mkfs.xfs</c></ti>
463</tr> 463</tr>
464<tr> 464<tr>
465 <ti>jfs</ti> 465 <ti>jfs</ti>
466 <ti><c>mkfs.jfs</c></ti> 466 <ti><c>mkfs.jfs</c></ti>
467</tr> 467</tr>
468</table> 468</table>
469 469
470<p> 470<p>
471For instance, to have the root partition (<path>/dev/sdab</path> in our example) 471For instance, to have the root partition (<path>/dev/sda2</path> in our example)
472in ext3, you would use: 472in ext3, you would use:
473</p> 473</p>
474 474
475<pre caption="Applying a filesystem on a partition"> 475<pre caption="Applying a filesystem on a partition">
476# <i>mke2fs -j /dev/sdab</i> 476# <i>mke2fs -j /dev/sda2</i>
477</pre> 477</pre>
478 478
479<p> 479<p>
480Now create the filesystems on your newly created partitions (or logical 480Now create the filesystems on your newly created partitions (or logical
481volumes). 481volumes).
482</p> 482</p>
483 483
484</body> 484</body>
485</subsection> 485</subsection>
486<subsection> 486<subsection>
487<title>Activating the Swap Partition</title> 487<title>Activating the Swap Partition</title>
488<body> 488<body>
489 489
490<p> 490<p>
491<c>mkswap</c> is the command that is used to initialize swap partitions: 491<c>mkswap</c> is the command that is used to initialize swap partitions:
492</p> 492</p>
493 493
494<pre caption="Creating a Swap signature"> 494<pre caption="Creating a Swap signature">
495# <i>mkswap /dev/sdaa</i> 495# <i>mkswap /dev/sda1</i>
496</pre> 496</pre>
497 497
498<p> 498<p>
499To activate the swap partition, use <c>swapon</c>: 499To activate the swap partition, use <c>swapon</c>:
500</p> 500</p>
501 501
502<pre caption="Activating the swap partition"> 502<pre caption="Activating the swap partition">
503# <i>swapon /dev/sdaa</i> 503# <i>swapon /dev/sda1</i>
504</pre> 504</pre>
505 505
506<p> 506<p>
507Create and activate the swap now. 507Create and activate the swap now.
508</p> 508</p>
509 509
510</body> 510</body>
511</subsection> 511</subsection>
512</section> 512</section>
513<section> 513<section>
514<title>Mounting</title> 514<title>Mounting</title>
515<body> 515<body>
516 516
517<p> 517<p>
518Now that your partitions are initialized and are housing a filesystem, it is 518Now that your partitions are initialized and are housing a filesystem, it is
519time to mount those partitions. Use the <c>mount</c> command. Don't forget to 519time to mount those partitions. Use the <c>mount</c> command. Don't forget to
520create the necessary mount directories for every partition you created. As an 520create the necessary mount directories for every partition you created. As an
521example we mount the root and boot partition: 521example we mount the root and boot partition:
522</p> 522</p>
523 523
524<pre caption="Mounting partitions"> 524<pre caption="Mounting partitions">
525# <i>mount /dev/sdab /mnt/gentoo</i> 525# <i>mount /dev/sda2 /mnt/gentoo</i>
526</pre> 526</pre>
527 527
528<note> 528<note>
529If you want your <path>/tmp</path> to reside on a separate partition, be sure to 529If you want your <path>/tmp</path> to reside on a separate partition, be sure to
530change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This 530change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This
531also holds for <path>/var/tmp</path>. 531also holds for <path>/var/tmp</path>.
532</note> 532</note>
533 533
534<p> 534<p>
535We also need to mount the proc filesystem (a virtual interface with the kernel) 535We also need to mount the proc filesystem (a virtual interface with the kernel)
536on <path>/proc</path>. We first create the <path>/mnt/gentoo/proc</path> 536on <path>/proc</path>. We first create the <path>/mnt/gentoo/proc</path>
537mountpoint and then mount the filesystem: 537mountpoint and then mount the filesystem:
538</p> 538</p>
539 539
540<pre caption="Creating the /mnt/gentoo/proc mountpoint"> 540<pre caption="Creating the /mnt/gentoo/proc mountpoint">

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20