SUSE LINUX 11.1自动挂载NTFS格式移动硬盘

插入NTFS格式移动硬盘,系统弹出窗口报告错误:cannot get volume.fstype.alternative

参考:http://forum.mandriva.com/en/viewtopic.php?t=111988&z_ad8eb2b0f40c11e0be500800200c9a66=1325141613

urpmi nano也不知道干啥用的,执行不了,只是在/etc/hal/fdi/policy 新建了10-ntfs-3g-policy.fdi 和preferences.fdi 两个文件把下面的xml内容复制进去,执行了第六部/etc/init.d/haldaemon restart,再插入移动硬盘,错误提示变为不支持 ntfs-3g文件系统Mount: unknown file system type ntfs-3g 

参考 http://cn.opensuse.org/OpenSUSE_NTFS_%E5%85%A8%E8%AF%BB%E5%86%99%E6%95%99%E7%A8%8B

http://www.ntfs-3g.org下载了最新ntfs-3g源文件包ntfs-3g_ntfsprogs-2011.4.12.tgz

http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2011.4.12.tgz

然后解压

#./configure

#make

#make install

这些步骤执行完毕,插入移动硬盘可以自动识别并挂载了,跟插入U盘效果一样


1. urpmi nano 
2. nano /etc/hal/fdi/policy/10-ntfs-3g-policy.fdi 
3 .<?xml version="1.0" encoding="UTF-8"?> 
<deviceinfo version="0.2"> 
<device> 
<match key="volume.fstype" string="ntfs"> 
<merge key="volume.fstype" type="string">ntfs-3g</merge> 
<merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge> 
<append key="volume.mount.valid_options" type="strlist">locale=</append> 
</match> 
</device> 
</deviceinfo> 
4. nano /etc/hal/fdi/policy/preferences.fdi 
5. <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- --> 

<!-- 
Some examples how to use hal fdi files for system preferences 
You can either uncomment the examples here or put them in a seperate .fdi 
file. 
--> 
<deviceinfo version="0.2"> 
<!-- 
The following shows how to hint gnome-volume-manager and other programs 
that honor the storage.automount_enabled_hint to not mount non-removable 
media. 
--> 

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


</deviceinfo> 
6. /etc/init.d/haldaemon restart

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值