1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-boot-fstab">
|
---|
9 | <?dbhtml filename="fstab.html"?>
|
---|
10 |
|
---|
11 | <title>Creating the /etc/fstab File</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-boot-fstab">
|
---|
14 | <primary sortas="e-/etc/fstab">/etc/fstab</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <para os="a">The <filename>/etc/fstab</filename> file is used by some
|
---|
18 | programs to determine where file systems are to be mounted by default,
|
---|
19 | which must be checked, and in which order. Create a new file systems
|
---|
20 | table like this:</para>
|
---|
21 |
|
---|
22 | <screen><userinput>cat > ${CLFS}/etc/fstab << "EOF"
|
---|
23 | <literal># Begin /etc/fstab
|
---|
24 |
|
---|
25 | # file system mount-point type options dump fsck
|
---|
26 | # order
|
---|
27 |
|
---|
28 | /dev/<replaceable>[xxx]</replaceable> / <replaceable>[fff]</replaceable> defaults 1 1
|
---|
29 | /dev/<replaceable>[yyy]</replaceable> swap swap pri=1 0 0
|
---|
30 | devpts /dev/pts devpts gid=&gid-tty;,mode=620 0 0
|
---|
31 | shm /dev/shm tmpfs defaults 0 0
|
---|
32 |
|
---|
33 | # End /etc/fstab</literal>
|
---|
34 | EOF</userinput></screen>
|
---|
35 |
|
---|
36 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
37 | href="../../bootable/common/fstab.xml"
|
---|
38 | xpointer="xpointer(//*[@os='b'])"/>
|
---|
39 |
|
---|
40 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
41 | href="../../bootable/common/fstab.xml"
|
---|
42 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
43 |
|
---|
44 | </sect1>
|
---|