/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-config.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-config.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.46 Revision 1.47
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.46 2004/09/11 13:34:53 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.47 2004/10/16 20:20:25 vapier 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>
17Under Linux, all partitions used by the system must be listed in 17Under 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
20and with what special options (automatically or not, whether users can mount 20and with what special options (automatically or not, whether users can mount
21them or not, etc.) 21them or not, etc.)
22</p> 22</p>
112</p> 112</p>
113 113
114<pre caption="Three /etc/fstab lines"> 114<pre caption="Three /etc/fstab lines">
115/dev/hda1 /boot ext2 defaults,noatime 1 2 115/dev/hda1 /boot ext2 defaults,noatime 1 2
116/dev/hda2 none swap sw 0 0 116/dev/hda2 none swap sw 0 0
117/dev/hda3 / ext3 noatime 0 1 117/dev/hda3 / ext3 noatime 0 1
118</pre> 118</pre>
119 119
120<p> 120<p>
121To finish up, you should add a rule for <path>/proc</path>, <c>tmpfs</c> 121To finish up, you should add a rule for <path>/proc</path>, <c>tmpfs</c>
122(required) and for your CD-ROM drive (and of course, if you have other 122(required) and for your CD-ROM drive (and of course, if you have other
123partitions or drives, for those too): 123partitions or drives, for those too):
124</p> 124</p>
125 125
126<pre caption="A full /etc/fstab example"> 126<pre caption="A full /etc/fstab example">
127/dev/hda1 /boot ext2 noauto,noatime 1 2 127/dev/hda1 /boot ext2 noauto,noatime 1 2
128/dev/hda2 none swap sw 0 0 128/dev/hda2 none swap sw 0 0
129/dev/hda3 / ext3 noatime 0 1 129/dev/hda3 / ext3 noatime 0 1
130 130
131none /proc proc defaults 0 0 131none /proc proc defaults 0 0
132none /dev/shm tmpfs defaults 0 0 132none /dev/shm tmpfs nodev,nosuid,noexec 0 0
133 133
134/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0 134/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
135</pre> 135</pre>
136 136
137<p> 137<p>
138<c>auto</c> makes <c>mount</c> guess for the filesystem (recommended for 138<c>auto</c> makes <c>mount</c> guess for the filesystem (recommended for
139removable media as they can be created with one of many filesystems) and 139removable media as they can be created with one of many filesystems) and
140<c>user</c> makes it possible for non-root users to mount the CD. 140<c>user</c> makes it possible for non-root users to mount the CD.
141</p> 141</p>
142 142
143<p> 143<p>
144Now use the above example to create your <path>/etc/fstab</path>. If you are a 144Now use the above example to create your <path>/etc/fstab</path>. If you are a
145<b>SPARC</b>-user, you should add the following line to your 145<b>SPARC</b>-user, you should add the following line to your
146<path>/etc/fstab</path> 146<path>/etc/fstab</path>
147too: 147too:

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

  ViewVC Help
Powered by ViewVC 1.1.20