Personal tools
You are here: Home 文档中心 How-tos gnome下自动mount后中文无法显示的解决
Document Actions

gnome下自动mount后中文无法显示的解决

许多U盘和光盘在gnome下自动挂载后无法自动加上utf8参数,使得中文显示为乱码。如下则是解决方法。

在 GNOME 里,自动挂载时用什么参数,是写在 GNOME 的“注册表”gconf 里的,gnome-mount 挂载时会读里面的mount_options。详见 gnome-mount软件包和 man gnome-mount 手册页。

解决方法:

  1. 打开 gconf-editor。
  2. 展开目录树: system/storage/default_options,应该会看到 5 项:

    iso9660, ntfs, ntfs-3g, udf 和 vfat。

  3. 需要关注的可能只有 iso9660、ntfs-3g 和 vfat。 a) iso9660 的 mount_options 可能要追加 iocharset=utf8。

    如: [uid=,iocharset=utf8]

    b) ntfs-3g 的 mount_options 是 [locale=] 即可。这个应该是默认值。 注意等号后不需要添加任何参数,系统会在挂载时自动探测适当的locale 值。

    c) vfat 的 mount_options,追加 utf8,变成

    [shortname=lower,uid=,utf8]

这是因为目前 gnome-mount 0.7 版本只支持 uid= 和 locale= 这两个自动参数,尚未支持 iocharset=,所以暂时得手动添加。希望gnome-mount能在后续版本加入。

by xinli last modified Mar 22, 2008 07:58 AM
Contributors: xinli