- Timestamp:
- 05/16/2018 08:54:19 PM (6 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, 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:
- 9901037e
- Parents:
- 3cb1f96
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/fstab.xml
r3cb1f96 rf7cf1fb 57 57 fields in this file, see <command>man 5 fstab</command>.</para> 58 58 59 <para>Filesystems with MS-DOS or Windows origin (i.e.: vfat, ntfs, smbfs, cifs, 60 iso9660, udf) need the <quote>iocharset</quote> mount option in order for 61 non-ASCII characters in file names to be interpreted properly. The value 62 of this option should be the same as the character set of your locale, 63 adjusted in such a way that the kernel understands it. This works if the 64 relevant character set definition (found under File systems -> 65 Native Language Support) has been compiled into the kernel 66 or built as a module. The <quote>codepage</quote> option is also needed for 67 vfat and smbfs filesystems. It should be set to the codepage number used 68 under MS-DOS in your country. E.g., in order to mount USB flash drives, a 69 ru_RU.KOI8-R user would need the following in the options portion of its 70 mount line in <filename>/etc/fstab</filename>:</para> 59 <para>Filesystems with MS-DOS or Windows origin (i.e. vfat, ntfs, smbfs, 60 cifs, iso9660, udf) need a special option, utf8, in order for non-ASCII 61 characters in file names to be interpreted properly. For non-UTF-8 locales, 62 the value of <option>iocharset</option> should be set to be the same as the 63 character set of the locale, adjusted in such a way that the kernel 64 understands it. This works if the relevant character set definition (found 65 under File systems -> Native Language Support when configuring the kernel) 66 has been compiled into the kernel or built as a module. However, if the 67 character set of the locale is UTF-8, the corresponding option 68 <option>iocharset=utf8</option> would make the file system case sensitive. To 69 fix this, use the special option <option>utf8</option> instead of 70 <option>iocharset=utf8</option>, for UTF-8 locales. The 71 <quote>codepage</quote> option is also needed for vfat and smbfs filesystems. 72 It should be set to the codepage number used under MS-DOS in your country. 73 For example, in order to mount USB flash drives, a ru_RU.KOI8-R user would 74 need the following in the options portion of its mount line in 75 <filename>/etc/fstab</filename>:</para> 71 76 72 <screen><literal>noauto,user,quiet,showexec, iocharset=koi8r,codepage=866</literal></screen>77 <screen><literal>noauto,user,quiet,showexec,codepage=866,iocharset=koi8r</literal></screen> 73 78 74 79 <para>The corresponding options fragment for ru_RU.UTF-8 users is:</para> 75 80 76 <screen><literal>noauto,user,quiet,showexec, iocharset=utf8,codepage=866</literal></screen>81 <screen><literal>noauto,user,quiet,showexec,codepage=866,utf8</literal></screen> 77 82 78 <note> 83 <para>Note that using <option>iocharset</option> is the default for 84 <literal>iso8859-1</literal> (which keeps the file system case 85 insensitive), and the <option>utf8</option> option tells 86 the kernel to convert the file names using UTF-8 so they can be 87 interpreted in the UTF-8 locale.</para> 88 89 <!--note> 79 90 <para>In the latter case, the kernel emits the following message:</para> 80 91 … … 85 96 of the <quote>iocharset</quote> option result in wrong display of filenames in 86 97 UTF-8 locales.</para> 87 </note >98 </note--> 88 99 89 100 <para>It is also possible to specify default codepage and iocharset values for
Note:
See TracChangeset
for help on using the changeset viewer.