- 论坛徽章:
- 0
|
2.4内核不能写,2.6的写功能也不够强,推荐使用captive-ntfs
众所周知,linux对NTFS的支持还是只是停留在只读阶段,已经允许的写操作,除了需要在kernel编译的时候指定之外,也局限于只能覆盖已有的文件而已,这个“写”操作显然是没有办法使用的,那么有没有别的办法呢?
大家一定对DOS-NTFS这个东西有印象,通过使用nt系统中的ntfs.sys和ntosknl.exe这两个windows自带的文件系统驱动,
DOS/win9x环境下可以安全地通过对这个原生驱动的调用来完成ntfs的读写操作,那么linux是不是也可以使用这种方案呢?
答案是肯定的,有一个叫做captive-ntfs的项目就是这样的实现,不过它是一个userspace的文件系统,为了使用captive-
ntfs,必须首先重新编译kernel支持fuse或者使用kernel header编译fuse这个模块(fuse=filesystem
user space
environment,2.6.14以后的内核已经包括),完成编译后重启,安装libfuse的库(可以在sourceforge找到),然后安装
captive-ntfs就可以了,安装完毕之后,把windows的一些文件cp到/var/lib/captive中。
试验一下
mount -t captive-ntfs /dev/hda1 /mnt/win_c
成功了
touch /mnt/win_c/aab
没问题,可以创建文件
rm -f /mnt/win_c/aab
仍然没有问题,yeah! ntfs volume从此也可以用于linux的日常使用了,由于ntfs是统一utf8编码的,很多关于fat32中文文件名的问题也迎刃而解了!
附网站上对改项目对说明:
Project implements the first full read/write free access to NTFS disk drives.
You can mount your Microsoft Windows NT, 200x or XP partition as a transparently
accessible volume for your GNU/Linux.
This compatibility was achieved in the
Wine
way by using the original Microsoft
Windows ntfs.sys driver. It emulates the required subsystems of the
Microsoft Windows kernel by reusing one of the original ntoskrnl.exe,
ReactOS
parts, or this project's own
reimplementations, on a case by case basis. Project includes the first open
source MS-Windows kernel API for Free operating systems. Involvement of the
original driver files was chosen to achieve the best and unprecedented
filesystem compatibility and safety.
As opposed to other projects this is currently the only software supporting
the full read/write access including the possibility to create/delete files,
modify directories etc.
下载地址:
http://www.jankratochvil.net/project/captive/dist/captive-static-1.1.7-0.i386.rpm
http://www.jankratochvil.net/project/captive/dist/captive-static-1.1.7.tar.gz
如果版本更新,链接可能失效,请访问http://www.jankratochvil.net去搜寻。
^_^
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/15123/showart_115207.html |
|