I recently installed ubuntu(<12 hours) and I was able to mount my ntfs partitioned drives (orginally from Win 10)in ubuntu using this command
sudo mount -t ntfs-3g -o ro /dev/sda3 /media/win
When I try the same command with read permissions
sudo mount -t ntfs-3g -o rw /dev/sda3 /media/win
I get the following error
The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda3': Operation not permitted 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.
but I have shut down Windows 10 the normal way. What is the reason for this error and how can I solve it?
Part 2:
When mounting the drives in read only mode, I had to do that everytime I booted into the OS. Is there any way I can automate that(like create a shell script that will do the mounting for me and runs everytime the OS is booted).