jozhu 发表于 2006-7-15 17:55:12

NTFS-3G: Full Read-Write Open

Hello,

As part of the Linux-NTFS project, I'm happy to announce my contribution
to ntfsmount and libntfs which resulted ntfs-3g, a read-write ntfs driver,
capable for unlimited file creation and deletion.

The driver was successfully tested very exhaustively for a longer period of
time by many ways and methods, creating and destroying millions of files and
directories on newly created images, and on over 40 real, very diverse NTFS
images collected over the last four years.

The README file is copied below which includes more general, performance and
quality information with answers and future plans.

Please make a backup of your NTFS volume by ntfsclone and try to reproducible
break ntfs-3g, if you can. If you are able to do so then please let us know,
preferable providing your NTFS metadata image, if it couln't be reproduced by
other ways.

The driver can be downloaded from
       
        http://mlf.linux.rulez.org/mlf/ezaz/ntfs-3g-20070714-BETA.tgz

Please note that I'm leaving for an over 5,000 km long Far North and Arctic
Ocean advanture on Sunday morning (European time) and won't be able to read
and answer emails for almost a month (no, I'm not escaping, I plan to come
back alive ;). Originally I planned to fix all the minor issues listed below
but no more time left for me and I think it's better to release now, in case
I would get lost somewhere on the road ;) Well, actually I hope that most
issues will be resolved when I'm back!

Happy testing, problem reporting and coding,

        Szaka


INTRODUCTION
============

The ntfs-3g driver is an open source, GPL licensed, third generation Linux
NTFS driver for 32-bit, little-endian architectures which was implemented
by the Linux-NTFS project. It provides full read-write access to NTFS,
excluding access to encrypted files, writing compressed files, changing
file ownership, access right.

Technically it's based on and a major improvement to the third generation
Linux NTFS driver, ntfsmount. The improvements includes functionality,
quality and performance enhancements.

The driver currently is in BETA status: before release of this software we
haven't experienced any driver crashes or data loss during our heavy quality
testing, however we are aware of some minor issues which will be resolved
in the near future. We listed all of them in a below section. Please report
any new problem to linux-ntfs-dev@li... if it's not listed
yet in the latest release of this software.


QUICK INSTALLATION
==================
       
Make sure you have the basic Linux development tools and FUSE
(http://fuse.sourceforge.net) is correctly installed on your computer
then type:

        ./configure
        make
        make install      # or 'sudo make install' if you aren't root.


USAGE
=====

If there was no error during installation then you can mount NTFS volumes
for read-write access (unmount them if they were already mounted by
another NTFS driver.)

        ntfs-3g /dev/hda1 /mnt/windows

If you want to give full access for all users, ignore permission related
driver messages, and make national characters visible then use (drop or
replace the below hu_HU.utf8 with the appropriate setting, and also the
device and mount points, if needed).

        ntfs-3g /dev/hda1 /mnt/windows -o silent,umask=0,locale=hu_HU.utf8

Please see the ntfs-3g manual page for more options and examples.

You can also make NTFS to be mounted during boot by ensuring that the FUSE
kernel module is automatically loaded and by putting the below line into
/etc/fstab

        /dev/hda1 /mnt/windows ntfs-3g silent,umask=0,locale=hu_HU.utf8 0 0


PERFORMANCE
===========

Our highest priority is reliable functionality, performance comes only
next. However acceptable performance is part of the functionality so we
constantly keep an eye on it and consider any major performance issue to
be a real functionality problem as well.

Below are the averaged file creation, deletion and access performance
numbers got by running 'bonnie++ -s0' using several filesystems (the
benchmark used 16,000 files per directory in each sessions):

Version1.03    ------Sequential Create------ --------Random Create--------
                  -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
            files/sec %CP/sec %CP/sec %CP/sec %CP/sec %CP/sec %CP
reiserfs   16k 2145999 +++++ +++ 1785696 2017298 +++++ +++ 1641496
jfs          16k701513 +++++ +++586810306814 +++++ +++1075   3
ntfs-3g      16k302199 1429199522699354899 1614999522399
xfs          16k240117 +++++ +++209515230120 +++++ +++   347   2
ext3         16k186296 +++++ +++ +++++ +++191496 +++++ +++969598
minix      16k145097 +++++ +++ 1814894169497 +++++ +++484798
fat32      16k   36697 +++++ +++180997   42897 +++++ +++136197
paragon ntfs 16k    5898125999   24599    5599 +++++ +++   83299
captive ntfs    Always crashes early on file creations and loses files.
                This was also confirmed and fix denied by its developer.

We estimate the ntfs-3g driver performance could be increased by several
times.


KNOWN ISSUES, TROUBLESHOOTING
=============================

Problem:    Error message when mounting:
             fusermount: failed to open /dev/fuse: No such file or directory
Answer:   The FUSE kernel module isn't loaded.
Workaround: Run 'modprobe fuse' as root.
Status:   High priority work.


Problem:    "Directory not empty" message when deleting "empty" directories:
Answer:   If locale isn't set correctly then glibc can't convert
          some filenames, so they aren't visible and the directory
          indeed isn't empty. Occures very rarely.
Workaround: Set your locale properly according to the used characters
Status:   High priority work.


Problem:    "No such file or directory" message when accessing some files:
Answer:   This is a known problem in libntfs inode attribute enumeration
             when the same type of attributes are distributed across
             multiply mft records. Occures only very rarely.
Workaround: If the file is a hard link (usually yes) then first delete
             some other files hard linking to the same file then you'll
             be able to delete the problematic file as well.
Status:   High priority work.


Problem:    "Operation not supported" message when creating a file:
Answer:   This is a controlled refusal of file creation which can happen
             when there are already about 100,000 files on the NTFS and the
             MFT needs to be extended in a way which isn't implemented yet.
Workaround: Delete files then you can create new ones.
Status:   High priority work.


Problem:    "Operation not supported" message when deleting a file:
Answer:   The support for certain very-very rare directory update
             operations weren't fully tested yet, so they are not
             included in the release. This is so rare that you probably
          will never see it ;-)
Workaround: Delete or create other files in the same directory until you
          can remove the file you originally wanted.
Status:   High priority work.


Problem:    Only Windows Administrator can access the files created by
             the driver.
Answer:   File permission and ownership handling isn't implemented yet.
Workaround: As Windows Administrator, set access permissions for other
             users.
Status:   Solution exists but it needs to be revised and tested.


Problem:    Windows chkdsk complains about free space being marked in use.
Answer:   chkdsk sometimes optimizes the NTFS layout and later finds
             its own bugs (e.g. when index root attributes are moved from
             extent mft records to the base one). This is not a problem
          with ntfs-3g.
Workaround: No need, it's a chkdsk bug and it fixes itself.
Status:   Low priority work: we will optimize our algorithms too.


Problem:    Windows chkdsk reports the below messages (N is a number).
          Cleaning up N unused index entries from index $SII of file 0x9.
          Cleaning up N unused index entries from index $SDH of file 0x9.
          Cleaning up N unused security descriptors.
Answer:   These messages are part of an optimization process which is
          completely independent of ntfs-3g. Nothing to worry about them.
Workaround: No need.
Status:   Nothing to do.


Problem:    Windows chkdsk may report minor inconsistency.
Answer:   The allocation size of sparse files isn't set always correctly.
Workaround: No need.
Status:   Normal priority work.


Problem:    Why ntfs-3g CPU usage is always 100%?
Answer:   You have some application running which inefficiently "polls"
             for file modification events.
Workaround: Identify the software and try to upgrade it.
Status:   Normal priority work: we also intend to improve significantly
             our CPU usage for such cases.

Problem:    Why doesn't the driver work on 64-bit and bigendian systems?
Answer:   We have no resource for that. Neither hardware, nor workforce.
Status:   Low priority.

潇湘馆主 发表于 2006-7-15 18:14:02

不知中文文件名写入win下是否能识别

Hauser 发表于 2006-7-15 19:27:16

不知中文文件名写入win下是否能识别
没问题! :D

npcomet 发表于 2006-7-15 19:38:30

建议mgc下一版本加入这个

潇湘馆主 发表于 2006-7-15 19:46:59

不知中文文件名写入win下是否能识别
没问题! :D
另外locale是不是要强制为某一种?thanks

Hauser 发表于 2006-7-15 20:33:18

不知中文文件名写入win下是否能识别
没问题! :D
另外locale是不是要强制为某一种?thanks
应该不是。要看你的linux用的什么locale。比如我用en_US.utf8的,用zh_CN.utf8或zh_TW.utf8来挂载都可以。我试过将我的系统改成zh_CN.gb18030的locale,这时就得用zh_CN.gb18030来挂载才行。

BTW,我的XP是繁体中文的。 :wink:

jozhu 发表于 2006-7-15 22:03:15

看来这个东西不错,可惜我还没有LINUX可用。。。

islandstar 发表于 2006-7-16 00:53:43

看样子可以试试,是否可写。

感谢分享。

潇湘馆主 发表于 2006-7-16 08:45:27

不知中文文件名写入win下是否能识别
没问题! :D
另外locale是不是要强制为某一种?thanks
应该不是。要看你的linux用的什么locale。比如我用en_US.utf8的,用zh_CN.utf8或zh_TW.utf8来挂载都可以。我试过将我的系统改成zh_CN.gb18030的locale,这时就得用zh_CN.gb18030来挂载才行。

BTW,我的XP是繁体中文的。 :wink:
哦,谢谢。看来确实比较方便。

潇湘馆主 发表于 2006-7-16 08:46:00

看来这个东西不错,可惜我还没有LINUX可用。。。
不要告诉我你现在是win/bsd

jozhu 发表于 2006-7-16 16:44:53

:oops::oops:
妹妹果然是冰雪聪明啊。

jozhu 发表于 2006-7-17 19:05:02

貌似这个东西还是没法在BSD下用啊

潇湘馆主 发表于 2006-7-17 19:30:04

但是,win可以读写ntfs,我知道

jozhu 发表于 2006-7-17 20:00:38

恩,WIN绝对可以读写,可我本子上只有BSD。。。

人之子 发表于 2006-7-17 21:53:23

ntfs3g依赖于fuse?fuse是什么? 我应该安装吗。。。系统是gentoo
页: [1] 2
查看完整版本: NTFS-3G: Full Read-Write Open