插入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

GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐