| 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/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-config.xml,v 1.48 2004/10/23 11:02:06 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.49 2004/10/23 11:04:27 swift Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | <section> |
10 | <section> |
| 11 | <title>Filesystem Information</title> |
11 | <title>Filesystem Information</title> |
| 12 | <subsection> |
12 | <subsection> |
| 13 | <title>What is fstab?</title> |
13 | <title>What is fstab?</title> |
| 14 | <body> |
14 | <body> |
| 15 | |
15 | |
| 16 | <p> |
16 | <p> |
| 17 | Under Linux, all partitions used by the system must be listed in |
17 | Under Linux, all partitions used by the system must be listed in |
| 18 | <path>/etc/fstab</path>. This file contains the mountpoints of those partitions |
18 | <path>/etc/fstab</path>. This file contains the mountpoints of those partitions |
| 19 | (where they are seen in the file system structure), how they should be mounted |
19 | (where they are seen in the file system structure), how they should be mounted |
| 20 | and with what special options (automatically or not, whether users can mount |
20 | and with what special options (automatically or not, whether users can mount |
| 21 | them or not, etc.) |
21 | them or not, etc.) |
| 22 | </p> |
22 | </p> |
| … | |
… | |
| 36 | <ul> |
36 | <ul> |
| 37 | <li> |
37 | <li> |
| 38 | The first field shows the <b>partition</b> described (the path to the device |
38 | The first field shows the <b>partition</b> described (the path to the device |
| 39 | file) |
39 | file) |
| 40 | </li> |
40 | </li> |
| 41 | <li> |
41 | <li> |
| 42 | The second field shows the <b>mountpoint</b> at which the partition should be |
42 | The second field shows the <b>mountpoint</b> at which the partition should be |
| 43 | mounted |
43 | mounted |
| 44 | </li> |
44 | </li> |
| 45 | <li> |
45 | <li> |
| 46 | The third field shows the <b>filesystem</b> used by the partition |
46 | The third field shows the <b>filesystem</b> used by the partition |
| 47 | </li> |
47 | </li> |
| 48 | <li> |
48 | <li> |
| 49 | The fourth field shows the <b>mountoptions</b> used by <c>mount</c> when it |
49 | The fourth field shows the <b>mountoptions</b> used by <c>mount</c> when it |
| 50 | wants to mount the partition. As every filesystem has its own mountoptions, |
50 | wants to mount the partition. As every filesystem has its own mountoptions, |
| 51 | you are encouraged to read the mount manpage (<c>man mount</c>) for a full |
51 | you are encouraged to read the mount man page (<c>man mount</c>) for a full |
| 52 | listing. Multiple mountoptions are comma-separated. |
52 | listing. Multiple mountoptions are comma-separated. |
| 53 | </li> |
53 | </li> |
| 54 | <li> |
54 | <li> |
| 55 | The fifth field is used by <c>dump</c> to determine if the partition needs to |
55 | The fifth field is used by <c>dump</c> to determine if the partition needs to |
| 56 | be <b>dump</b>ed or not. You can generally leave this as <c>0</c> (zero). |
56 | be <b>dump</b>ed or not. You can generally leave this as <c>0</c> (zero). |
| 57 | </li> |
57 | </li> |
| 58 | <li> |
58 | <li> |
| 59 | The sixth field is used by <c>fsck</c> to determine the order in which |
59 | The sixth field is used by <c>fsck</c> to determine the order in which |
| 60 | filesystems should be <b>check</b>ed if the system wasn't shut down properly. |
60 | filesystems should be <b>check</b>ed if the system wasn't shut down properly. |
| 61 | The root filesystem should have <c>1</c> while the rest should have <c>2</c> |
61 | The root filesystem should have <c>1</c> while the rest should have <c>2</c> |
| 62 | (or <c>0</c> if a filesystem check isn't necessary). |
62 | (or <c>0</c> if a filesystem check isn't necessary). |
| 63 | </li> |
63 | </li> |
| 64 | </ul> |
64 | </ul> |
| 65 | |
65 | |
| 66 | <p> |
66 | <p> |