服务器 频道

有关mount时的中文问题

    【IT168 服务器学院】以前在FreeBSD的ports中出现过一个东东叫gbfs,提供了msdos和cdfs的gb支持。我很喜欢用它,在FreeBSD 5.x中为ntfs、smbfs以及msdosfs和cd9660都提供了-C、-L等参数。使用这些参数可以指定fs的字符集。这次装的是4.9,本想接着装gbfs,却发现4.9中也开始提供mount时字符集指定的参数了。

    MORE...
    首先来看看mount_msdos:
    -L locale
    Specify locale name used for internal uppercase and lowercase conversions for DOS and Win''95 names. By default ISO 8859-1 assumed as local character set.

    再来看看mount_smbfs:
    -L locale
    Use locale for lower/upper case conversion routines. Set the locale for case conversion. By default, mount_smbfs tries to use an environment variable LC_* to determine it.

    另,在mount_cd9660、mount_ntfs中还没有直接mount时中文支持的参数。 :(

    写到fstab中的方法如下:
    /dev/ad0s5 /mnt/win msdos rw,-L=zh_CN.GBK,noauto 0 0


 

0
相关文章