If it happens that you are running a Dual Boot Windows/Linux setup on some of your machines, you probably encountered this situation already.
The thing is that when you do not do a Clean Shut Down or Restart on the Windows OS, or some error was generated, or the Hibernation is enabled in Windows, then you would not be able to mount the Windows partitions from Linux.
The issue could be solved if you re-login to Windows and do a clean restart. But sometimes, you just don’t have time to do that and you want to fix this from Linux. Then these 2 simple commands can do wonders. But please know that doing this has a potential of a data loss, so be careful.
- Make a directory where you will mount the Partition:
sudo mkdir /media/yourUser/WindowsPartitionName
- Mount and remove hiberfile:
sudo mount -t ntfs-3g -o remove_hiberfile /dev/sda1 /media/yourUser/WindowsPartitionName
More often than not, that is the only thing you have to do to gain access to the Windows partitions again.