View Full Version : NTFS file system
Ang31
December 28th, 2008, 03:17
Regards to all,
can you tell me how to set kernel that could write to NTFS file system or give me some tutorial?
P.S I edit fstab and mount ntfs partition but i can not write data only read.
Oko
December 28th, 2008, 03:34
You can install fusefs-ntfs-1.2531 and just follow this
simple howto http://lordhendrix.wordpress.com/2008/01/13/mounting-ntfs-to-freebsd-or-unix/
I am not sure if FreeBSD kernel has native ability to write
NTFS since I am not using NTFS. If it does I am pretty sure
the driver has to be compiled or loaded into the kernel.
ale
December 28th, 2008, 11:35
The ntfs kernel module provides read-only support.
As said by Oko, if you want to write, you have to install sysutils/fusefs-ntfs
Zephyrus
December 28th, 2008, 12:00
I think that the only thing you need to be aware when using the ntfs3g driver on freebsd is that it doesn't work perfectly when the system is under load. The following is the relevant excerpt from the README.FreeBSD file from fusefs-ntfs port:
When reading/writting the same file repeatedly while doing many simultaneous
operations on different files sometimes the former one fails: read(2) returns
-1 and sets errno to EAGAIN. This is because of a difference between the FUSE
kernel implementation in Linux and FreeBSD, and is being worked on. An example
scenario would be playing a song in XMMS, while building many ports, which
could cause XMMS skip the song. Another observed problem is the current
directory not being found, but entering again would work. The details are
described in fuse4bsd (sysutils/fusefs-kmod) documentation (Linux access is
path based while FreeBSD is vnode based, which may be reused)
kamikaze
December 29th, 2008, 01:08
You also need to know that until the module is unloaded you cannot be certain that all data has actually been written to the disk. Therefore you should add some things to your rc.conf:fusefs_enable="YES"
fusefs_safe="YES"
fusefs_safe_evil="YES"
The first line will load the kernel module upon startup and attempt to unload it upon shutdown.
The second line will keep on trying to unload the module upon shutdown until it succeeds. This prevents data loss.
The third line will lay the shutdown watchdog to rest while this is attempted to ensure that it doesn't interrupt the shutdown script. I've had cases where the system needed more than 2 minutes to write all data to the disk. However the watchdog timer hits after 30 seconds, so in this case the fusefs_safe_evil flag is necessary to prevent data loss.
Erratus
December 29th, 2008, 01:42
BTW can it be done that a NTFS system reads the UFS file? This might be the safer design?
ale
December 29th, 2008, 01:50
BTW can it be done that a NTFS system reads the UFS file? This might be the safer design?
Do you mean w2k/xp?
ufs2tools dot sf dot net
ter2007
December 31st, 2008, 17:13
Last time I tried it, I could not write to ntfs. Read it just fine, but not write.
ale
December 31st, 2008, 20:16
Last time I tried it, I could not write to ntfs. Read it just fine, but not write.
It's what Erratus asked
fonz
February 5th, 2009, 23:39
You can install fusefs-ntfs-1.2531 and just follow this
simple howto http://lordhendrix.wordpress.com/2008/01/13/mounting-ntfs-to-freebsd-or-unix/
Just a quick follow-up question on this: how does one go about having this done at boot, can you specify a path like /usr/local/modules/fuse.ko in /boot/loader.conf somehow or do you need something like /etc/rc.local?
Alphons
kamikaze
February 8th, 2009, 16:13
No, you have to use the late option for mounting during boot.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.