source: clfs-embedded/BOOK/bootable/common/fstab.xml@ 7f42027

Last change on this file since 7f42027 was 5846de5, checked in by Andrew Bradford <andrew@…>, 10 years ago

fstab: Just a root line

The bootscripts will take care of all the tmpfs-like file systems.

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[a9e389d]1<?xml version="1.0" encoding="ISO-8859-1"?>
[bd48e48]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[a9e389d]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-bootable-fstab">
9 <?dbhtml filename="fstab.html"?>
10
11 <title>Creating the /etc/fstab File</title>
12
13 <indexterm zone="ch-bootable-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 in which order, and which must be checked (for integrity errors) prior
20 to mounting. Create a new file systems table like this:</para>
21
[790f34e]22<screen><userinput>cat &gt; ${CLFS}/targetfs/etc/fstab &lt;&lt; "EOF"
[5846de5]23<literal># file-system mount-point type options dump fsck
24/dev/<replaceable>[xxx]</replaceable> / <replaceable>[fff]</replaceable> defaults 1 1</literal>
[a9e389d]25EOF</userinput></screen>
26
[5846de5]27 <para os="b">Replace <replaceable>[xxx]</replaceable>
28 and <replaceable>[fff]</replaceable>
[a9e389d]29 with the values appropriate for the system, for example, <filename
[5846de5]30 class="partition">mmcblk0p2</filename>
31 and <systemitem class="filesystem">ext4</systemitem>. For details on the
[a9e389d]32 fields in this file, see <command>man 5 fstab</command>.</para>
33
[5846de5]34 <para>You may also add any other file systems, such as swap or other partitions
35 or network file systems, to this fstab as well.</para>
[a9e389d]36
37</sect1>
Note: See TracBrowser for help on using the repository browser.