[How-to]如何更加方便的在FreeBSD中使用ntfs-3g
2011-11-03 20:49
435 查看
墙外你更加受到欢迎,地址:http://lzsblog.appspot.com/?p=298001
很多人应该试过在FreeBSD里装ntfs-3g来代替原来的mount_ntfs命令(pkg_add -r ntfs-3g),原来的那个命令在NTFS根目录会有很多乱七八糟的东西,而且最纠结的是居然不能写。可是FreeBSD的桌面环境们貌似是不太待见ntfs-3g。如果你用ntfs-3g的文件替换原来在/sbin中的命令文件,会提示如下错误。(俺用的KDE4)
An error occurred while accessing '19.5 GiB Hard Drive', the system responded: org.freedesktop.Hal.Device.Volume.UnknownFailure: ntfs-3g: Unknown option '-u'. ntfs-3g 2010.10.2 external FUSE 27 - Third Generation NTFS Driver Configuration type 1, XATTRS
are off, POSIX ACLS are off Copyright (C) 2005-2007 Yura Pakhuchiy Copyright (C) 2006-2009 Szabolcs Szakacsits Copyright (C) 2007-2010 Jean-Pierre Andre Copyright (C) 2009 Erik Larsson Usage: ntfs-3g [-o option[,...]] <device|image_file> <mount_point>
Options: ro (read-only mount), remove_hiberfile, uid=, gid=, umask=, fmask=, dmask=, streams_interface=. Please see the details in the manual (type: man ntfs-3g). Example: ntfs-3g /dev/sda1 /mnt/windows Ntfs-3g news, support and information: http://ntfs-3g.org
看来FreeBSD的加载命令比较奇葩呃。。。
我就找啊找啊,终于在某个藏的很深的文件里找到了办法。
1、把/usr/local/share/hal/mount-fuse文件拷贝到/sbin里
2、修改其中的内容,把FUSE_HELPER改成ntfs-3g
3、把/sbin中的mount_ntfs备份一下
4、替换。
好啦。
很多人应该试过在FreeBSD里装ntfs-3g来代替原来的mount_ntfs命令(pkg_add -r ntfs-3g),原来的那个命令在NTFS根目录会有很多乱七八糟的东西,而且最纠结的是居然不能写。可是FreeBSD的桌面环境们貌似是不太待见ntfs-3g。如果你用ntfs-3g的文件替换原来在/sbin中的命令文件,会提示如下错误。(俺用的KDE4)
An error occurred while accessing '19.5 GiB Hard Drive', the system responded: org.freedesktop.Hal.Device.Volume.UnknownFailure: ntfs-3g: Unknown option '-u'. ntfs-3g 2010.10.2 external FUSE 27 - Third Generation NTFS Driver Configuration type 1, XATTRS
are off, POSIX ACLS are off Copyright (C) 2005-2007 Yura Pakhuchiy Copyright (C) 2006-2009 Szabolcs Szakacsits Copyright (C) 2007-2010 Jean-Pierre Andre Copyright (C) 2009 Erik Larsson Usage: ntfs-3g [-o option[,...]] <device|image_file> <mount_point>
Options: ro (read-only mount), remove_hiberfile, uid=, gid=, umask=, fmask=, dmask=, streams_interface=. Please see the details in the manual (type: man ntfs-3g). Example: ntfs-3g /dev/sda1 /mnt/windows Ntfs-3g news, support and information: http://ntfs-3g.org
看来FreeBSD的加载命令比较奇葩呃。。。
我就找啊找啊,终于在某个藏的很深的文件里找到了办法。
1、把/usr/local/share/hal/mount-fuse文件拷贝到/sbin里
cd /sbin cp /usr/local/share/hal/mount-fuse ./mount-fuse
2、修改其中的内容,把FUSE_HELPER改成ntfs-3g
3、把/sbin中的mount_ntfs备份一下
mv mount_ntfs mount_ntfs.backup
4、替换。
mv mount-fuse mount_ntfs
好啦。
相关文章推荐
- How to use JPA from a JBoss Web application ?(jboss 中如何使用线程安全的EntityManagerFactory )
- HowTo use linux laptop in presentations 【如何在Linux系统上使用投影仪】
- 译文:如何使用SocketAsyncEventArgs类(How to use the SocketAsyncEventArgs class) (转)
- [转帖]译文:如何使用SocketAsyncEventArgs类(How to use the SocketAsyncEventArgs class)
- 如何使用ODB(How to use odb On windows)
- 如何使用RDebug - How to use RDebug
- how to read data from web service ?(如何使用BMC Remedy Administrator 从Web Service获取数据?)
- [How To]如何使用Wildfish进行ISeries开发---单表操作篇
- <boost-03>如何使用boost filesystem获取给定子文件夹的目录?how to use boost filesystem to get subfolders?
- 如何使用th:each属性迭代模板-原标题:How To Use th:each For Iteration In Thymeleaf Template?
- 译文:如何使用SocketAsyncEventArgs类(How to use the SocketAsyncEventArgs class)
- How to use FTP via Windows Explorer(如何使用资源管理器访问 ftp)
- How to Use HTML5 FUll Screen API(如何使用HTML5全屏接口)
- 如何使用SSH向IPOD Touch2传输文件 - How to SSH into iPod Touch 2G [Transfer Files, Apps via SSH Access]
- 如何使用spy ++ (How to use Spy ++)
- 为何以及如何使用Netlink Socket ( Why and How to Use Netlink Socket)
- Oracle HowTo:如何使用Oracle case函数
- [转]How to use String.Format in PowerShell?(如何在PowerShell中使用string.format?)
- [How To]如何使用Wildfish进行ISeries项目开发--数据库建立部分
- 译文:如何使用SocketAsyncEventArgs类(How to use the SocketAsyncEventArgs class)