| … | |
… | |
| 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-config.xml,v 1.115 2012/04/29 16:52:20 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.116 2012/10/06 20:16:10 swift Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <abstract> |
11 | <abstract> |
| 12 | You need to edit some important configuration files. In this chapter |
12 | You need to edit some important configuration files. In this chapter |
| 13 | you receive an overview of these files and an explanation on how to |
13 | you receive an overview of these files and an explanation on how to |
| 14 | proceed. |
14 | proceed. |
| 15 | </abstract> |
15 | </abstract> |
| 16 | |
16 | |
| 17 | <version>21</version> |
17 | <version>22</version> |
| 18 | <date>2012-04-29</date> |
18 | <date>2012-10-06</date> |
| 19 | |
19 | |
| 20 | <section> |
20 | <section> |
| 21 | <title>Filesystem Information</title> |
21 | <title>Filesystem Information</title> |
| 22 | <subsection> |
22 | <subsection> |
| 23 | <title>What is fstab?</title> |
23 | <title>What is fstab?</title> |
| … | |
… | |
| 96 | usually the <path><keyval id="/boot"/></path> partition, with <c>ext2</c> as |
96 | usually the <path><keyval id="/boot"/></path> partition, with <c>ext2</c> as |
| 97 | filesystem. It needs to be checked during boot, so we would write down: |
97 | filesystem. It needs to be checked during boot, so we would write down: |
| 98 | </p> |
98 | </p> |
| 99 | |
99 | |
| 100 | <pre caption="An example /boot line for /etc/fstab"> |
100 | <pre caption="An example /boot line for /etc/fstab"> |
| 101 | <keyval id="/boot"/> /boot ext2 defaults 1 2 |
101 | <keyval id="/boot"/> /boot ext2 defaults 0 2 |
| 102 | </pre> |
102 | </pre> |
| 103 | |
103 | |
| 104 | <p> |
104 | <p> |
| 105 | Some users don't want their <path>/boot</path> partition to be mounted |
105 | Some users don't want their <path>/boot</path> partition to be mounted |
| 106 | automatically to improve their system's security. Those people should |
106 | automatically to improve their system's security. Those people should |
| … | |
… | |
| 120 | <p> |
120 | <p> |
| 121 | Now use the <e>example</e> below to create your <path>/etc/fstab</path>: |
121 | Now use the <e>example</e> below to create your <path>/etc/fstab</path>: |
| 122 | </p> |
122 | </p> |
| 123 | |
123 | |
| 124 | <pre caption="A full /etc/fstab example" test="func:keyval('arch')='HPPA'"> |
124 | <pre caption="A full /etc/fstab example" test="func:keyval('arch')='HPPA'"> |
| 125 | <keyval id="/boot"/> /boot ext2 defaults,noatime 1 2 |
125 | <keyval id="/boot"/> /boot ext2 defaults,noatime 0 2 |
| 126 | /dev/sda3 none swap sw 0 0 |
126 | /dev/sda3 none swap sw 0 0 |
| 127 | /dev/sda4 / ext3 noatime 0 1 |
127 | /dev/sda4 / ext3 noatime 0 1 |
| 128 | |
128 | |
| 129 | /dev/cdrom /mnt/cdrom auto noauto,user 0 0 |
129 | /dev/cdrom /mnt/cdrom auto noauto,user 0 0 |
| 130 | </pre> |
130 | </pre> |
| 131 | |
131 | |
| 132 | <pre caption="A full /etc/fstab example" test="func:keyval('arch')='Alpha' or func:keyval('arch')='MIPS' or func:keyval('arch')='x86' or func:keyval('arch')='AMD64'"> |
132 | <pre caption="A full /etc/fstab example" test="func:keyval('arch')='Alpha' or func:keyval('arch')='MIPS' or func:keyval('arch')='x86' or func:keyval('arch')='AMD64'"> |
| 133 | <keyval id="/boot"/> /boot ext2 defaults,noatime 1 2 |
133 | <keyval id="/boot"/> /boot ext2 defaults,noatime 0 2 |
| 134 | /dev/sda2 none swap sw 0 0 |
134 | /dev/sda2 none swap sw 0 0 |
| 135 | /dev/sda3 / ext3 noatime 0 1 |
135 | /dev/sda3 / ext3 noatime 0 1 |
| 136 | |
136 | |
| 137 | /dev/cdrom /mnt/cdrom auto noauto,user 0 0 |
137 | /dev/cdrom /mnt/cdrom auto noauto,user 0 0 |
| 138 | </pre> |
138 | </pre> |