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

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

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

Revision 1.17 Revision 1.18
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-hppa-disk.xml,v 1.17 2005/08/02 08:03:53 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-hppa-disk.xml,v 1.18 2005/11/06 09:30:31 neysx Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>1.12</version> 11<version>1.12</version>
12<date>2005-08-02</date> 12<date>2005-08-02</date>
16<subsection> 16<subsection>
17<title>Block Devices</title> 17<title>Block Devices</title>
18<body> 18<body>
19 19
20<p> 20<p>
21We'll take a good look at disk-oriented aspects of Gentoo Linux 21We'll take a good look at disk-oriented aspects of Gentoo Linux and Linux in
22and Linux in general, including Linux filesystems, partitions and block devices. 22general, including Linux filesystems, partitions and block devices. Then, once
23Then, once you're familiar with the ins and outs of disks and filesystems, 23you're familiar with the ins and outs of disks and filesystems, you'll be
24you'll be guided through the process of setting up partitions and filesystems 24guided through the process of setting up partitions and filesystems for your
25for your Gentoo Linux installation. 25Gentoo Linux installation.
26</p> 26</p>
27 27
28<p> 28<p>
29To begin, we'll introduce <e>block devices</e>. The most famous block device is 29To begin, we'll introduce <e>block devices</e>. The most famous block device is
30probably the one that represents the first SCSI HD in a Linux system, namely 30probably the one that represents the first SCSI HD in a Linux system, namely
31<path>/dev/sda</path>. 31<path>/dev/sda</path>.
32</p> 32</p>
33 33
34<p> 34<p>
35The block devices above represent an abstract interface to the disk. User 35The block devices above represent an abstract interface to the disk. User
36programs can use these block devices to interact with your disk without worrying 36programs can use these block devices to interact with your disk without
37about whether your drives are IDE, SCSI or something else. The program can 37worrying about whether your drives are IDE, SCSI or something else. The program
38simply address the storage on the disk as a bunch of contiguous, 38can simply address the storage on the disk as a bunch of contiguous,
39randomly-accessible 512-byte blocks. 39randomly-accessible 512-byte blocks.
40</p> 40</p>
41 41
42</body> 42</body>
43</subsection> 43</subsection>
46<body> 46<body>
47 47
48<p> 48<p>
49Although it is theoretically possible to use a full disk to house your Linux 49Although it is theoretically possible to use a full disk to house your Linux
50system, this is almost never done in practice. Instead, full disk block devices 50system, this is almost never done in practice. Instead, full disk block devices
51are split up in smaller, more manageable block devices. On most systems, 51are split up in smaller, more manageable block devices. On most systems, these
52these are called <e>partitions</e>. Other architectures use a similar technique, 52are called <e>partitions</e>. Other architectures use a similar technique,
53called <e>slices</e>. 53called <e>slices</e>.
54</p> 54</p>
55 55
56</body> 56</body>
57</subsection> 57</subsection>
64 64
65<p> 65<p>
66The number of partitions is highly dependent on your environment. For instance, 66The number of partitions is highly dependent on your environment. For instance,
67if you have lots of users, you will most likely want to have your 67if you have lots of users, you will most likely want to have your
68<path>/home</path> separate as it increases security and makes backups easier. 68<path>/home</path> separate as it increases security and makes backups easier.
69If you are installing Gentoo to perform as a mailserver, your 69If you are installing Gentoo to perform as a mailserver, your <path>/var</path>
70<path>/var</path> should be separate as all mails are stored inside 70should be separate as all mails are stored inside <path>/var</path>. A good
71<path>/var</path>. A good choice of filesystem will then maximise your 71choice of filesystem will then maximise your performance. Gameservers will have
72performance. Gameservers will have a separate <path>/opt</path> as most gaming 72a separate <path>/opt</path> as most gaming servers are installed there. The
73servers are installed there. The reason is similar for <path>/home</path>: 73reason is similar for <path>/home</path>: security and backups. You will
74security and backups. You will definitely want to keep <path>/usr</path> big: 74definitely want to keep <path>/usr</path> big: not only will it contain the
75not only will it contain the majority of applications, the Portage tree alone 75majority of applications, the Portage tree alone takes around 500 Mbyte
76takes around 500 Mbyte excluding the various sources that are stored in it. 76excluding the various sources that are stored in it.
77
78</p> 77</p>
79 78
80<p> 79<p>
81As you can see, it very much depends on what you want to achieve. Separate 80As you can see, it very much depends on what you want to achieve. Separate
82partitions or volumes have the following advantages: 81partitions or volumes have the following advantages:
100 nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc. 99 nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc.
101</li> 100</li>
102</ul> 101</ul>
103 102
104<p> 103<p>
105However, multiple partitions have one big disadvantage: if not configured 104However, multiple partitions have one big disadvantage: if not configured
106properly, you might result in having a system with lots 105properly, you might result in having a system with lots of free space on one
107of free space on one partition and none on another. There is also a 15-partition 106partition and none on another. There is also a 15-partition limit for SCSI and
108limit for SCSI and SATA. 107SATA.
109</p> 108</p>
110 109
111</body> 110</body>
112</subsection> 111</subsection>
113</section> 112</section>
195<subsection> 194<subsection>
196<title>Filesystems?</title> 195<title>Filesystems?</title>
197<body> 196<body>
198 197
199<p> 198<p>
200Several filesystems are available. Ext2, ext3, XFS and reiserfs are found stable on 199Several filesystems are available. Ext2, ext3, XFS and reiserfs are found
201the HPPA architecture. The others are very experimental. 200stable on the HPPA architecture. The others are very experimental.
202</p> 201</p>
203 202
204<p> 203<p>
205<b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata 204<b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata
206journaling, which means that routine ext2 filesystem checks at startup time can 205journaling, which means that routine ext2 filesystem checks at startup time can
346# <i>mkdir /mnt/gentoo/boot</i> 345# <i>mkdir /mnt/gentoo/boot</i>
347# <i>mount /dev/sda2 /mnt/gentoo/boot</i> 346# <i>mount /dev/sda2 /mnt/gentoo/boot</i>
348</pre> 347</pre>
349 348
350<note> 349<note>
351If you want your <path>/tmp</path> to reside on a separate partition, be sure to 350If you want your <path>/tmp</path> to reside on a separate partition, be sure
352change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This 351to change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>.
353also holds for <path>/var/tmp</path>. 352This also holds for <path>/var/tmp</path>.
354</note> 353</note>
355 354
356<p> 355<p>
357We will also have to mount the proc filesystem (a virtual interface with the 356We will also have to mount the proc filesystem (a virtual interface with the
358kernel) on <path>/proc</path>. But first we will need to place our files on the partitions. 357kernel) on <path>/proc</path>. But first we will need to place our files on the
358partitions.
359</p> 359</p>
360 360
361<p> 361<p>
362Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo 362Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
363Installation Files</uri>. 363Installation Files</uri>.

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20