Ubuntu下自动挂载windows分区磁盘的方法

来源:互联网 发布:手机淘宝退款率 编辑:程序博客网 时间:2024/05/16 02:25

Ubuntu自带了一个分区管理器,使用HAL管理,其中的策略文件在/etc/hal/fdi/policy/preferences.fdi
如果需要自动挂载分区,只需把第一部分要修改为如下内容:(false--> true)

<device>
    <match key="storage.hotpluggable" bool="false">
      <match key="storage.removable" bool="false">
        <merge key="storage.automount_enabled_hint" type="bool">true</merge>
      </match>
    </match>
</device>

 

 

备注:

  但是它有一个问题是,它加载的顺序是随机的,可能可部分需要固定卷标的人可能会不太适合。

 

当然还有比较复杂的加载方法,只是需要写些代码罢了。而如何些代码使用Google就一堆了。