| 1 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
1 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 2 | <!-- See http://creativecommons.org/licenses/by-sa/1.0 --> |
2 | <!-- See http://creativecommons.org/licenses/by-sa/1.0 --> |
| 3 | |
3 | |
| 4 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.16 2004/01/04 17:33:58 swift Exp $ --> |
4 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.17 2004/01/06 10:08:38 swift Exp $ --> |
| 5 | |
5 | |
| 6 | <sections> |
6 | <sections> |
| 7 | <section> |
7 | <section> |
| 8 | <title>Timezone</title> |
8 | <title>Timezone</title> |
| 9 | <body> |
9 | <body> |
| … | |
… | |
| 41 | <subsection> |
41 | <subsection> |
| 42 | <title>Creating /etc/fstab</title> |
42 | <title>Creating /etc/fstab</title> |
| 43 | <body> |
43 | <body> |
| 44 | |
44 | |
| 45 | <p> |
45 | <p> |
| 46 | <path>/etc/fstab</path> uses a special syntaxis. Every line consists of six |
46 | <path>/etc/fstab</path> uses a special syntax. Every line consists of six |
| 47 | fields, separated by whitespace (space(s), tabs or a mixture). Each field has |
47 | fields, separated by whitespace (space(s), tabs or a mixture). Each field has |
| 48 | its own meaning: |
48 | its own meaning: |
| 49 | </p> |
49 | </p> |
| 50 | |
50 | |
| 51 | <ul> |
51 | <ul> |
| … | |
… | |
| 69 | <li> |
69 | <li> |
| 70 | The fifth field is used by <c>dump</c> to determine if the partition needs to |
70 | The fifth field is used by <c>dump</c> to determine if the partition needs to |
| 71 | be <b>dump</b>ed or not. You can generally leave this as <c>0</c> (zero). |
71 | be <b>dump</b>ed or not. You can generally leave this as <c>0</c> (zero). |
| 72 | </li> |
72 | </li> |
| 73 | <li> |
73 | <li> |
| 74 | The sixth field is used by <c>fsck</c> the order in which filesystems should |
74 | The sixth field is used by <c>fsck</c> to determine the order in which |
| 75 | be <b>check</b>ed if the system wasn't shut down properly. The root filesystem |
75 | filesystems should be <b>check</b>ed if the system wasn't shut down properly. |
| 76 | should have <c>1</c> while the rest should have <c>2</c> (or <c>0</c> in case |
76 | The root filesystem should have <c>1</c> while the rest should have <c>2</c> |
| 77 | a filesystem check isn't necessary). |
77 | (or <c>0</c> in case a filesystem check isn't necessary). |
| 78 | </li> |
78 | </li> |
| 79 | </ul> |
79 | </ul> |
| 80 | |
80 | |
| 81 | <p> |
81 | <p> |
| 82 | So start <c>nano</c> (or your favorite editor) to create your |
82 | So start <c>nano</c> (or your favorite editor) to create your |
| … | |
… | |
| 86 | <pre caption="Opening /etc/fstab"> |
86 | <pre caption="Opening /etc/fstab"> |
| 87 | # <i>nano -w /etc/fstab</i> |
87 | # <i>nano -w /etc/fstab</i> |
| 88 | </pre> |
88 | </pre> |
| 89 | |
89 | |
| 90 | <p> |
90 | <p> |
| 91 | Lets take a look at how we write down the options for the <path>/boot</path> |
91 | Let us take a look at how we write down the options for the <path>/boot</path> |
| 92 | partition. This is just an example, so if your architecture doesn't require a |
92 | partition. This is just an example, so if your architecture doesn't require a |
| 93 | <path>/boot</path> partition, don't copy it verbatim. |
93 | <path>/boot</path> partition, don't copy it verbatim. |
| 94 | </p> |
94 | </p> |
| 95 | |
95 | |
| 96 | <p> |
96 | <p> |
| … | |
… | |
| 264 | link="?part=1&chap=3#doc_chap4_sect3">Understanding Network |
264 | link="?part=1&chap=3#doc_chap4_sect3">Understanding Network |
| 265 | Terminology</uri> if you haven't done so already. |
265 | Terminology</uri> if you haven't done so already. |
| 266 | </p> |
266 | </p> |
| 267 | |
267 | |
| 268 | <p> |
268 | <p> |
| 269 | So lets give two examples; the first one uses DHCP, the second one a static IP |
269 | So let us give two examples; the first one uses DHCP, the second one a static IP |
| 270 | (192.168.0.2) with netmask 255.255.255.0, broadcast 192.168.0.255 and gateway |
270 | (192.168.0.2) with netmask 255.255.255.0, broadcast 192.168.0.255 and gateway |
| 271 | 192.168.0.1: |
271 | 192.168.0.1: |
| 272 | </p> |
272 | </p> |
| 273 | |
273 | |
| 274 | <pre caption="Examples for /etc/conf.d/net"> |
274 | <pre caption="Examples for /etc/conf.d/net"> |