Saturday, March 4, 2017

FreeBSD ä¸‹å ‰è£ é ç½ ä¸Žä½¿ç”¨ ntfs 3g fusefs ntfs

FreeBSD ä¸‹å ‰è£…é…ç½ ä¸Žä½¿ç”¨ ntfs 3g fusefs ntfs


The ntfs-3g driver is an open source, freely available read/write NTFS
driver, which provides safe and fast handling of the Windows XP, Windows
Server 2003 and Windows 2000 filesystems. Almost the full POSIX filesystem
functionality is supported, the major exceptions are changing the file
ownerships and the access rights.

WWW: http://www.ntfs-3g.org/

Required To Build:
 sysutils/fusefs-libsdevel/libtool15

Required To Run: sysutils/fusefs-kmod

Required Libraries: sysutils/fusefs-libsdevel/libublioconverters/libiconv

To install the port: cd /usr/ports/sysutils/fusefs-ntfs/ && make install clean

To add the package: pkg_add -r fusefs-ntfs

Configuration Options ===> The following configuration options are available for fusefs-ntfs-1.2506:
LOCK=on (default) "Lock the device when mounting (avoids access)"
UBLIO=on (default) "Enable user space cache for improved speed"
===> Use make config to modify these settingsMaster Sites:
http://www.ntfs-3g.org/
ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/

Usage

If there was no error during installation then the NTFS volume can be mounted in read-write mode for everybody as follows. Unmount the volume if it had already been mounted, replace /dev/sda1 and /mnt/windows, if needed. 
mount -t ntfs-3g /dev/sda1 /mnt/windows

Please see the ntfs-3g manual page for more options and examples. You can also make NTFS to be mounted during boot by adding the following line to the end of the /etc/fstab file: 
/dev/sda1 /mnt/windows ntfs-3g defaults 0 0
???????1???ntfs-3g?
??# cd /usr/ports/sysutils/fusefs-ntfs
??# make install clean
??2???fuse???
??# ee /etc/rc.conf
??????????
??fusefs_enable="YES"
??????
??# ee /boot/loader.conf
??????????
??fuse_load="YES"
???????
???????????fusefs????fuse??????
??# shutdown -r now
??3???ntfs???
???????USB???????/dev????da0?ntfs????da0s1?????????????????
??# ntfs-3g /dev/da0s1 /mnt/xp

???? ntfs:
# ntfs-3g /dev/hda1 /media/vista -o silent,umask=0,locale=zh_CN.utf8

????????? /etc/fstab:
/dev/hda1 /media/vista ntfs-3g silent,umask=0,locale=zh_CN.utf8 0 0 (Comment this)

??ntfs-3g??ntfs??????????
???????????
locale=zh_CN.UTF-8

?? /etc/rc.conf
defaultrouter="192.168.0.1"
hostname="www.huage.org"
ifconfig_fxp0="inet 192.168.0.3  netmask 255.255.255.0"
keymap="us.iso"
moused_enable="YES"
moused_port="/dev/psm0"
moused_type="auto"
fusefs_enable="YES"     # ntfs??????
fsck_y_enable="YES"
sshd_enable="YES"
oss_enable="YES"        (?)
dbus_enable="YES"       # gnome??
hald_enable="YES"       # gnome??
gdm_enable="YES"       # ???gnome

/etc/profile
LANG="en_US.UTF-8"; export LANG
LC_CTYPE="zh_CN.UTF-8"; export LC_CTYPE
XMODIFIERS=@im=fcitx; export XMODIFIERS

???
freebsd# mount -t ntfs /dev/ad4s1 /mnt/windows
mount: /dev/ad4s1 : Operation not supported by device
or:
freebsd# mount -t ntfs-3g /dev/ad4s1 /mnt/windows
mount: /dev/ad4s1 : Operation not supported by device
?????????????????
???
??? ntfs-3g /dev/ad4s1 /mnt/windows ??????
The FreeBSD mount command has a known problem. Until it gets fixed, please call ntfs-3g directly (make sure the ntfs-3g binary is ivokable from the $PATH): 

> Make sure your dependencies are correct:> $ ls /var/db/pkg|grep fuse> fusefs-kmod-0.3.9.p1 <<<<> fusefs-libs-2.7.0_1> fusefs-sshfs-1.8> 
fuse-0.10.0.2_1
fuse-utils-0.10.0.1
fusefs-gnome-vfs-0.1_3
fusefs-kmod-0.3.9.p1.20080208_6
fusefs-libs-2.7.4
fusefs-ntfs-2009.4.4
fusefs-sshfs-2.2
add "fusefs_enable=YES" to rc.conf , install fusefs-sshfs from the ports tree. And the ports system installed
fusefs-kmod.

??????
NTFS-3G? ???????????????? /usr/ports/sysutils/fusefs-ntfsAvailable link for download