來源:互聯網
上載者:User
關鍵字
policy
device
亂碼
中文名
u盤
如果local為zh_CN. UTF-8是沒有任何中文問題的,如果local為其它例如為zh_CN/zh_CN. GBK則有兩種辦法,請依照情況選擇一種方法處理
一:修改local為zh_CN. UTF-8
設置本地local環境:
$sudo dpkg-reconfigure locales
確保 zh_CN. UTF-8 被選擇,同時也預設local為 zh_CN. UTF-8
二:修改/usr/share/hal/fdi/95userpolicy/storage-policy.fdi 檔為以下內容:
<?xml version="1.0" encoding="ISO-8859-1"?> <!– -*- SGML -*- –>
<deviceinfo version="0.2">
<device>
<match key="@block.storage_device:storage.removable" bool="true">
<merge key="volume.policy.mount_option.fmask=111" type="bool">true</merge>
<merge key="volume.policy.mount_option.dmask=0" type="bool">true</merge>
<merge key=" volume.policy.mount_option.users" type="bool">true</merge>
<merge key="volume.policy.mount_ option.utf8" type="bool">true</merge>
</match>
<match key="@block.storage_device: storage.hotpluggable" bool="true">
<merge key="volume.policy.mount_option.fmask=111" type="bool">true </merge>
<merge key="volume.policy.mount_option.dmask=0" type="bool">true</merge>
< merge key="volume.policy.mount_option.users" type="bool">true</merge>
<merge key=" volume.policy.mount_option.utf8" type="bool">true</merge>
</match>
</device>
< /deviceinfo>