/[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.9
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.9 2004/08/30 17:44:00 neysx 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>
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
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 preference.
172</p> 172</p>
173 173
174 174
175</body> 175</body>
176</subsection> 176</subsection>
181<p> 181<p>
182To figure out what disks you have running, use the following commands: 182To figure out what disks you have running, use the following commands:
183</p> 183</p>
184 184
185<pre caption="Identifying available disks"> 185<pre caption="Identifying available disks">
186<comment>(For IDE disks)</comment> # <i>dmesg | grep 'drive$'</i> 186# <i>dmesg | grep 'drive$'</i> <comment>(For IDE disks)</comment>
187<comment>(For SCSI disks)</comment> # <i>dmesg | grep 'scsi'</i> 187# <i>dmesg | grep 'scsi'</i> <comment>(For SCSI disks)</comment>
188</pre> 188</pre>
189 189
190<p> 190<p>
191From this output you should be able to see what disks were detected and their 191From this output you should be able to see what disks were detected and their
192respective <path>/dev</path> entry. In the following parts we assume that the 192respective <path>/dev</path> entry. In the following parts we assume that the
204</body> 204</body>
205</subsection> 205</subsection>
206<subsection> 206<subsection>
207<title>Deleting All Slices</title> 207<title>Deleting All Slices</title>
208<body> 208<body>
209
210<p>
211If your hard drive is completely blank, then you'll have to first create
212a BSD disklabel.
213</p>
214
215<pre caption="Creating BSD disklabel">
216Command (m for help): <i>b</i>
217/dev/sda contains no disklabel.
218Do you want to create a disklabel? (y/n) <i>y</i>
219<comment>A bunch of drive-specific info will show here</comment>
2203 partitions:
221# start end size fstype [fsize bsize cpg]
222 c: 1 5290* 5289* unused 0 0
223</pre>
209 224
210<p> 225<p>
211We start with deleting all slices <e>except</e> the 'c'-slice. The following 226We start with deleting all slices <e>except</e> the 'c'-slice. The following
212shows how to delete a slice (in the example we use 'a'). Repeat the process to 227shows how to delete a slice (in the example we use 'a'). Repeat the process to
213delete all other slices (again, except the 'c'-slice). 228delete all other slices (again, except the 'c'-slice).
260</p> 275</p>
261 276
262<p> 277<p>
263We will create a swap slice starting at the third cylinder, with a total 278We will create a swap slice starting at the third cylinder, with a total
264size of 1 Gbyte. Use <c>n</c> to create a new slice. After creating the slice, 279size of 1 Gbyte. Use <c>n</c> to create a new slice. After creating the slice,
265we will change its type to <c>1</c>, meaning <e>swap</e>. 280we will change its type to <c>1</c> (one), meaning <e>swap</e>.
266</p> 281</p>
267 282
268<pre caption="Creating the swap slice"> 283<pre caption="Creating the swap slice">
269BSD disklabel command (m for help): <i>n</i> 284BSD disklabel command (m for help): <i>n</i>
270Partition (a-p): <i>a</i> 285Partition (a-p): <i>a</i>
466 <ti><c>mkfs.jfs</c></ti> 481 <ti><c>mkfs.jfs</c></ti>
467</tr> 482</tr>
468</table> 483</table>
469 484
470<p> 485<p>
471For instance, to have the root partition (<path>/dev/sdab</path> in our example) 486For instance, to have the root partition (<path>/dev/sda2</path> in our example)
472in ext3, you would use: 487in ext3, you would use:
473</p> 488</p>
474 489
475<pre caption="Applying a filesystem on a partition"> 490<pre caption="Applying a filesystem on a partition">
476# <i>mke2fs -j /dev/sdab</i> 491# <i>mke2fs -j /dev/sda2</i>
477</pre> 492</pre>
478 493
479<p> 494<p>
480Now create the filesystems on your newly created partitions (or logical 495Now create the filesystems on your newly created partitions (or logical
481volumes). 496volumes).
490<p> 505<p>
491<c>mkswap</c> is the command that is used to initialize swap partitions: 506<c>mkswap</c> is the command that is used to initialize swap partitions:
492</p> 507</p>
493 508
494<pre caption="Creating a Swap signature"> 509<pre caption="Creating a Swap signature">
495# <i>mkswap /dev/sdaa</i> 510# <i>mkswap /dev/sda1</i>
496</pre> 511</pre>
497 512
498<p> 513<p>
499To activate the swap partition, use <c>swapon</c>: 514To activate the swap partition, use <c>swapon</c>:
500</p> 515</p>
501 516
502<pre caption="Activating the swap partition"> 517<pre caption="Activating the swap partition">
503# <i>swapon /dev/sdaa</i> 518# <i>swapon /dev/sda1</i>
504</pre> 519</pre>
505 520
506<p> 521<p>
507Create and activate the swap now. 522Create and activate the swap now.
508</p> 523</p>
520create the necessary mount directories for every partition you created. As an 535create the necessary mount directories for every partition you created. As an
521example we mount the root and boot partition: 536example we mount the root and boot partition:
522</p> 537</p>
523 538
524<pre caption="Mounting partitions"> 539<pre caption="Mounting partitions">
525# <i>mount /dev/sdab /mnt/gentoo</i> 540# <i>mount /dev/sda2 /mnt/gentoo</i>
526</pre> 541</pre>
527 542
528<note> 543<note>
529If you want your <path>/tmp</path> to reside on a separate partition, be sure to 544If 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 545change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This
531also holds for <path>/var/tmp</path>. 546also holds for <path>/var/tmp</path>.
532</note> 547</note>
533 548
534<p> 549<p>
535We also need to mount the proc filesystem (a virtual interface with the kernel) 550We will also have to mount the proc filesystem (a virtual interface with the
536on <path>/proc</path>. We first create the <path>/mnt/gentoo/proc</path> 551kernel) on <path>/proc</path>. But first we will need to place our files on the partitions.
537mountpoint and then mount the filesystem:
538</p>
539
540<pre caption="Creating the /mnt/gentoo/proc mountpoint">
541# <i>mkdir /mnt/gentoo/proc</i>
542# <i>mount -t proc none /mnt/gentoo/proc</i>
543</pre>
544
545<p> 552</p>
553
554<p>
546Now continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo 555Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
547Installation Files</uri>. 556Installation Files</uri>.
548</p> 557</p>
549 558
550</body> 559</body>
551</section> 560</section>

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

  ViewVC Help
Powered by ViewVC 1.1.20