Surely if you have a dual installation of Windows and Linux on your machine, at some point you will have received the following error when trying to open a shared Windows/Linux partition from your Linux distribution:
The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting)
Specifically, it gives us an error similar to the following; in my case:
Error mounting /dev/sda5 at /run/media/andres/compartido: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sda5" "/run/media/andres/compartido"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda5': Operación no permitida The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.
This error is caused in Dual boot machines that have Windows from version 8 and Linux when trying to mount a partition; this error is due to the fact that Windows, in its attempt to completely take over your machine and the world, never knows (or does not want to know) about the existence of other Operating Systems like Linux and does this kind of abuse...
Windows Fast Startup
All this trouble is due to the fact that Windows introduces a new feature starting with Windows 8 to reduce the startup time of the Operating System called Fast Startup or Quick Startup (Fast Startup can also be found in Windows 10); when you turn off your machine through the shutdown process Windows saves system information in a cache and also keeps the partitions mounted making it impossible for our Linux distribution to mount the partitions again (since another system -Windows- has them mounted) .
Disable in Fast Startup in Windows
Going back to what interests us, which is to solve this error by disabling this feature (Quick Start); we must go to Windows and start the Control Panel.
Let's go to power options:
Choose the behavior of the start/stop buttons:
And we deactivate the checkbox: "Enable fast startup":
In summary:
Control Panel > Power Options > Choose the behavior of the start/shutdown buttons > uncheck the "Enable fast startup" checkbox
By turning off our computer and starting our Linux distribution you should be able to mount all the partitions shared between both systems without any problem.
Develop with Laravel, Django, Flask, CodeIgniter, HTML5, CSS3, MySQL, JavaScript, Vue, Android, iOS, Flutter