NTFS-3G 是一個opensource的專案。他提供我們一個從 Linux 上讀寫NTFS的工具與Driver。目前版本是:20070118-BETA

我試著再我使用的Fedora code 5 安裝了一下與測試了一下。中文(UTF-8)檔名也沒有問題。



在Fedora安裝還蠻容易的,照著說明做下去,沒有發生問題:(以我電腦的情形為例為例)

% yum -y update
% yum install ntfs-3g
% vi /etc/udev/rules.d/50-udev.rules
將(大約在第10行)SUBSYSTEM=="block", GROUP="disk", MODE="0640"
改為 SUBSYSTEM=="block", GROUP="disk", MODE="0660"

% usermod -a -G disk,fuse username (將 user加入 disk and fuse group)
% chmod 777 /mnt/Windows_D (將mount point權限設為777)
%vi /etc/fstab
加入以下一行
/dev/hda5 /mnt/Windows_D ntfs-3g dmask=002,fmask=113,noauto,locale=hu_HU.UTF-8,user 0 0

% echo user_allow_other >> /etc/fuse.conf (如果你要允許其他不是執行mount的User也可以使用)
% $ rm -f /usr/share/hal/fdi/policy/10osvendor/99-redhat-storage-policy-fixed-drives.fdi (如果你要在GNOME下 automount) (我沒有試)

接著就執行

% mount /mnt/Windows_D
WARNING: Old FUSE kernel module detected. This means, some driver features
are not available (swap file on NTFS, boot from NTFS by LILO),
and unmount is not safe unless you make sure the ntfs-3g process
naturally terminates after calling 'umount'. The safe FUSE kernel
driver is included in the official Linux kernels since version
2.6.20-rc1, or in the FUSE 2.6 software package. Please see the
next page for more help: http://www.ntfs-3g.org/support.html#fuse26

因為我的Kernel 是2.6.18所以有Warning。雖然如此,但是執行讀寫一切正常。

此外,如果你不想改fstab,也可以用以下方式:

% ntfs-3g /dev/hda5 /mnt/usb -o dmask=002,fmask=113,noauto,locale=hu_HU.UTF-8
or
% mount -t ntfs-3g /dev/hda5 /mnt/usb -o dmask=002,fmask=113,noauto,locale=hu_HU.UTF-8

我的測試,不有沒有加options (-o .....),中文都正常。