THE NTFS PARTITION IS IN AN UNSAFE STATE ERROR IN UBUNTU

QUICK FIX TO MOUNT WINDOWS PARTITION IMMEDIATELY

Read the error again. Just the second line which reads: Error mounting /dev/sdXY….
Note the /dev/sdXY thing. XY should be replaced with the error you see in your system. Now open terminal and use the following command:
sudo ntfsfix /dev/sdXY
where XY is the troublesome partition shown in the error. For example sda2 or sdb1 or sda5 (as in picture above). ntfsfix is already installed in Ubuntu systems.