以前在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
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
相关专题
- 拿刀砍才能进freebsd系统的修复方法 (311次浏览)
- FreeBSD下构建安全的Web服务器 (122次浏览)
- FreeBSD 5内核源代码分析之系统调用过程 (108次浏览)
- freebsd5.0kde中文界面设置 (85次浏览)
- FreeBSD Qmail安装Howto (81次浏览)
- FreeBSD handbook中文版 10 安全 (77次浏览)
- FreeBSD的Loader和内核初始化 (68次浏览)
- freebsd mount挂载iso (66次浏览)



