1、將用戶添加到plugdev組中
gpasswd -a USER plugdev (把USER換成你的用戶)
2、修改/usr/share/hal/fdi/policy/10osvendor/99-storage-policy-fixed-drives.fdi爲以下內容(不存在則創建)。
- <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
- <deviceinfo version="0.2">
- <device>
- <match key="@block.storage_device:storage.hotpluggable" bool="false">
- </match>
- <match key="@block.storage_device:storage.removable" bool="false">
- <merge key="storage.automount_enabled_hint" type="bool">false</merge>
- <merge key="volume.ignore" type="bool">false</merge>
- </match>
- </device>
- </deviceinfo>
3、重啓計算機