NTFS-3G - Read/Write NTFS from Linux
NTFS-3G 是一個opensource的專案。他提供我們一個從 Linux 上讀寫NTFS的工具與Driver。目前版本是:20070118-BETA
我試著再我使用的Fedora code 5 安裝了一下與測試了一下。中文(UTF-8)檔名也沒有問題。
在Fedora安裝還蠻容易的,照著說明做下去,沒有發生問題:(以我電腦的情形為例為例)
% yum install ntfs-3g
% vi /etc/udev/rules.d/50-udev.rules
改為 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 .....),中文都正常。



我安你作的作了 也挂载了 但读到守护进程时又给自动umount了 还是说fuse没有权限 怎么回事
作者 happy — 06 四月 2007, 10:07
不太清楚,你說的"守护进程"是什麼意思?如果可以,請說清楚些。
謝謝!
作者 gator — 12 四月 2007, 18:14