How to automatically mount hibernated NTFS to read-only?

Posted by Piotr on Ask Ubuntu See other posts from Ask Ubuntu or by Piotr
Published on 2013-11-02T14:04:23Z Indexed on 2013/11/02 16:01 UTC
Read the original article Hit count: 482

Filed under:
|
|

Is there any way to set up Ubuntu this way:

If I can't mount the filesystem in rw mode, then mount it in ro mode in the same directory.

In result I should not come across the notification that the system can't mount the filesystem (Skip or manual fix notification). SO when I start the system I should have my ntfs partitions mounted either in rw or ro mode depends if the windows is hibernated.

fstab entry:

#/dev/sda7
UUID=D0B43178B43161E0 /media/Dane           ntfs    defaults,errors=remount-ro 0        1

"mount -a" result:

The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sda7': 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.

I have ubuntu 13.10 and win8. I use uefi secure boot.

© Ask Ubuntu or respective owner

Related posts about filesystem

Related posts about ntfs