4

Recently, I set up a nice symlink system so my documents and various things are synced between my Ubuntu and Windows installs. However, this depends (obviously) on my Windows partition being mounted and being healthy.

The problem is that Windows and NTFS like being annoying -- marking the filesystem as "dirty" and requiring ntfsfix to repair it to allow a drive mount.

Is there a way to run ntfsfix if the partition fails? If so, how? Is this even a safe thing to do?

Kaz Wolfe
  • 34,122
  • 21
  • 114
  • 172

1 Answers1

2

Is there a way to run ntfsfix if the partition fails

Yes, a method would be to create a UDEV rule (example with an external USB) and add a "ACTION" to run a script that. In that script you can check the health of the disk and, when needed, run ntsfix.

Is this even a safe thing to do?

I have my doubts. It will delete data from your Windows if that data is only stored in the Windows hiberfile. The correct way to fix this is by turning off hibernation/suspend/fast boot from Windows.

Command line powercfg -h off to turn it off.

Rinzwind
  • 299,756