| … | |
… | |
| 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.39 2004/08/01 11:20:51 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.40 2004/08/02 19:29:14 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> |
| … | |
… | |
| 88 | /dev/hda1 /boot ext2 defaults 1 2 |
88 | /dev/hda1 /boot ext2 defaults 1 2 |
| 89 | </pre> |
89 | </pre> |
| 90 | |
90 | |
| 91 | <p> |
91 | <p> |
| 92 | Some users don't want their <path>/boot</path> partition to be mounted |
92 | Some users don't want their <path>/boot</path> partition to be mounted |
| 93 | automatically. Those people should substitute <c>defaults</c> with |
93 | automatically to improve their system's security. Those people should |
| 94 | <c>noauto</c>. This does mean that you need to manually mount this partition |
94 | substitute <c>defaults</c> with <c>noauto</c>. This does mean that you need to |
| 95 | every time you want to use it. |
95 | manually mount this partition every time you want to use it. |
| 96 | </p> |
96 | </p> |
| 97 | |
97 | |
| 98 | <p> |
98 | <p> |
| 99 | Now, to improve performance, most users would want to add the <c>noatime</c> |
99 | Now, to improve performance, most users would want to add the <c>noatime</c> |
| 100 | option as mountoption, which results in a faster system since access times |
100 | option as mountoption, which results in a faster system since access times |
| 101 | aren't registered (you don't need those generally anyway): |
101 | aren't registered (you don't need those generally anyway): |
| 102 | </p> |
102 | </p> |
| 103 | |
103 | |
| 104 | <pre caption="An improved /boot line for /etc/fstab"> |
104 | <pre caption="An improved /boot line for /etc/fstab"> |
| 105 | /dev/hda1 /boot ext2 noauto,noatime 1 2 |
105 | /dev/hda1 /boot ext2 defaults,noatime 1 2 |
| 106 | </pre> |
106 | </pre> |
| 107 | |
107 | |
| 108 | <p> |
108 | <p> |
| 109 | If we continue with this, we would end up with the following three lines (for |
109 | If we continue with this, we would end up with the following three lines (for |
| 110 | <path>/boot</path>, <path>/</path> and the swap partition): |
110 | <path>/boot</path>, <path>/</path> and the swap partition): |
| 111 | </p> |
111 | </p> |
| 112 | |
112 | |
| 113 | <pre caption="Three /etc/fstab lines"> |
113 | <pre caption="Three /etc/fstab lines"> |
| 114 | /dev/hda1 /boot ext2 noauto,noatime 1 2 |
114 | /dev/hda1 /boot ext2 defaults,noatime 1 2 |
| 115 | /dev/hda2 none swap sw 0 0 |
115 | /dev/hda2 none swap sw 0 0 |
| 116 | /dev/hda3 / ext3 noatime 0 1 |
116 | /dev/hda3 / ext3 noatime 0 1 |
| 117 | </pre> |
117 | </pre> |
| 118 | |
118 | |
| 119 | <p> |
119 | <p> |
| … | |
… | |
| 121 | (required) and for your CD-ROM drive (and of course, if you have other |
121 | (required) and for your CD-ROM drive (and of course, if you have other |
| 122 | partitions or drives, for those too): |
122 | partitions or drives, for those too): |
| 123 | </p> |
123 | </p> |
| 124 | |
124 | |
| 125 | <pre caption="A full /etc/fstab example"> |
125 | <pre caption="A full /etc/fstab example"> |
| 126 | /dev/hda1 /boot ext2 noauto,noatime 1 2 |
126 | /dev/hda1 /boot ext2 defaults,noatime 1 2 |
| 127 | /dev/hda2 none swap sw 0 0 |
127 | /dev/hda2 none swap sw 0 0 |
| 128 | /dev/hda3 / ext3 noatime 0 1 |
128 | /dev/hda3 / ext3 noatime 0 1 |
| 129 | |
129 | |
| 130 | none /proc proc defaults 0 0 |
130 | none /proc proc defaults 0 0 |
| 131 | none /dev/shm tmpfs defaults 0 0 |
131 | none /dev/shm tmpfs defaults 0 0 |