Files modified on NTFS partition are seen as corrupted files in Windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ntfs-3g (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I have Ubuntu 13.10 and Windows 8.1 installed, both 64-bit (dual boot). Whenever I create or copy files to any of the NTFS partitions from Ubuntu, these files get deleted once I login to Windows. When I login to Ubuntu again, the files are not there. I shut down Windows properly and do not hibernate. I have disabled fast startup option in Windows, and Fastboot from BIOS. So it is not a hibernation problem. The same problem occurred when using Linux Mint.
I have been able to find the exact event log concerning this issue in Windows Event Viewer, it says: "The file system structure on volume D: has now been repaired." and in the details section:
EventData
VolumeIdLength 2
VolumeId D:
RepairDetail 25008: Start repair on 02/05/2014 at 20:53:12:946 25017: Processing repair verb IndexEntry: 0x5000000000005, "$I30", "line-mozart.avi" Flags: 0x32, 0x0 26065: Deleting index entry line-mozart.avi in index 0x5000000000005 of file 0x2000000003498. 25009: End repair on 02/05/2014 at 20:53:12:946
RepairDataLength 152
...
Note: "line-mozart.avi" is the name of the file that got deleted this time.
Since Windows sees the modified files as corrupted files that need repair, I think Ubuntu does something wrong when saving files to NTFS partitions, and it is probably a bug in NTFS-3g.
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: ntfs-3g 1:2013.
ProcVersionSign
Uname: Linux 3.11.0-15-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
Date: Sat Feb 15 14:07:58 2014
InstallationDate: Installed on 2014-01-17 (28 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
MarkForUpload: True
SourcePackage: ntfs-3g
UpgradeStatus: No upgrade log present (probably fresh install)
> Whenever I create or copy files to any of the NTFS partitions from Ubuntu, these files
> get deleted once I login to Windows.
Does this also happen to files on external devices (such as a usb key) ?
> I have been able to find the exact event log concerning this issue in Windows
A file has also probably been created in "Win/System Volume Information/Chkdsk"
(Replace Win by your actual mount point, use quotes or escape the spaces)
which you can determine from its time stamp (02/05/2014 at 20:53:12:946).
Please post it.
Note : this is a UTF16-encoded file, you may have to post it as a binary file.
> I shut down Windows properly and do not hibernate. I have disabled fast startup
> option in Windows, and Fastboot from BIOS.
When you start Ubuntu after having logged off Windows normally, what is the
output of :
sudo head -c 30 'Win/$LogFile' | tail -c 4 | od -t x2
(Replace Win by your actual mount point, keep the quotes or escape the '$')
What does the same command return when you switch to Ubuntu from
Windows through a "restart" instead of "shut down" ?
> I think Ubuntu does something wrong when saving files to NTFS partitions,
> and it is probably a bug in NTFS-3g.
And a possible cause is Microsoft having changed the rules unilaterally.