LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 751|回复: 0

fc6下挂载windsows分区后,windows分区的文件名字乱码,哪位能知道一下

[复制链接]
发表于 2006-10-31 15:39:06 | 显示全部楼层 |阅读模式
我的系统是FC6,因为不想用UTF8,所以自己修改了一下/etc/sysconfig/i18n文件,内容如下:
LANG="zh_CN.GB2312"

原来的i18n文件内容是:LANG="zh_CN.UTF-8"

我想用autofs服务,所以修改了auto.misc文件,内容如下:
#
# $Id: auto.misc,v 1.2 2003/09/29 08:22:35 raven Exp $
#
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

cd              -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
#win_d           -fstype=auto,iocharset=utf8     :/dev/hda5
#win_e           -fstype=auto,iocharset=utf8     :/dev/hda6
#win_f           -fstype=auto,iocharset=utf8     :/dev/hda7
#win_g           -fstype=auto,iocharset=utf8     :/dev/hda8
win_h           -fstype=auto,iocharset=gb2312   :/dev/hda9

backup          -fstype=ext3                    :/dev/hda11

# the following entries are samples to pique your imagination
#linux          -ro,soft,intr           ftp.example.org:/pub/linux
#boot           -fstype=ext2            :/dev/hda1
#floppy         -fstype=auto            :/dev/fd0
#floppy         -fstype=ext2            :/dev/fd0
#e2floppy       -fstype=ext2            :/dev/fd0
#jaz            -fstype=ext2            :/dev/sdc1
#removable      -fstype=ext2            :/dev/hdd
~                                                                                                              
~                                                           

但是重新启动autofs服务后,在/misc目录中的windows分区的中文目录名称都是乱码。我曾试图用手动挂载方式: mount -o iocharset=cp936 /dev/hda9 /mnt  
结果还是乱码。
我不想用UTF8,哪位能指导小弟一下,在LANG="zh_CN.GB2312"的情况下,如何挂载windows分区不出现乱码。
谢谢了!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表