matt-wu / Ext3Fsd

Ext2/3/4 file system driver for Windows
http://www.ext2fsd.com
700 stars 102 forks source link

Written files disappear after unmounting #13

Open jaburjak opened 6 years ago

jaburjak commented 6 years ago

Hi, Iʼm using the latest version of Ext2Fsd on Windows 10 (version 1703) with my external drive formatted to EXT4. Everything seems to work fine, I can read files from the drive and write to it. But after I safely remove the drive, unplug it and then plug it in again, the files I copied to the drive are missing. The drive looks like I never copied the files.

Does anybody know what could be the issue and how to solve it?

matt-wu commented 6 years ago

Could be 2 two reasons: 1, journal is not clean: then journal replay will get the data overwritten (metadata entries for this case). The data should be still in your disk, but you need run data recovery tool or key-searching to locate. 2, cache issue: data is still in cache, not yet flushed to disk. It should NOT with "safe removal". If this case happens, data gets lost unless you grab a memory dump of your running system. I'm trying to reproduce this issue with latest Win10.