Fedora 10 will automatically mount all partitions at startup, but some partitions (such as Windows System partitions) are useless to innersea. How can I set it not to be automatically mounted at startup?
The method is as follows:
Modify/usr/share/hal/fdi/policy/10 osvendor/20-storage-methods.fdi
Go to <match key = "volume. fstype" string_outof = "NTFS; vfat">
Add:
<! -- Ignore partition system -->
<Match key = "volume. Label" string = "system">
<Merge key = "volume. Ignore" type = "bool"> true </merge>
</Match>
Here, system is the partition volume label to be unmounted. If you want to unmount multiple partitions, you can continue to add them.
------------ 2009-1-20 modify -------------
To be consistent with the method used to enable the touchpad image configuration, modify the method as follows:
No need to modify/usr/share/hal/fdi/policy/10 osvendor/20-storage-methods.fdi
New file/etc/hal/fdi/policy/ignorevolume. FDI
<? XML version = "1.0" encoding = "UTF-8"?>
<Deviceinfo version = "0.2">
<Device>
<Match key = "volume. fstype" string_outof = "NTFS; vfat">
<! -- Ignore partition other -->
<Match key = "volume. Label" string = "other">
<Merge key = "volume. Ignore" type = "bool"> true </merge>
</Match>
<! -- Ignore partition program -->
<Match key = "volume. Label" string = "program">
<Merge key = "volume. Ignore" type = "bool"> true </merge>
</Match>
<! -- Ignore partition system -->
<Match key = "volume. Label" string = "system">
<Merge key = "volume. Ignore" type = "bool"> true </merge>
</Match>
</Match>
</Device>
</Deviceinfo>
In this way, the Default policy of the system can be separated from the policy defined by the user, and it is very easy to cancel the policy, you only need to change the "extension" of the file to "not FDI" (for example, "innersea" is to change the file name to "ignorevolume. FDI _).