[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[7f8e546a] | 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 |
|
---|
[83cca617] | 7 | <!ENTITY dosfstools-download-http "https://github.com/dosfstools/dosfstools/releases/download/v&dosfstools-version;/dosfstools-&dosfstools-version;.tar.gz">
|
---|
[7f8e546a] | 8 | <!ENTITY dosfstools-download-ftp " ">
|
---|
[83cca617] | 9 | <!ENTITY dosfstools-md5sum "49c8e457327dc61efab5b115a27b087a">
|
---|
| 10 | <!ENTITY dosfstools-size "314 KB">
|
---|
[a9779b9] | 11 | <!ENTITY dosfstools-buildsize "4.5 MB (with tests)">
|
---|
[7f8e546a] | 12 | <!ENTITY dosfstools-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="dosfstools" xreflabel="dosfstools-&dosfstools-version;">
|
---|
| 16 | <?dbhtml filename="dosfstools.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>dosfstools-&dosfstools-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="dosfstools">
|
---|
| 22 | <primary sortas="a-dosfstools">dosfstools</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to dosfstools</title>
|
---|
| 27 |
|
---|
[29244b7] | 28 | <para>
|
---|
| 29 | The <application>dosfstools</application> package contains various
|
---|
| 30 | utilities for use with the FAT family of file systems.
|
---|
| 31 | </para>
|
---|
[7f8e546a] | 32 |
|
---|
[4c0efc3c] | 33 | &lfs122_checked;
|
---|
[7f8e546a] | 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
[29244b7] | 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&dosfstools-download-http;"/>
|
---|
| 40 | </para>
|
---|
[7f8e546a] | 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
[29244b7] | 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&dosfstools-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
[7f8e546a] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[29244b7] | 48 | <para>
|
---|
| 49 | Download MD5 sum: &dosfstools-md5sum;
|
---|
| 50 | </para>
|
---|
[7f8e546a] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[29244b7] | 53 | <para>
|
---|
| 54 | Download size: &dosfstools-size;
|
---|
| 55 | </para>
|
---|
[7f8e546a] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[29244b7] | 58 | <para>
|
---|
| 59 | Estimated disk space required: &dosfstools-buildsize;
|
---|
| 60 | </para>
|
---|
[7f8e546a] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[29244b7] | 63 | <para>
|
---|
| 64 | Estimated build time: &dosfstools-time;
|
---|
| 65 | </para>
|
---|
[7f8e546a] | 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
| 69 |
|
---|
| 70 | </sect2>
|
---|
| 71 |
|
---|
| 72 | <sect2 role="kernel" id='dosfstools-kernel'>
|
---|
| 73 | <title>Kernel Configuration</title>
|
---|
| 74 |
|
---|
[29244b7] | 75 | <para>
|
---|
| 76 | Enable the following option in the kernel configuration
|
---|
[2d9bcc8] | 77 | and recompile the kernel if you need to mount a FAT-family filesystem:
|
---|
[29244b7] | 78 | </para>
|
---|
[7f8e546a] | 79 |
|
---|
[2d9bcc8] | 80 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 81 | href="dosfstools-kernel.xml"/>
|
---|
| 82 |
|
---|
| 83 | <para>
|
---|
[ebf46bd4] | 84 | Note that <option>CONFIG_MSDOS_FS</option> deliberately does not
|
---|
| 85 | support long file names. <option>CONFIG_VFAT_FS</option> should be
|
---|
| 86 | used instead unless you really want to enforce the DOS-style
|
---|
[2d9bcc8] | 87 | <quote>8.3</quote> file names.
|
---|
| 88 | </para>
|
---|
| 89 |
|
---|
| 90 | <para>
|
---|
| 91 | You can mount a FAT-family filesystem once the kernel supports it.
|
---|
| 92 | If you don't need to create, check, or relabel a FAT-family system,
|
---|
| 93 | you may skip this package.
|
---|
| 94 | </para>
|
---|
[7f8e546a] | 95 |
|
---|
| 96 | <indexterm zone="dosfstools dosfstools-kernel">
|
---|
[2d9bcc8] | 97 | <primary sortas="d-fat">FAT Support in Kernel</primary>
|
---|
[7f8e546a] | 98 | </indexterm>
|
---|
| 99 |
|
---|
| 100 | </sect2>
|
---|
| 101 |
|
---|
| 102 | <sect2 role="installation">
|
---|
| 103 | <title>Installation of dosfstools</title>
|
---|
| 104 |
|
---|
[29244b7] | 105 | <para>
|
---|
| 106 | Install <application>dosfstools</application> by running the
|
---|
| 107 | following commands:
|
---|
| 108 | </para>
|
---|
[7f8e546a] | 109 |
|
---|
[cd73bb8] | 110 | <screen><userinput>./configure --prefix=/usr \
|
---|
[7f8e546a] | 111 | --enable-compat-symlinks \
|
---|
| 112 | --mandir=/usr/share/man \
|
---|
| 113 | --docdir=/usr/share/doc/dosfstools-&dosfstools-version; &&
|
---|
| 114 | make</userinput></screen>
|
---|
| 115 |
|
---|
[29244b7] | 116 | <para>
|
---|
[cfde9651] | 117 | To test the results, issue: <command>make check</command>.
|
---|
[29244b7] | 118 | </para>
|
---|
[7f8e546a] | 119 |
|
---|
[29244b7] | 120 | <para>
|
---|
| 121 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 122 | </para>
|
---|
[7f8e546a] | 123 |
|
---|
| 124 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 125 |
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
| 128 | <sect2 role="commands">
|
---|
| 129 | <title>Command Explanations</title>
|
---|
| 130 |
|
---|
| 131 | <para>
|
---|
| 132 | <parameter>--enable-compat-symlinks</parameter>: This switch creates the
|
---|
| 133 | <application>dosfsck</application>,
|
---|
| 134 | <application>dosfslabel</application>,
|
---|
| 135 | <application>fsck.msdos</application>,
|
---|
| 136 | <application>fsck.vfat</application>,
|
---|
| 137 | <application>mkdosfs</application>,
|
---|
| 138 | <application>mkfs.msdos</application>, and
|
---|
| 139 | <application>mkfs.vfat</application> symlinks required by some programs.
|
---|
| 140 | </para>
|
---|
| 141 |
|
---|
| 142 | </sect2>
|
---|
| 143 |
|
---|
| 144 | <sect2 role="content">
|
---|
| 145 | <title>Contents</title>
|
---|
| 146 |
|
---|
| 147 | <segmentedlist>
|
---|
| 148 | <segtitle>Installed Programs</segtitle>
|
---|
| 149 |
|
---|
| 150 | <seglistitem>
|
---|
| 151 | <seg>fatlabel, fsck.fat, and mkfs.fat</seg>
|
---|
| 152 | </seglistitem>
|
---|
| 153 | </segmentedlist>
|
---|
| 154 |
|
---|
| 155 | <variablelist>
|
---|
| 156 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 157 | <?dbfo list-presentation="list"?>
|
---|
| 158 | <?dbhtml list-presentation="table"?>
|
---|
| 159 |
|
---|
| 160 | <varlistentry id="fatlabel">
|
---|
| 161 | <term><command>fatlabel</command></term>
|
---|
| 162 | <listitem>
|
---|
[29244b7] | 163 | <para>
|
---|
[4c24eb0a] | 164 | sets or gets a MS-DOS filesystem label from a given device
|
---|
[29244b7] | 165 | </para>
|
---|
[7f8e546a] | 166 | <indexterm zone="dosfstools fatlabel">
|
---|
| 167 | <primary sortas="b-fatlabel">fatlabel</primary>
|
---|
| 168 | </indexterm>
|
---|
| 169 | </listitem>
|
---|
| 170 | </varlistentry>
|
---|
| 171 |
|
---|
| 172 | <varlistentry id="fsckfat">
|
---|
| 173 | <term><command>fsck.fat</command></term>
|
---|
| 174 | <listitem>
|
---|
[29244b7] | 175 | <para>
|
---|
[4c24eb0a] | 176 | checks and repairs MS-DOS filesystems
|
---|
[29244b7] | 177 | </para>
|
---|
[7f8e546a] | 178 | <indexterm zone="dosfstools fsckfat">
|
---|
| 179 | <primary sortas="b-fsckfat">fsck.fat</primary>
|
---|
| 180 | </indexterm>
|
---|
| 181 | </listitem>
|
---|
| 182 | </varlistentry>
|
---|
| 183 |
|
---|
| 184 | <varlistentry id="mkfsfat">
|
---|
| 185 | <term><command>mkfs.fat</command></term>
|
---|
| 186 | <listitem>
|
---|
[29244b7] | 187 | <para>
|
---|
[4c24eb0a] | 188 | creates an MS-DOS filesystem under Linux
|
---|
[29244b7] | 189 | </para>
|
---|
[7f8e546a] | 190 | <indexterm zone="dosfstools mkfsfat">
|
---|
| 191 | <primary sortas="b-mkfsfat">mkfs.fat</primary>
|
---|
| 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
| 195 |
|
---|
| 196 | </variablelist>
|
---|
| 197 |
|
---|
| 198 | </sect2>
|
---|
| 199 |
|
---|
| 200 | </sect1>
|
---|