Read-only filesystem with corrupt Windows installation

I installed Windows 10 using the same disk alongside Debian in another partition, and it started to appear this error. My solution was to run as superuser the ntfsfix command on the partition with the problem.

$ sudo ntfsfix /dev/sdx