I have a Windows 10 (ntfs) partition on my Xubuntu 14.04 laptop. I wanted to mount it automatically at startup, readonly if necessary since most of the time there is hibernation information on it. So I added the following to my /etc/fstab:
UUID=1AC27E82C27E6245 /media/me/DATA ntfs nobootwait,errors=remount-ro 0 0
Then I ran:
sudo mount -a
which gave me:
The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda5': 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.
Nothing surprising here. But since I am using the "errors=remount-ro" option in fstab, I would expect mount to have mounted the disk readonly after the error... Which it did not.
Is there a reason why "errors=remount-ro" is ignored in this case, and the disk is not mounted readonly ? Did I misunderstand this option ?
Note that I am not asking for an alternate solution; I just want to understand why this does not work as I expect it to.
Thanks !