歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Fedora 8 下禁止自動掛載windows分區的方法

Fedora 8 下禁止自動掛載windows分區的方法

日期:2017/2/28 17:08:45   编辑:Linux教程
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>
後面定義了一些不自動掛載的分區類型及具體廠商的預定義卷。如果你不想要你系統上的windows分區自動掛載,在上述代碼後添加如下語句即可:
代碼:
      <!-- 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>
上面代碼中是我這裡的具體情況,如果你是FAT分區,把第一個紅色部分改為vfat,第二個紅色部分為windows下你所對應的卷標名字。

2、如果你只是不想讓掛載的windows分區在桌面上顯示,可以在“配置編輯器”中把/app/nautilus/desktop下的volumes_visible退選掉即可。
Copyright © Linux教程網 All Rights Reserved