219# cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/ad0s3b none swap sw 0 0
/dev/ad0s3a / ufs rw 1 1
/dev/ad0s3e /tmp ufs rw 2 2
/dev/ad0s3f /usr ufs rw 2 2
/dev/ad0s3d /var ufs rw 2 2
/dev/acd0 /cdrom cd9660 ro,noauto 0 0
/dev/ad0s1 /dos-c msdosfs rw,-L=zh_CN.eucCN 2 2
/dev/ad0s5 /dos-d msdosfs rw,-L=zh_CN.eucCN 2 2
一下感谢冰力版主
原文连接
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:
Required To Build: ,
devel/libtool15
Required To Run:
Required Libraries: ,
devel/libublio,
To install : cd /usr/ports/sysutils/fusefs-ntfs/ && make install clean
To add the : 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 settings
Master Sites:
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
阅读(1203) | 评论(0) | 转发(0) |