Code Monkey home page Code Monkey logo

Comments (8)

jmixton avatar jmixton commented on May 30, 2024

Following #13 I also tried

lin:~ # exfatfsck /dev/loop0
exfatfsck 1.2.3
Checking file system on /dev/loop0.
File system version           1.0
Sector size                 512 bytes
Cluster size                 32 KB
Volume size                1023 MB
Used space                  480 KB
Available space            1023 MB
Totally 1 directories and 3 files.
File system checking finished. No errors found.
lin:~ # mkdir /tmp/sd
lin:~ # mount.exfat-fuse /dev/loop0 /tmp/sd
FUSE exfat 1.2.3
lin:~ # echo hello > /tmp/sd/test
lin:~ # sync
lin:~ # umount /tmp/sd
lin:~ # exfatfsck /dev/loop0
exfatfsck 1.2.3
Checking file system on /dev/loop0.
File system version           1.0
Sector size                 512 bytes
Cluster size                 32 KB
Volume size                1023 MB
Used space                  512 KB
Available space            1023 MB
Totally 1 directories and 4 files.
File system checking finished. No errors found.
lin:~ # mount.exfat-fuse /dev/loop0 /tmp/sd
FUSE exfat 1.2.3
lin:~ # cat /tmp/sd/test
hello
lin:~ # umount /tmp

But no file test is found if I plug the device back into the Win 8.1 machine.

If I execute a file system check with Windows the file test appears.

from exfat.

relan avatar relan commented on May 30, 2024

Thanks for the detailed report! I tried this test case on Windows 7 and it worked fine. Unfortunately I don't have Windows 8.1 nearby. Could you share a compressed image of the filesystem with testlin.txt and testwin.txt? I'd like to compare directory entries of those two files and figure out the difference between them.

from exfat.

jmixton avatar jmixton commented on May 30, 2024

Hm. Can't reproduce it anymore, when trying with fresh media/images. Tried several times with slightly different approaches, but always working as expected.

Right now my best guess is that somehow the medium in question has been corrupted before.

Sorry for the noise.

from exfat.

relan avatar relan commented on May 30, 2024

Right now my best guess is that somehow the medium in question has been corrupted before.

Sorry for the noise.

No problem. Please make a copy of the FS and reopen this issue if you experience this problem again.

from exfat.

relan avatar relan commented on May 30, 2024

I think I've reproduced this problem. Looks like Windows 8.1 caches the list of directory entries across reboots. If I unmount and mount the FS in Windows (via Disk Management Console) it shows the new file that has been added under GNU/Linux. Actually chkdsk fixes this issue because it also unmounts and mounts (thus invalidating the cache); it makes no changes to the FS at all.

from exfat.

heftig avatar heftig commented on May 30, 2024

Windows 8 and later are known to actually do hibernation when you request a shutdown. This feature is known as Fast Boot and should be disabled on a dual-booting machine.

If exFAT has a "dirty" flag like NTFS, the driver could refuse to open such filesystems read-write in order to avoid problems with stale caches after resume from hibernate. ntfs-3g behaves like this.

from exfat.

relan avatar relan commented on May 30, 2024

Windows 8 and later are known to actually do hibernation when you request a shutdown. This feature is known as Fast Boot and should be disabled on a dual-booting machine.

Seems so, thanks for the explanation!

If exFAT has a "dirty" flag like NTFS, the driver could refuse to open such filesystems read-write in order to avoid problems with stale caches after resume from hibernate. ntfs-3g behaves like this.

exFAT has dirty flag. But unlike NTFS, exFAT is mostly used for external drives and users often unplug them without proper unmount. Enforcing people to repair FS is such case will cause much more complains, than the problem described in this issue. Also, it's not an option until there is a free tool to do this.

from exfat.

feoff3 avatar feoff3 commented on May 30, 2024

May be of help for someone.
I had the same issue with CentOS 7 and Windows 10, EXFAT FUSE version 1.2.7
I built exfat fuse from the source (version 1.3.0) and the issue gone.

PS thanks for the working driver ;)

from exfat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.