NTFS partition files get corrupted after W10 boot!

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Draknof
Level 1
Level 1
Posts: 16
Joined: Mon Apr 06, 2015 6:36 am

NTFS partition files get corrupted after W10 boot!

Post by Draknof »

Hello everyone,

I run Linux Mint 18.3 64bits and have W10 on dual boot. Everything was working well until I installed an automatic update of Windows last month. Since that day, my NTFS partition refused to mount automatically. This happened 1 year ago and was caused by the hibernation settings of windows (easy to disable), but now it is caused by something else (haven't found ...). Here is the fstab:
UUID=A88E87178E86DCE6 /media/m-okanochiwa/Solvatus auto defaults,nofail,uid=1000,gid=1000 0 0
Therefore I have to execute all the time these commands and in the end it usually works:

Code: Select all

sudo ntfsfix /dev/sdc5
sudo mount -a

Code: Select all

Mounting volume... $MFTMirr does not match $MFT (record 24).
FAILED
Attempting to correct errors... 
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... FAILED
Correcting differences in $MFTMirr record 24...OK
Correcting differences in $MFTMirr record 25...OK
Correcting differences in $MFTMirr record 26...OK
Correcting differences in $MFTMirr record 27...OK
Correcting differences in $MFTMirr record 28...OK
Correcting differences in $MFTMirr record 29...OK
Correcting differences in $MFTMirr record 30...OK
Correcting differences in $MFTMirr record 31...OK
Correcting differences in $MFTMirr record 32...OK
Correcting differences in $MFTMirr record 33...OK
Correcting differences in $MFTMirr record 34...OK
Correcting differences in $MFTMirr record 35...OK
Correcting differences in $MFTMirr record 36...OK
Correcting differences in $MFTMirr record 37...OK
Correcting differences in $MFTMirr record 38...OK
Correcting differences in $MFTMirr record 39...OK
Correcting differences in $MFTMirr record 40...OK
Correcting differences in $MFTMirr record 41...OK
Correcting differences in $MFTMirr record 42...OK
Correcting differences in $MFTMirr record 43...OK
Correcting differences in $MFTMirr record 44...OK
Correcting differences in $MFTMirr record 45...OK
Correcting differences in $MFTMirr record 46...OK
Correcting differences in $MFTMirr record 47...OK
Correcting differences in $MFTMirr record 48...OK
Correcting differences in $MFTMirr record 49...OK
Correcting differences in $MFTMirr record 50...OK
Correcting differences in $MFTMirr record 51...OK
Correcting differences in $MFTMirr record 52...OK
Correcting differences in $MFTMirr record 53...OK
Correcting differences in $MFTMirr record 54...OK
Correcting differences in $MFTMirr record 55...OK
Correcting differences in $MFTMirr record 56...OK
Correcting differences in $MFTMirr record 57...OK
Correcting differences in $MFTMirr record 58...OK
Correcting differences in $MFTMirr record 59...OK
Correcting differences in $MFTMirr record 60...OK
Correcting differences in $MFTMirr record 61...OK
Correcting differences in $MFTMirr record 62...OK
Correcting differences in $MFTMirr record 63...OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sdc5 was processed successfully.
However after booting to Windows, I recently started to have corrupted files on that NTFS partition. It's not completely random. They are files I edited recently, somethink like 2 to 7 days ago. But I have not opened these files on windows at all!

On Linux I got this error message when I open the cinnamon folder:
Sorry, could not display all the contents of "devtools-web": Error when getting information for file '/media/m-okanochiwa/Solvatus/Workspace/CCAnalytics/devtools-web/QUOTES - all cat.xlsx': Input/output err
or

And worse, I cannot delete any corrupted file:

Code: Select all

$ rm index.pug 
rm: cannot remove 'index.pug': Input/output error
It's really bad!

Can you please help?

Thamls
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Pierre
Level 21
Level 21
Posts: 13182
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: NTFS partition files get corrupted after W10 boot!

Post by Pierre »

it does seem that Microsoft is making it even more difficult with it's products,
by constantly re-setting various setting back to it's own defaults, & regardless of any user settings.
- this is one reason why Fast-Start is always reset on any system upgrade.
so, do triple check, that is indeed Turned Off.

also: do run a Scandisk, from the Properties Section of the C: drive,
to check that the actual HDD is *not* failing on you.

those files that were edited recently - - was that done on the Linux side OR on the Windows side ?.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
Draknof
Level 1
Level 1
Posts: 16
Joined: Mon Apr 06, 2015 6:36 am

Re: NTFS partition files get corrupted after W10 boot!

Post by Draknof »

Hi Pierre, yes Microsoft is clearly not helping here...

I have turned off hibernation and made sure there is no hibernation file on C:
https://www.tenforums.com/tutorials/418 ... -10-a.html

I have run scandisk from W10, it fixed the errors. Lots of files were corrupted and disappeared :?
Otherwise the health indicators of the HDD are all green, therefore I don't think it is an hardware issue.

The corrupted files are all edited on Linux, I never opened them on Windows. They are on a dedicated data storage NTFS partition shared between Windows/Linux, which has been working just fine for 5+ years. Windows OS is not even installed on this partition.
altair4
Level 20
Level 20
Posts: 11419
Joined: Tue Feb 03, 2009 10:27 am

Re: NTFS partition files get corrupted after W10 boot!

Post by altair4 »

You know this almost .. almost sounds like you have a missing option in your fstab. It should be this:
UUID=A88E87178E86DCE6 /media/m-okanochiwa/Solvatus auto defaults,nofail,uid=1000,gid=1000,windows_names 0 0
This is a pretty specific thing though. It prevents you in Linux from saving a file to the ntfs partition with characters in the file name that Windows cannot interpret so it considers it garbage.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Mute Ant

Re: NTFS partition files get corrupted after W10 boot!

Post by Mute Ant »

It might be symptoms of a normal Your-Drive-Is-Failing fault.
o Accessory Disks can help by showing the SMART report.
o Any sectors Reallocated are an orange-alert. The drive is not as good as when it was manufactured. This is normal for an SSD, bad in a magnetic drive.
o Any sectors Pending Reallocation are red-alert. Some of the sectors holding your data are defective and difficult to read, but they can't be retired until you specifically discard the contents, by writing over them.

Linux doesn't need NTFS, so it's not really a Linux issue. I guess NTFS support in Mint is as complete as it can be without upsetting Microsoft. They own NTFS and are allowed to change anything they like, without publishing the details, it just happens.

Will your Windows run from a FAT32 partition, possibly just an enlarged EFI partition, containing a copy of your Windows OS? If Windows-10-in-FAT32 is a legitimate configuration, Linux can do read+write+repair without external help.

In any case, it won't hurt to treat your NTFS like a removable drive and do a 'safely remove' equivalent before you switch off Mint.
Locked

Return to “Storage”