Changeset b78c747 for chapter08/fstab.xml
- Timestamp:
- 12/18/2005 01:44:24 PM (18 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- d781ffb
- Parents:
- 7686ca6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/fstab.xml
r7686ca6 rb78c747 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-bootable-fstab"> 7 <title>Creating the /etc/fstab File</title> 8 <?dbhtml filename="fstab.html"?> 9 <?dbhtml filename="fstab.html"?> 9 10 10 <indexterm zone="ch-bootable-fstab"><primary sortas="e-/etc/fstab">/etc/fstab</primary></indexterm>11 <title>Creating the /etc/fstab File</title> 11 12 12 <para>The <filename>/etc/fstab</filename> file is used by some programs to 13 determine where file systems are to be mounted by default, in which order, and 14 which must be checked (for integrity errors) prior to mounting. Create a new 15 file systems table like this:</para> 13 <indexterm zone="ch-bootable-fstab"> 14 <primary sortas="e-/etc/fstab">/etc/fstab</primary> 15 </indexterm> 16 17 <para>The <filename>/etc/fstab</filename> file is used by some programs to 18 determine where file systems are to be mounted by default, in which order, and 19 which must be checked (for integrity errors) prior to mounting. Create a new 20 file systems table like this:</para> 16 21 17 22 <screen><userinput>cat > /etc/fstab << "EOF" … … 30 35 EOF</userinput></screen> 31 36 32 <para>Replace <replaceable>[xxx]</replaceable>,33 <replaceable>[yyy]</replaceable>, and <replaceable>[fff]</replaceable>34 with the values appropriate for the system, for example, <filename35 class="partition">hda2</filename>, <filename36 class="partition">hda5</filename>, and <systemitem37 class="filesystem">ext2</systemitem>. For details on the six38 fields in this file, see <command>man 5 fstab</command>.</para>37 <para>Replace <replaceable>[xxx]</replaceable>, 38 <replaceable>[yyy]</replaceable>, and <replaceable>[fff]</replaceable> 39 with the values appropriate for the system, for example, <filename 40 class="partition">hda2</filename>, <filename 41 class="partition">hda5</filename>, and <systemitem 42 class="filesystem">ext2</systemitem>. For details on the six 43 fields in this file, see <command>man 5 fstab</command>.</para> 39 44 40 <para>The <filename class="directory">/dev/shm</filename> mount point41 for <systemitem class="filesystem">tmpfs</systemitem> is included to42 allow enabling POSIX-shared memory. The kernel must have the required43 support built into it for this to work (more about this is in the next44 section). Please note that very little software currently uses45 POSIX-shared memory. Therefore, consider the <filename46 class="directory">/dev/shm</filename> mount point optional. For more47 information, see48 <filename>Documentation/filesystems/tmpfs.txt</filename> in the kernel49 source tree.</para>45 <para>The <filename class="directory">/dev/shm</filename> mount point 46 for <systemitem class="filesystem">tmpfs</systemitem> is included to 47 allow enabling POSIX-shared memory. The kernel must have the required 48 support built into it for this to work (more about this is in the next 49 section). Please note that very little software currently uses 50 POSIX-shared memory. Therefore, consider the <filename 51 class="directory">/dev/shm</filename> mount point optional. For more 52 information, see 53 <filename>Documentation/filesystems/tmpfs.txt</filename> in the kernel 54 source tree.</para> 50 55 51 <para>There are other lines which may be added to the52 <filename>/etc/fstab</filename> file. One example is a line for USB53 devices:</para>56 <para>There are other lines which may be added to the 57 <filename>/etc/fstab</filename> file. One example is a line for USB 58 devices:</para> 54 59 55 60 <screen>usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0 </screen> 56 61 57 <para>This option will only work if <quote>Support for Host-side USB</quote> and 58 <quote>USB device filesystem</quote> are configured in the kernel. If59 <quote>Support for Host-side USB</quote> is compiled as a module, then60 <filename>usbcore</filename> must be listed in61 <filename>/etc/sysconfig/modules</filename>.</para>62 <para>This option will only work if <quote>Support for Host-side USB</quote> 63 and <quote>USB device filesystem</quote> are configured in the kernel. If 64 <quote>Support for Host-side USB</quote> is compiled as a module, then 65 <filename>usbcore</filename> must be listed in 66 <filename>/etc/sysconfig/modules</filename>.</para> 62 67 63 68 </sect1> 64
Note:
See TracChangeset
for help on using the changeset viewer.