ubuntu怎么取消自动挂载
1个回答
2017-11-07
展开全部
执行如下命令:sudo gedit /usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi在如下字段的后面添加需要取消掉自动挂载的windows分区。
<!-- 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>
<!-- Should always ignore Apple Bootstrap partitions (it would be -->
<!-- a security hole to mount it) - TODO: should use the bootable -->
<!-- flag from the Mac partition table instead -->
<!-- ignore winD, winE disk -->
<match key="volume.fstype" string="vfat">
<match key="volume.label" string="winE">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
<match key="volume.fstype" string="vfat">
<match key="volume.label" string="winD">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
<!-- -->
<!-- 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>
<!-- Should always ignore Apple Bootstrap partitions (it would be -->
<!-- a security hole to mount it) - TODO: should use the bootable -->
<!-- flag from the Mac partition table instead -->
<!-- ignore winD, winE disk -->
<match key="volume.fstype" string="vfat">
<match key="volume.label" string="winE">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
<match key="volume.fstype" string="vfat">
<match key="volume.label" string="winD">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</match>
<!-- -->
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询