1、Fedora 8 中挂载Windows分区是自动的,其策略是在/usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi文件中。看下面几行:
代码:
<!-- Here follow volumes we specifically want to ignore - it is the -->
<!-- responsibility of software higher in the stack (e.g. gnome-vfs) -->
<!-- amd mount programs (e.g. Mount() on HAL) to respect volume.ignore -->
<merge key="volume.ignore" type="bool">false</merge>
代码:
<!-- Do not mount some Windows partition -->
<match key="volume.fstype" string="ntfs">
<match key="volume.label" string="Win2003">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
2、如果你只是不想让挂载的windows分区在桌面上显示,可以在“配置编辑器”中把/app/nautilus/desktop下的volumes_visible退选掉即可。