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).
sudo ntfsfix /dev/sda3
is a Linux alternative that works in some cases. It fix common errors and force Windows to check NTFS. – L. D. James Oct 07 '16 at 15:56ntfsfix
but I have read that I should not usentfsfix
command lightly as it can damage my data. What does it do exactly? – Nirmal Raj Oct 07 '16 at 15:56Canonical
document page under Bugs, it says there ar no know prlbems with ntfsfix. It also asks for an email to the development team if someone experiences problems. I have used it quiet a few times without problems. – L. D. James Oct 07 '16 at 16:00ntfsfix
only if it is corrupt? or will it apply to my case also? – Nirmal Raj Oct 07 '16 at 16:05Answer
rather than comment. I deleted the answer. This is my response to your comment: You'd most likely get better mileage by using Windows, especially if the culprit is hibernation. The problem often happen with an abnormal shutdown such as power lost. If that is the case, there is a chance of having some data lost whether you check the system with Windows or Linux. I'd use Windows if it were convenient. But I wouldn't have a problem using Linux either. – L. D. James Oct 07 '16 at 16:10ntfsfix
clears the hibernation data on your Windows partition. In Windows 8 and above, if Fast Boot is on, even shutting down won't work. However, sometimes even with Fast Boot off it still doesn't work. If you have a hibernated session that you want to keep, don't use it. Otherwise, it's fine. – TheWanderer Oct 07 '16 at 19:42