LinuxSir.cn,穿越时空的Linuxsir!

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

u盘不能用普通用户挂载(已解决)

[复制链接]
发表于 2010-1-18 13:21:49 | 显示全部楼层 |阅读模式
有很长一段时间了,因为不太用u盘,也就没想着费时间去解决。

目前的情况是u盘插上后,在thunar的左侧树会出现u盘的选择节点。但点击该选择节点,会提示如下:

Failed to mount "Removable Volume".

Rejected send message, 1 matched rules; type="method_call", sender=":1.30" (uid=1003 pid=11346 comm="exo-mount) interface="org.freedesktop.Hal.Device.Volume" member="Mount" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=4294 comm="/usr/sbin/hald)).


我用的是xfce桌面。
发表于 2010-1-18 13:28:08 | 显示全部楼层
看一下udev规则文件吧
回复 支持 反对

使用道具 举报

发表于 2010-1-27 14:18:16 | 显示全部楼层
试试看ck-launch-session xfce4-session
回复 支持 反对

使用道具 举报

发表于 2010-1-27 14:19:50 | 显示全部楼层
见我问的这帖,现象和你一样:
http://www.linuxsir.cn/bbs/thread362779.html
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-1-27 16:18:28 | 显示全部楼层
感谢,问题解决了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-3-9 13:32:52 | 显示全部楼层
今天更新xorg之后,又不能挂载u盘了,信息如下:

Rejected send message, 1 matched rules; type="method_call", sender=":1.43" (uid=1003 pid=10414 comm="exo-mount) interface="org.freedesktop.Hal.Device.Volume" member="Mount" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=3971 comm="/usr/sbin/hald)).
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-3-9 13:42:15 | 显示全部楼层
把解决方法写在这里,下次不用再找了。

修改/etc/dbus-1/system.d/hal.conf

<policy context="default">
...
//添加此段
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.Volume"/>
...
</policy>
回复 支持 反对

使用道具 举报

发表于 2010-3-9 13:50:28 | 显示全部楼层
都使用udisks,gio之后就没有这个问题了
回复 支持 反对

使用道具 举报

发表于 2010-3-9 14:41:01 | 显示全部楼层
为什么要改 default 呢?我把用户加入 storage 组,再改。
  1.   <policy group="storage">
  2.     <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
  3.     <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  4.   </policy>
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-3-9 15:55:58 | 显示全部楼层
Post by ch_fb;2074168
为什么要改 default 呢?我把用户加入 storage 组,再改。
  1.   <policy group="storage">
  2.     <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
  3.     <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  4.   </policy>
复制代码


谢谢,你的办法更好。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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