/[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.3 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-hppa-disk.xml,v 1.3 2004/07/16 09:37:11 neysx Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-hppa-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>September 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>
95</ul> 99</ul>
96 100
97<p> 101<p>
98However, multiple partitions have one big disadvantage: if not configured 102However, multiple partitions have one big disadvantage: if not configured
99properly, you might result in having a system with lots 103properly, you might result in having a system with lots
100of free space on one partition and none on another. 104of free space on one partition and none on another. There is also a 15-partition
105limit for SCSI and SATA.
101</p> 106</p>
102 107
103</body> 108</body>
104</subsection> 109</subsection>
105</section> 110</section>
114<pre caption="Partitioning the disk"> 119<pre caption="Partitioning the disk">
115# <i>fdisk /dev/sda</i> 120# <i>fdisk /dev/sda</i>
116</pre> 121</pre>
117 122
118<p> 123<p>
119PALO needs a special partition to work. You have to create a partition of at 124HPPA machines use the PC standard DOS partition tables. To create a new
120least 16Mb at the beginning of your disk. The partition type must be of type 125DOS partition table, simply use the <c>o</c> command.
121<e>f0</e> (Linux/PA-RISC boot). 126</p>
127
128<pre caption="Creating a DOS partition table">
129# <i>fdisk /dev/sda</i>
130
131Command (m for help): <i>o</i>
132Building a new DOS disklabel.
133</pre>
134
135<p>
136PALO (the HPPA bootloader) needs a special partition to work. You have
137to create a partition of at least 16Mb at the beginning of your disk.
138The partition type must be of type <e>f0</e> (Linux/PA-RISC boot).
122</p> 139</p>
123 140
124<impo> 141<impo>
125If you ignore this and continue without a special PALO partition, your system 142If you ignore this and continue without a special PALO partition, your system
126will stop loving you and fail to start. Also, if your disk is larger than 2Gb, 143will stop loving you and fail to start. Also, if your disk is larger than 2Gb,
127make sure that the boot partition is in the first 2Gb of your disk. PALO is 144make sure that the boot partition is in the first 2Gb of your disk. PALO is
128unable to read a kernel after the 2Gb limit. 145unable to read a kernel after the 2Gb limit.
129</impo> 146</impo>
130 147
148<pre caption="A simple default partition schema">
149# <i>cat /etc/fstab</i>
150/dev/sda2 /boot ext3 noauto,noatime 1 1
151/dev/sda3 none swap sw 0 0
152/dev/sda4 / ext3 noatime 0 0
153
154# <i>fdisk /dev/sda</i>
155
156Command (m for help): <i>p</i>
157
158Disk /dev/sda: 4294 MB, 4294816768 bytes
159133 heads, 62 sectors/track, 1017 cylinders
160Units = cylinders of 8246 * 512 = 4221952 bytes
161
162 Device Boot Start End Blocks Id System
163/dev/sda1 1 8 32953 f0 Linux/PA-RISC boot
164/dev/sda2 9 20 49476 83 Linux
165/dev/sda3 21 70 206150 82 Linux swap
166/dev/sda4 71 1017 3904481 83 Linux
167</pre>
168
131<p> 169<p>
132Now that your partitions are created, you can now continue with <uri 170Now that your partitions are created, you can now continue with <uri
133link="#filesystems">Creating Filesystems</uri>. 171link="#filesystems">Creating Filesystems</uri>.
134</p> 172</p>
135 173
154<subsection> 192<subsection>
155<title>Filesystems?</title> 193<title>Filesystems?</title>
156<body> 194<body>
157 195
158<p> 196<p>
159Several filesystems are available. Ext2, ext3 and reiserfs are found stable on 197Several filesystems are available. Ext2, ext3, XFS and reiserfs are found stable on
160the HPPA architecture. The others are very experimental. 198the HPPA architecture. The others are very experimental.
161</p> 199</p>
162 200
163<p> 201<p>
164<b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata 202<b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata
188as the creation of large filesystems, the use of many small files, very large 226as the creation of large filesystems, the use of many small files, very large
189files and directories containing tens of thousands of files. 227files and directories containing tens of thousands of files.
190</p> 228</p>
191 229
192<p> 230<p>
193<b>XFS</b> is a filesystem with metadata journaling that is fully supported 231<b>XFS</b> is a filesystem with metadata journaling which comes with a robust
194under Gentoo Linux's xfs-sources kernel. It comes with a robust feature-set and
195is optimized for scalability. We only recommend using this filesystem on Linux 232feature-set and is optimized for scalability. We only recommend using this
196systems with high-end SCSI and/or fibre channel storage and a uninterruptible 233filesystem on Linux systems with high-end SCSI and/or fibre channel storage and
197power supply. Because XFS aggressively caches in-transit data in RAM, improperly 234an uninterruptible power supply. Because XFS aggressively caches in-transit data
198designed programs (those that don't take proper precautions when writing files 235in RAM, improperly designed programs (those that don't take proper precautions
199to disk and there are quite a few of them) can lose a good deal of data if the 236when writing files to disk and there are quite a few of them) can lose a good
200system goes down unexpectedly. 237deal of data if the system goes down unexpectedly.
201</p> 238</p>
202 239
203<p> 240<p>
204<b>JFS</b> is IBM's high-performance journaling filesystem. It has recently 241<b>JFS</b> is IBM's high-performance journaling filesystem. It has recently
205become production-ready and there hasn't been a sufficient track record to 242become production-ready and there hasn't been a sufficient track record to
311change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This 348change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This
312also holds for <path>/var/tmp</path>. 349also holds for <path>/var/tmp</path>.
313</note> 350</note>
314 351
315<p> 352<p>
316We also need to mount the proc filesystem (a virtual interface with the kernel) 353We will also have to mount the proc filesystem (a virtual interface with the
317on <path>/proc</path>. We first create the <path>/mnt/gentoo/proc</path> 354kernel) on <path>/proc</path>. But first we will need to place our files on the partitions.
318mountpoint and then mount the filesystem:
319</p>
320
321<pre caption="Creating the /mnt/gentoo/proc mountpoint">
322# <i>mkdir /mnt/gentoo/proc</i>
323# <i>mount -t proc none /mnt/gentoo/proc</i>
324</pre>
325
326<p> 355</p>
356
357<p>
327Now continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo 358Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
328Installation Files</uri>. 359Installation Files</uri>.
329</p> 360</p>
330 361
331</body> 362</body>
332</section> 363</section>

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

  ViewVC Help
Powered by ViewVC 1.1.20