|
想怎么自动挂载U盘,看了hal和autofs的wiki ,有下面的疑惑,HAL说
1:wiki原文"HAL默认设置是用户被拒绝访问如挂载或者卸载卷的接口。下面的策略就是来让'power'和'storage'组用户访问特定设备的:
File: /etc/dbus-1/system.d/hal.conf<policy group="power"> <all……"
也就是说要自动挂在U盘,必须要把当前非root用户,加到某个用户组,然后再在
/etc/dbus-1/system.d/hal.conf里配置,把给这个用户组”权限“?那么挂载,卸载U盘要怎么配置这个hal.conf?
2:wiki原文“HAL对可移动设备开启noatime挂载选项。这可以加速文件操作,同时降低闪存设备如U盘、SD卡的损耗.
File: /etc/hal/fdi/policy/20-noatime-removable.fdi
<device> <match ……”
开启noatime挂载选项是必须的吗?
3:装autofs的步骤是 第一步。 pacman -S autofs 第二步。 modprobe autofs4 第三步。配置/etc/autofs/auto.master 第四步。配置/etc/nsswitch.conf and add an entry for automount” automount: files“,第五步。To start the daemon on boot you can add autofs to the DAEMONS array in /etc/rc.conf, and autofs4 to the modules array in the same file.
这里第四步的/etc/nsswitch.conf怎么配置?wiki说的太简单了( add an entry for automount,直接在/etc/nsswitch.conf末尾插入一句 ”automount: files“就行了吗?),第五步里的在开机时怎么autofs4 to the modules array in the same file, the same file是哪个文件怎么弄啊 |
|