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-config.xml,v 1.74 2005/11/19 09:31:05 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.75 2006/02/27 00:55:34 fox2mike Exp $ --> |
8 | |
8 | |
9 | <sections> |
9 | <sections> |
10 | |
10 | |
11 | <version>2.15</version> |
11 | <version>2.17</version> |
12 | <date>2005-11-19</date> |
12 | <date>2006-02-27</date> |
13 | |
13 | |
14 | <section> |
14 | <section> |
15 | <title>Filesystem Information</title> |
15 | <title>Filesystem Information</title> |
16 | <subsection> |
16 | <subsection> |
17 | <title>What is fstab?</title> |
17 | <title>What is fstab?</title> |
18 | <body> |
18 | <body> |
19 | |
19 | |
20 | <p> |
20 | <p> |
21 | Under Linux, all partitions used by the system must be listed in |
21 | Under Linux, all partitions used by the system must be listed in |
22 | <path>/etc/fstab</path>. This file contains the mountpoints of those partitions |
22 | <path>/etc/fstab</path>. This file contains the mountpoints of those partitions |
23 | (where they are seen in the file system structure), how they should be mounted |
23 | (where they are seen in the file system structure), how they should be mounted |
24 | and with what special options (automatically or not, whether users can mount |
24 | and with what special options (automatically or not, whether users can mount |
25 | them or not, etc.) |
25 | them or not, etc.) |
26 | </p> |
26 | </p> |
27 | |
27 | |
… | |
… | |
68 | </ul> |
68 | </ul> |
69 | |
69 | |
70 | <p> |
70 | <p> |
71 | The default <path>/etc/fstab</path> file provided by Gentoo <e>is no valid fstab |
71 | The default <path>/etc/fstab</path> file provided by Gentoo <e>is no valid fstab |
72 | file</e>, so start <c>nano</c> (or your favorite editor) to create your |
72 | file</e>, so start <c>nano</c> (or your favorite editor) to create your |
73 | <path>/etc/fstab</path>: |
73 | <path>/etc/fstab</path>: |
74 | </p> |
74 | </p> |
75 | |
75 | |
76 | <pre caption="Opening /etc/fstab"> |
76 | <pre caption="Opening /etc/fstab"> |
77 | # <i>nano -w /etc/fstab</i> |
77 | # <i>nano -w /etc/fstab</i> |
78 | </pre> |
78 | </pre> |
79 | |
79 | |
80 | <p> |
80 | <p> |
81 | Let us take a look at how we write down the options for the <path>/boot</path> |
81 | Let us take a look at how we write down the options for the <path>/boot</path> |
82 | partition. This is just an example, so if your architecture doesn't require a |
82 | partition. This is just an example, so if your architecture doesn't require a |
83 | <path>/boot</path> partition (such as <b>PPC</b>), don't copy it verbatim. |
83 | <path>/boot</path> partition (such as Apple <b>PPC</b> machines), don't copy it |
|
|
84 | verbatim. |
84 | </p> |
85 | </p> |
85 | |
86 | |
86 | <p> |
87 | <p> |
87 | In our default x86 partitioning example <path>/boot</path> is the |
88 | In our default x86 partitioning example <path>/boot</path> is the |
88 | <path>/dev/hda1</path> partition, with <c>ext2</c> as filesystem. |
89 | <path>/dev/hda1</path> partition, with <c>ext2</c> as filesystem. |
89 | It needs to be checked during boot, so we would write down: |
90 | It needs to be checked during boot, so we would write down: |
90 | </p> |
91 | </p> |
91 | |
92 | |
92 | <pre caption="An example /boot line for /etc/fstab"> |
93 | <pre caption="An example /boot line for /etc/fstab"> |
93 | /dev/hda1 /boot ext2 defaults 1 2 |
94 | /dev/hda1 /boot ext2 defaults 1 2 |
94 | </pre> |
95 | </pre> |
95 | |
96 | |
96 | <p> |
97 | <p> |
97 | Some users don't want their <path>/boot</path> partition to be mounted |
98 | Some users don't want their <path>/boot</path> partition to be mounted |
98 | automatically to improve their system's security. Those people should |
99 | automatically to improve their system's security. Those people should |