/[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.29 Revision 1.30
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/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-alpha-disk.xml,v 1.29 2009/01/26 08:04:26 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-alpha-disk.xml,v 1.30 2009/02/15 06:48:11 rane Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>9.0</version> 11<version>9.1</version>
12<date>2008-04-01</date> 12<date>2009-02-15</date>
13 13
14<section> 14<section>
15<title>Introduction to Block Devices</title> 15<title>Introduction to Block Devices</title>
16 16
17<subsection> 17<subsection>
18<include href="hb-install-blockdevices.xml"/> 18<include href="hb-install-blockdevices.xml"/>
19</subsection> 19</subsection>
20 20
21<subsection> 21<subsection>
22<title>Slices</title> 22<title>Slices</title>
23<body> 23<body>
24 24
25<p> 25<p>
26Although it is theoretically possible to use a full disk to house your Linux 26Although it is theoretically possible to use a full disk to house your Linux
27system, this is almost never done in practice. Instead, full disk block devices 27system, this is almost never done in practice. Instead, full disk block devices
244<pre caption="Viewing an empty scheme"> 244<pre caption="Viewing an empty scheme">
245BSD disklabel command (m for help): <i>p</i> 245BSD disklabel command (m for help): <i>p</i>
246 246
2473 partitions: 2473 partitions:
248# start end size fstype [fsize bsize cpg] 248# start end size fstype [fsize bsize cpg]
249 c: 1 5290* 5289* unused 0 0 249 c: 1 5290* 5289* unused 0 0
250</pre> 250</pre>
251 251
252</body> 252</body>
253</subsection> 253</subsection>
254<subsection> 254<subsection>
255<title>Creating the Swap Slice</title> 255<title>Creating the Swap Slice</title>
256<body> 256<body>
257 257
258<p> 258<p>
259On Alpha based systems you don't need a separate boot partition. However, the 259On Alpha based systems you don't need a separate boot slice. However, the
260first cylinder cannot be used as the <c>aboot</c> image will be placed there. 260first cylinder cannot be used as the <c>aboot</c> image will be placed there.
261</p> 261</p>
262 262
263<p> 263<p>
264We will create a swap slice starting at the third cylinder, with a total 264We will create a swap slice starting at the third cylinder, with a total
265size of 1 GB. Use <c>n</c> to create a new slice. After creating the slice, 265size of 1 GB. Use <c>n</c> to create a new slice. After creating the slice,
266we will change its type to <c>1</c> (one), meaning <e>swap</e>. 266we will change its type to <c>1</c> (one), meaning <e>swap</e>.
267</p> 267</p>
268 268
269<pre caption="Creating the swap slice"> 269<pre caption="Creating the swap slice">
270BSD disklabel command (m for help): <i>n</i> 270BSD disklabel command (m for help): <i>n</i>
271Partition (a-p): <i>a</i> 271Partition (a-p): <i>a</i>
272First cylinder (1-5290, default 1): <i>3</i> 272First cylinder (1-5290, default 1): <i>3</i>
273Last cylinder or +size or +sizeM or +sizeK (3-5290, default 5290): <i>+1024M</i> 273Last cylinder or +size or +sizeM or +sizeK (3-5290, default 5290): <i>+1024M</i>
274 274
2873 partitions: 2873 partitions:
288# start end size fstype [fsize bsize cpg] 288# start end size fstype [fsize bsize cpg]
289 a: 3 1003 1001 swap 289 a: 3 1003 1001 swap
290 c: 1 5290* 5289* unused 0 0 290 c: 1 5290* 5289* unused 0 0
291</pre> 291</pre>
292 292
293</body> 293</body>
294</subsection> 294</subsection>
295<subsection> 295<subsection>
296<title>Create the Root Slice</title> 296<title>Create the Root Slice</title>
297<body> 297<body>
298 298
299<p> 299<p>
300We will now create the root slice, starting from the first cylinder <e>after</e> 300We will now create the root slice, starting from the first cylinder <e>after</e>
301the swap slice. Use the <c>p</c> command to view where the swap slice ends. In 301the swap slice. Use the <c>p</c> command to view where the swap slice ends. In
302our example, this is at 1003, making the root partition start at 1004. 302our example, this is at 1003, making the root slice start at 1004.
303</p> 303</p>
304 304
305<p> 305<p>
306Another problem is that there is currently a bug in <c>fdisk</c> making it think 306Another problem is that there is currently a bug in <c>fdisk</c> making it think
307the number of available cylinders is one above the real number of cylinders. In 307the number of available cylinders is one above the real number of cylinders. In
308other words, when you are asked for the last cylinder, decrease the cylinder 308other words, when you are asked for the last cylinder, decrease the cylinder
309number (in this example: 5290) with one. 309number (in this example: 5290) with one.
310</p> 310</p>
311 311
312<p> 312<p>
313When the partition is created, we change the type to <c>8</c>, for <e>ext2</e>. 313When the slice is created, we change the type to <c>8</c>, for <e>ext2</e>.
314</p> 314</p>
315 315
316<pre caption="Creating the root slice"> 316<pre caption="Creating the root slice">
317D disklabel command (m for help): <i>n</i> 317D disklabel command (m for help): <i>n</i>
318Partition (a-p): <i>b</i> 318Partition (a-p): <i>b</i>
319First cylinder (1-5290, default 1): <i>1004</i> 319First cylinder (1-5290, default 1): <i>1004</i>
320Last cylinder or +size or +sizeM or +sizeK (1004-5290, default 5290): <i>5289</i> 320Last cylinder or +size or +sizeM or +sizeK (1004-5290, default 5290): <i>5289</i>
321 321
322BSD disklabel command (m for help): <i>t</i> 322BSD disklabel command (m for help): <i>t</i>
323Partition (a-c): <i>b</i> 323Partition (a-c): <i>b</i>
324Hex code (type L to list codes): <i>8</i> 324Hex code (type L to list codes): <i>8</i>
325</pre> 325</pre>
326 326
327<p> 327<p>
328Your slice layout should now be similar to this: 328Your slice layout should now be similar to this:
489Last cylinder or +size or +sizeM or +sizeK (1-8727, default 8727): <i>+16M</i> 489Last cylinder or +size or +sizeM or +sizeK (1-8727, default 8727): <i>+16M</i>
490 490
491Command (m for help): <i>t</i> 491Command (m for help): <i>t</i>
492Selected partition 1 492Selected partition 1
493Hex code (type L to list codes): <i>6</i> 493Hex code (type L to list codes): <i>6</i>
494Changed system type of partition 1 to 6 (FAT16) 494Changed system type of partition 1 to 6 (FAT16)
495</pre> 495</pre>
496 496
497</body> 497</body>
498</subsection> 498</subsection>
499<subsection> 499<subsection>
500<title>Creating the Swap Partition</title> 500<title>Creating the Swap Partition</title>
501<body> 501<body>
502 502
503<p> 503<p>
504We will create a swap partition starting at the third cylinder, with a total 504We will create a swap partition with a total size of 1 GB. Use <c>n</c> to
505size of 1 GB. Use <c>n</c> to create a new partition. 505create a new partition.
506</p> 506</p>
507 507
508<pre caption="Creating the swap partition"> 508<pre caption="Creating the swap partition">
509Command (m for help): <i>n</i> 509Command (m for help): <i>n</i>
510Command action 510Command action
511 e extended 511 e extended
512 p primary partition (1-4) 512 p primary partition (1-4)
513<i>p</i> 513<i>p</i>
514Partition number (1-4): <i>2</i> 514Partition number (1-4): <i>2</i>
515First cylinder (17-8727, default 17): <i>17</i> 515First cylinder (17-8727, default 17): <i>17</i>
516Last cylinder or +size or +sizeM or +sizeK (17-8727, default 8727): <i>+1000M</i> 516Last cylinder or +size or +sizeM or +sizeK (17-8727, default 8727): <i>+1000M</i>
517 517
518Command (m for help): <i>t</i> 518Command (m for help): <i>t</i>
519Partition number (1-4): <i>2</i> 519Partition number (1-4): <i>2</i>
520Hex code (type L to list codes): <i>82</i> 520Hex code (type L to list codes): <i>82</i>
693<p> 693<p>
694Create and activate the swap with the commands mentioned above. 694Create and activate the swap with the commands mentioned above.
695</p> 695</p>
696 696
697</body> 697</body>
698</subsection> 698</subsection>
699</section> 699</section>
700<section> 700<section>
701<title>Mounting</title> 701<title>Mounting</title>
702<body> 702<body>
703 703
704<p> 704<p>
705Now that your partitions are initialized and are housing a filesystem, it is 705Now that your partitions are initialized and are housing a filesystem, it is
706time to mount those partitions. Use the <c>mount</c> command. Don't forget to 706time to mount those partitions. Use the <c>mount</c> command. Don't forget to
707create the necessary mount directories for every partition you created. As an 707create the necessary mount directories for every partition you created. As an
708example we mount the root and boot partition: 708example we mount the root partition:
709</p> 709</p>
710 710
711<pre caption="Mounting partitions"> 711<pre caption="Mounting partitions">
712# <i>mount /dev/sda2 /mnt/gentoo</i> 712# <i>mount /dev/sda2 /mnt/gentoo</i>
713</pre> 713</pre>
714 714
715<note> 715<note>
716If you want your <path>/tmp</path> to reside on a separate partition, be sure to 716If you want your <path>/tmp</path> to reside on a separate partition, be sure to
717change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This 717change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This
718also holds for <path>/var/tmp</path>. 718also holds for <path>/var/tmp</path>.
719</note> 719</note>
720 720
721<p> 721<p>
722We will also have to mount the proc filesystem (a virtual interface with the 722We will also have to mount the proc filesystem (a virtual interface with the
723kernel) on <path>/proc</path>. But first we will need to place our files on the partitions. 723kernel) on <path>/proc</path>. But first we will need to place our files on the partitions.

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

  ViewVC Help
Powered by ViewVC 1.1.20