FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Sun Nov 29, 2020 00:46



Post new topic Reply to topic  [ 7 posts ] 
FreeBSD 6.2 + Vista requires syncing 
Author Message

Joined: Sun Aug 26, 2007 23:46
Posts: 3
Post FreeBSD 6.2 + Vista requires syncing
Hello,

I`ve got a dualboot, FreeBSD and Vista.
But when I edit the ntfs file system in FreeBSD, and don`t umount it,
it doesn`t sync or something, so the files get lost.

Reproduction:
ntfs-3g /dev/ad4s1 /mnt
echo "Blah" > /mnt/blah.txt
reboot

The file blah.txt doesn`t exists on either vista or bsd.

But:
ntfs-3g /dev/ad4s1 /mnt
echo "Blah" > /mnt/blah.txt
umount /mnt
ntfs-3g /dev/ad4s1 /mnt
reboot

And I will find my blah.txt :)

Versions:
ntfs-3g: 1.710
FreeBSD: 6.2
Windows Vista


Last edited by Quis on Mon Aug 27, 2007 00:17, edited 1 time in total.



Sun Aug 26, 2007 23:51
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1648
Post Re: FreeBSD 6.2 + Vista requires syncing
Hi!
Quis wrote:
But when I edit the ntfs file system in FreeBSD, and don`t umount it,
it doesn`t sync or something, so the files get lost.

That's how all Unix work, not to be horrible slow. You __ALWAYS__ must unmount properly if you don't want to lose data.


Mon Aug 27, 2007 00:09
Profile

Joined: Sun Aug 26, 2007 23:46
Posts: 3
Post 
Hi,

you`re right about that;
But wouldn't it be possible/usefull to auto-unmount all ntfs filesystems, when ntfs-3g gets killed, or fusefs is unloaded ?
Or some 'autosync every 5 minutes' options or something like ?


Mon Aug 27, 2007 00:20
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1648
Post FreeBSD 6.2 + Vista requires syncing
On Mon, 27 Aug 2007, Quis wrote:

Quote:
But wouldn't it be possible/usefull to auto-unmount all ntfs filesystems,
when ntfs-3g gets killed,

When ntfs-3g gets killed by the TERM or INT signals then it unmounts the
file system.

Quote:
or fusefs is unloaded ?

The FUSE module can't be unloaded when it's in use. At least on Linux.

Quote:
Or some 'autosync every 5 minutes' options or something like ?

Sync happens much more often, something like half minutes. But this can't
guarantee that it will happen right before you cut the power.


Mon Aug 27, 2007 23:57
Profile

Joined: Sun Aug 26, 2007 23:46
Posts: 3
Post 
On FreeBSD fusefs got 'forcefully unloaded'.
It dumped some error (Don't know it exactly atm) like 'Filesystems are still in use.'

The weird thing is,
i editted the files, and did some other things (for about 30 minutes at least)
And rebooted to vista after that.
So there should`ve been enough time for the flushing

Everything should be fine as you say...
I`ll do some new tests ;)


Tnx for the support!

-- Quis


Tue Aug 28, 2007 01:58
Profile

Joined: Thu Dec 13, 2007 07:51
Posts: 5
Post Current workaround and in-progress solution
Hello.

The latest version of sysutils/fusefs-kmod (which provides the fuse rc.d script) unmounts all the fuse filesystems at shutdown, with a small delay that should help in most cases.

The author of fuse4bsd has an experimental (no problems until now though) version that implements a part of the FUSE API (previously ignored) which ensures "umount" will wait until the disk is synced (but with a reasonable timeout like normal FreeBSD disk syncing). I guess it will be released soon.

BTW I would like to know if you happen to see the problem (missing recent files) with the latest version of fusefs-kmod?

Best Regards,
Ale


Thu Jan 10, 2008 03:26
Profile

Joined: Sat Dec 13, 2008 00:42
Posts: 1
Post 
I got hit by the same issue. Transferred about 60GB worth of media files from my failing UFS2 drive to a spare NTFS drive. Reboot and the files are gone.

The latest version of fusefs-kmod in the packages tree is currently 0.3.9.p1.20080208_2, while according to the commit history, the sync on dismount issue isn't resolved until 0.3.9.p1.20080208_5.

The minor rev5 was just committed to the ports tree just a few hours ago. That would have been nice to have this morning when I installed the package.

I went back and checked, and this problem isn't listed in the "known issues" section of either the README or README.FreeBSD file that comes with the 1.2531 binary.

Somebody should really add that.

--
FreeBSD 6.3/AMD64
fusefs-kmod-0.3.9.p1.20080208_2
fusefs-libs-2.7.3
fusefs-ntfs-1.2531


Sat Dec 13, 2008 01:19
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.