/[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.44 Revision 1.45
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.44 2004/08/29 11:38:12 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.45 2004/08/30 17:44:00 neysx 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
20(special options) and when (automatically or not, can users mount those or not, 20and with what special options (automatically or not, whether users can mount
21etc.). 21them or not, etc.)
22</p> 22</p>
23 23
24</body> 24</body>
25</subsection> 25</subsection>
26<subsection> 26<subsection>
27<title>Creating /etc/fstab</title> 27<title>Creating /etc/fstab</title>
28<body> 28<body>
29 29
30<p> 30<p>
31<path>/etc/fstab</path> uses a special syntax. Every line consists of six 31<path>/etc/fstab</path> uses a special syntax. Every line consists of six
32fields, separated by whitespace (space(s), tabs or a mixture). Each field has 32fields, separated by whitespace (space(s), tabs or a mixture). Each field has
33its own meaning: 33its own meaning:
34</p> 34</p>
35 35
36<ul> 36<ul>
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 manpage (<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> in case 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>
67The default <path>/etc/fstab</path> file provided by Gentoo <e>is no valid fstab 67The default <path>/etc/fstab</path> file provided by Gentoo <e>is no valid fstab
68file</e>, so start <c>nano</c> (or your favorite editor) to create your 68file</e>, so start <c>nano</c> (or your favorite editor) to create your
69<path>/etc/fstab</path>: 69<path>/etc/fstab</path>:
70</p> 70</p>
71 71
72<pre caption="Opening /etc/fstab"> 72<pre caption="Opening /etc/fstab">
73# <i>nano -w /etc/fstab</i> 73# <i>nano -w /etc/fstab</i>
74</pre> 74</pre>
75 75
76<p> 76<p>
77Let us take a look at how we write down the options for the <path>/boot</path> 77Let us take a look at how we write down the options for the <path>/boot</path>
291like <c>iface_eth1</c>, <c>iface_eth2</c> etc. The <c>gateway</c> variable 291like <c>iface_eth1</c>, <c>iface_eth2</c> etc. The <c>gateway</c> variable
292shouldn't be reproduced as you can only set one gateway per computer. 292shouldn't be reproduced as you can only set one gateway per computer.
293</p> 293</p>
294 294
295<p> 295<p>
296Now save the configuration and exit to continue. 296Now save the configuration and exit to continue.
297</p> 297</p>
298 298
299</body> 299</body>
300</subsection> 300</subsection>
301<subsection> 301<subsection>
302<title>Automatically Start Networking at Boot</title> 302<title>Automatically Start Networking at Boot</title>
303<body> 303<body>
304 304
305<p> 305<p>
306To have your network interfaces activated at boot, you need to add those to the 306To have your network interfaces activated at boot, you need to add them to the
307default runlevel. If you have PCMCIA interfaces you should skip this action as 307default runlevel. If you have PCMCIA interfaces you should skip this action as
308the PCMCIA interfaces are started by the PCMCIA init script. 308the PCMCIA interfaces are started by the PCMCIA init script.
309</p> 309</p>
310 310
311<pre caption="Adding net.eth0 to the default runlevel"> 311<pre caption="Adding net.eth0 to the default runlevel">
312# <i>rc-update add net.eth0 default</i> 312# <i>rc-update add net.eth0 default</i>
313</pre> 313</pre>
314 314
315<p> 315<p>
316If you have several network interfaces, you need to create the appropriate 316If you have several network interfaces, you need to create the appropriate
317<path>net.eth1</path>, <path>net.eth2</path> etc. initscripts for those. You can 317<path>net.eth1</path>, <path>net.eth2</path> etc. initscripts for those. You can
318use <c>ln</c> to do this: 318use <c>ln</c> to do this:
319</p> 319</p>
320 320
321<pre caption="Creating extra initscripts"> 321<pre caption="Creating extra initscripts">

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

  ViewVC Help
Powered by ViewVC 1.1.20