Fedora 10 cancels automatic mounting of certain partitions at startup

Source: Internet
Author: User


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 _).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.