免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 10261 | 回复: 14
打印 上一主题 下一主题

linux已经完全支持微软ntfs读写 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-16 22:21 |只看该作者 |倒序浏览
    linux终于有了可完全读写的开放源代码的ntfs支持。初步的实验显示出未经优化的驱动已经有时有ext3的2倍快,比商业实现地Paragon NTFS快20-50倍,而建立在windows自身的ntfs驱动上的Interestingly Captive NTFS在测试中以丢失文件的方式全部输给linux ntfs驱动

该驱动是linux第三代ntfs驱动,开源,以GPl发布。他提供对ntfs的完全读写访问,包括加密文件,支持写压缩,改变所属关系,访问权限。

技术上说,它建立在第三代linux ntfs驱动以及一个主要在ntfsmount的改进上。

该驱动以很多方法和方式(生成和破坏上百万的文件和目录)在新的镜象,以及40个真实的不同的ntfs镜像上,经历了相当长时间的极限测试

转自linuxeden
http://www.linuxeden.com/doc/24246.html

论坛徽章:
0
2 [报告]
发表于 2006-07-16 22:25 |只看该作者

论坛徽章:
0
3 [报告]
发表于 2006-07-16 22:54 |只看该作者
ntfs-3g的man page:

NTFS-3G(8)                                                            NTFS-3G(8)



NAME
       ntfs-3g - Third Generation NTFS Driver

SYNOPSIS
       ntfs-3g device mount_point [-o options]

DESCRIPTION
       ntfs-3g        is  a user space NTFS driver, which can create, remove, rename
       files, directories, hard links, or  streams;  it         can  read  and         write
       files,  including streams and sparse files; it can handle special files
       like symbolic links, devices, and FIFOs; moreover it can also read com-
       pressed files.

OPTIONS
       Below is a summary of the options that ntfs-3g accepts.

       uid=, gid=, umask=
              Provide  default        owner,        group,        and  access  mode mask.         These
              options  work  as         documented  in         mount(8).   By         default,  the
              files/directories         are  owned  by         user  that mounted volume and
              he/she has read and write permissions, as well as browse permis-
              sion  for         directories.  No one else has any access permissions.
              I.e. the mode on all files  is  by  default  rw-------  and  for
              directories  rwx------,  a consequence of the default fmask=0177
              and dmask=0077.  Using a umask of zero will  grant  all  permis-
              sions to everyone, i.e. all files and directories will have mode
              rwxrwxrwx.

       fmask=, dmask=
              Instead of specifying umask which         applies  both        to  files  and
              directories, fmask applies only to files and mask only to direc-
              tories.

       show_sys_files
              If show_sys_files is specified, show the system files in        direc-
              tory  listings.        Otherwise the default behaviour is to hide the
              system files.  Note that even when show_sys_files is  specified,
              "$MFT"  may  will not be visible due to bugs in glibc.  Further-
              more, note that irrespectively of show_sys_files, all files  are
              accessible by name, i.e. you can always do "ls -l '$UpCase'" for
              example to show the system file containing  the  Unicode        upcase
              table.

       default_permissions
              By  default  FUSE         doesn't  check         file  access permissions, the
              filesystem is free to implement it's access policy or  leave  it
              to the underlying file access mechanism (e.g. in case of network
              filesystems).   This   option   enables        permission   checking,
              restricting  access  based on file mode.        This is option is usu-
              ally useful together with the 'allow_other' mount option.

       allow_other
              This option overrides  the  security  measure  restricting  file
              access  to  the user mounting the filesystem.  This option is by
              default only allowed  to        root,  but  this  restriction  can  be
              removed  with  a        configuration option described in the previous
              section.

       large_read
              Issue large read requests.  This        can  improve  performance  for
              some filesystems, but can also degrade performance.  This option
              is mostly useful on 2.4.X kernels, as on        2.6  kernels  requests
              size is automatically determined for optimum performance.

       max_read=
              With this option the maximum size of read operations can be set.
              The default is infinite.        Note that the size of read requests is
              limited anyway to 32 pages (which is 128kbyte on i386).

       force  Force mount even if errors occurred. Use this option only if you
              know what are you doing.

       ro     Mount filesystem read-only.

       no_def_opts
              By default ntfs-3g acts as "default_permissions,allow_other" was
              passed to it, this option cancel this behaviour.

       silent Do  nothing  on  chmod  and  chown operations, but do not return
              error.

       locale=
              You can set locale with this option. It's useful if locale envi-
              ronment variables are not set before partitions had been mounted
              from /etc/fstab.

       streams_interface=
              This option controls how the user can access named data streams.
              It  can  be set to, one of none, windows or xattr. If the option
              is set to none, the user will have no access to the  named  data
              streams.         If it's set to windows, then the user can access them
              just like in Windows (eg.         cat  file:stream).  If         it's  set  to
              xattr, then the named data streams are mapped to xattrs and user
              can manipulate them using {get,set}fattr utilities.

       debug  Makes ntfs-3g to not detach from terminal and  print  a  lot  of
              debug output from libntfs-3g and FUSE.

       no_detach
              Same as above but with less debug output.

DATA STREAMS
       All  data  on  NTFS  is        stored in streams.  Every file has exactly one
       unnamed data stream and can have many named data streams.  The size  of
       a  file        is  the         size of its unnamed data stream.  By default, ntfs-3g
       will only read the unnamed data stream.

       By using the options "streams_interface=windows", you will be  able  to
       read  any  named         data  streams, simply by specifying the stream's name
       after a colon.  For example:

              cat some.mp3:artist

       Windows applications don't, consistently, allow you to read named  data
       streams,         so  you  are recommended to use tools like FAR, or utils from
       Cygwin.

       Named data streams act like normals files, so you can read  from         them,
       write  to  them        and even delete them (using rm).  You can list all the
       named data streams  a  file  has         by  getting  the  "ntfs.streams.list"
       extended attribute.

EXAMPLES
       Mount /dev/hda1 to /mnt/windows using ntfs-3g:

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

       Read-only mount /dev/hda5 to /home/user/mnt and make user with uid 1000
       to be owner of all files:

              ntfs-3g /dev/hda5 /home/user/mnt -o ro,uid=1000

       /etc/fstab entry for above:

              /dev/hda5 /home/user/mnt ntfs-3g ro,uid=1000 0 0

       Umount /mnt/windows:

              fusermount -u /mnt/windows


KNOWN ISSUES
       Please see the README file for all the known issues.  If you would find
       a  new  one  in the latest release of this software then please send an
       email describing it to the development team:
       linux-ntfs-dev@lists.sourceforge.net

AUTHORS
       ntfs-3g is an improved ntfsmount which was originally written  by  Yura
       Pakhuchiy,  with contributions from Yuval Fledel. The improvements were
       made by Szabolcs Szakacsits.

DEDICATION
       With love to Marina Sapego.

THANKS
       Many thanks to Miklos Szeredi for advice and answers about FUSE.

SEE ALSO
       ntfsprogs(8), attr(5), getfattr(1)



ntfs-3g 2006-07-14-BETA                   July 2006                            NTFS-3G(8)

论坛徽章:
0
4 [报告]
发表于 2006-07-16 23:17 |只看该作者
我还以为新的内核源代码中有了新的ntfs驱动呢

论坛徽章:
0
5 [报告]
发表于 2006-07-16 23:21 |只看该作者
原帖由 springwind426 于 2006-7-16 23:17 发表
我还以为新的内核源代码中有了新的ntfs驱动呢

这不更好吗?不用重编内核,装上就可以用了。:wink:

论坛徽章:
0
6 [报告]
发表于 2006-07-16 23:52 |只看该作者
好东东,最好集成到内核中去。

论坛徽章:
0
7 [报告]
发表于 2006-07-16 23:58 |只看该作者
估计MS要考虑废弃NTFS,换用NTFS二代文件系统了

论坛徽章:
1
午马
日期:2014-06-14 09:08:34
8 [报告]
发表于 2006-07-17 09:05 |只看该作者
好东西哦。。呵呵

论坛徽章:
0
9 [报告]
发表于 2006-07-17 09:38 |只看该作者
原帖由 shaaben 于 2006-7-16 23:58 发表
估计MS要考虑废弃NTFS,换用NTFS二代文件系统了

现在的 NTFS 已经是第二代了,第一代是 Windows NT 的 NTFS 分区

论坛徽章:
0
10 [报告]
发表于 2006-07-17 11:42 |只看该作者
原帖由 shaaben 于 2006-7-16 23:58 发表
估计MS要考虑废弃NTFS,换用NTFS二代文件系统了

將來會換上WinFS
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP