/[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.11
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.11 2004/11/15 12:47:47 swift Exp $ -->
8 8
9<sections> 9<sections>
10
11<version>1.9</version>
12<date>August 30, 2004</date>
13
10<section> 14<section>
11<title>Introduction to Block Devices</title> 15<title>Introduction to Block Devices</title>
12<subsection> 16<subsection>
13<title>Block Devices</title> 17<title>Block Devices</title>
14<body> 18<body>
65<tr> 69<tr>
66 <th>Slice</th> 70 <th>Slice</th>
67 <th>Description</th> 71 <th>Description</th>
68</tr> 72</tr>
69<tr> 73<tr>
70 <ti><path>/dev/sdaa</path></ti> 74 <ti><path>/dev/sda1</path></ti>
71 <ti>Swap slice</ti> 75 <ti>Swap slice</ti>
72</tr> 76</tr>
73<tr> 77<tr>
74 <ti><path>/dev/sdab</path></ti> 78 <ti><path>/dev/sda2</path></ti>
75 <ti>Root slice</ti> 79 <ti>Root slice</ti>
76</tr> 80</tr>
77<tr> 81<tr>
78 <ti><path>/dev/sdac</path></ti> 82 <ti><path>/dev/sda3</path></ti>
79 <ti>Full disk (required)</ti> 83 <ti>Full disk (required)</ti>
80</tr> 84</tr>
81</table> 85</table>
82 86
83 87
152<tr> 156<tr>
153 <th>Slice</th> 157 <th>Slice</th>
154 <th>Description</th> 158 <th>Description</th>
155</tr> 159</tr>
156<tr> 160<tr>
157 <ti><path>/dev/sdaa</path></ti> 161 <ti><path>/dev/sda1</path></ti>
158 <ti>Swap slice</ti> 162 <ti>Swap slice</ti>
159</tr> 163</tr>
160<tr> 164<tr>
161 <ti><path>/dev/sdab</path></ti> 165 <ti><path>/dev/sda2</path></ti>
162 <ti>Root slice</ti> 166 <ti>Root slice</ti>
163</tr> 167</tr>
164<tr> 168<tr>
165 <ti><path>/dev/sdac</path></ti> 169 <ti><path>/dev/sda3</path></ti>
166 <ti>Full disk (required)</ti> 170 <ti>Full disk (required)</ti>
167</tr> 171</tr>
168</table> 172</table>
169 173
170<p> 174<p>
171Change your slice layout according to your own will. 175Change your slice layout according to your own preference.
172</p> 176</p>
173 177
174 178
175</body> 179</body>
176</subsection> 180</subsection>
181<p> 185<p>
182To figure out what disks you have running, use the following commands: 186To figure out what disks you have running, use the following commands:
183</p> 187</p>
184 188
185<pre caption="Identifying available disks"> 189<pre caption="Identifying available disks">
186<comment>(For IDE disks)</comment> # <i>dmesg | grep 'drive$'</i> 190# <i>dmesg | grep 'drive$'</i> <comment>(For IDE disks)</comment>
187<comment>(For SCSI disks)</comment> # <i>dmesg | grep 'scsi'</i> 191# <i>dmesg | grep 'scsi'</i> <comment>(For SCSI disks)</comment>
188</pre> 192</pre>
189 193
190<p> 194<p>
191From this output you should be able to see what disks were detected and their 195From 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 196respective <path>/dev</path> entry. In the following parts we assume that the
204</body> 208</body>
205</subsection> 209</subsection>
206<subsection> 210<subsection>
207<title>Deleting All Slices</title> 211<title>Deleting All Slices</title>
208<body> 212<body>
213
214<p>
215If your hard drive is completely blank, then you'll have to first create
216a BSD disklabel.
217</p>
218
219<pre caption="Creating BSD disklabel">
220Command (m for help): <i>b</i>
221/dev/sda contains no disklabel.
222Do you want to create a disklabel? (y/n) <i>y</i>
223<comment>A bunch of drive-specific info will show here</comment>
2243 partitions:
225# start end size fstype [fsize bsize cpg]
226 c: 1 5290* 5289* unused 0 0
227</pre>
209 228
210<p> 229<p>
211We start with deleting all slices <e>except</e> the 'c'-slice. The following 230We 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 231shows how to delete a slice (in the example we use 'a'). Repeat the process to
213delete all other slices (again, except the 'c'-slice). 232delete all other slices (again, except the 'c'-slice).
260</p> 279</p>
261 280
262<p> 281<p>
263We will create a swap slice starting at the third cylinder, with a total 282We 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, 283size 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>. 284we will change its type to <c>1</c> (one), meaning <e>swap</e>.
266</p> 285</p>
267 286
268<pre caption="Creating the swap slice"> 287<pre caption="Creating the swap slice">
269BSD disklabel command (m for help): <i>n</i> 288BSD disklabel command (m for help): <i>n</i>
270Partition (a-p): <i>a</i> 289Partition (a-p): <i>a</i>
466 <ti><c>mkfs.jfs</c></ti> 485 <ti><c>mkfs.jfs</c></ti>
467</tr> 486</tr>
468</table> 487</table>
469 488
470<p> 489<p>
471For instance, to have the root partition (<path>/dev/sdab</path> in our example) 490For instance, to have the root partition (<path>/dev/sda2</path> in our example)
472in ext3, you would use: 491in ext3, you would use:
473</p> 492</p>
474 493
475<pre caption="Applying a filesystem on a partition"> 494<pre caption="Applying a filesystem on a partition">
476# <i>mke2fs -j /dev/sdab</i> 495# <i>mke2fs -j /dev/sda2</i>
477</pre> 496</pre>
478 497
479<p> 498<p>
480Now create the filesystems on your newly created partitions (or logical 499Now create the filesystems on your newly created partitions (or logical
481volumes). 500volumes).
490<p> 509<p>
491<c>mkswap</c> is the command that is used to initialize swap partitions: 510<c>mkswap</c> is the command that is used to initialize swap partitions:
492</p> 511</p>
493 512
494<pre caption="Creating a Swap signature"> 513<pre caption="Creating a Swap signature">
495# <i>mkswap /dev/sdaa</i> 514# <i>mkswap /dev/sda1</i>
496</pre> 515</pre>
497 516
498<p> 517<p>
499To activate the swap partition, use <c>swapon</c>: 518To activate the swap partition, use <c>swapon</c>:
500</p> 519</p>
501 520
502<pre caption="Activating the swap partition"> 521<pre caption="Activating the swap partition">
503# <i>swapon /dev/sdaa</i> 522# <i>swapon /dev/sda1</i>
504</pre> 523</pre>
505 524
506<p> 525<p>
507Create and activate the swap now. 526Create and activate the swap now.
508</p> 527</p>
520create the necessary mount directories for every partition you created. As an 539create the necessary mount directories for every partition you created. As an
521example we mount the root and boot partition: 540example we mount the root and boot partition:
522</p> 541</p>
523 542
524<pre caption="Mounting partitions"> 543<pre caption="Mounting partitions">
525# <i>mount /dev/sdab /mnt/gentoo</i> 544# <i>mount /dev/sda2 /mnt/gentoo</i>
526</pre> 545</pre>
527 546
528<note> 547<note>
529If you want your <path>/tmp</path> to reside on a separate partition, be sure to 548If 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 549change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This
531also holds for <path>/var/tmp</path>. 550also holds for <path>/var/tmp</path>.
532</note> 551</note>
533 552
534<p> 553<p>
535We also need to mount the proc filesystem (a virtual interface with the kernel) 554We 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> 555kernel) 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> 556</p>
557
558<p>
546Now continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo 559Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
547Installation Files</uri>. 560Installation Files</uri>.
548</p> 561</p>
549 562
550</body> 563</body>
551</section> 564</section>

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

  ViewVC Help
Powered by ViewVC 1.1.20