I am getting an error when I try to access my NTFS drive from ubuntu.
Unable to access “My Drive”
Error mounting /dev/sda6 at /media/ubuntu/Media Center: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda6" "/media/rolindroy/Media Center"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sda6': 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 optionAny help would be greatly appreciated!
26 Answers
If you can't access the drive, execute the following command:
sudo ntfsfix /dev/sdXYwhere XY is the partition
e.g sda2 or sdb1
Then, mount with:
sudo mount -o rw /dev/sdXY 13 I solved the problem with shutdown Windows by cmd
shutdown /sThis is because Windows 8 and 10 offer a "Fast Startup" option that depends on a "non-complete" shutdown
You can disable fast startup by following these steps under "Power Options"
6If you have access to booting and mounting the drive under Windows, do as the message indicates and remove it from the hibernation or fast restarting, or any other special state. You would have to do those things by booting into Windows.
You may also run chkdsk on it from Windows.
If you don't have immediate boot access under Windows for the drive, do as the message says and mount it as read only.
Then access the drive and copy the important data. You can then repair the drive under Ubuntu by reformatting the partition and bring the backed up data back.
Mounting drive as read only:
$ sudo mount -o ro /dev/[partition /media/[mounting point]Another option is to repair the disk under Ubuntu with ntfsfix:
$ ntfsfix /dev/[partition] 1 This is because your "Windows" system is in a intermediate state, may be its in hibernation mode or not full shutdown, try a system restart on your windows and shutdown the system fully and check the mount on your Ubuntu, it should work.
This should be because your "Windows" system is in a intermediate state (not a full shutdown of system before powering off the hard drive, like using hibernation for example).
Restart on Windows, shutdown down system fully and it should work.
If you try this on a command line term session, you should have this kind of explanation
Do:
sudo mount -o ro /dev/[partition /media/[mounting point]The output will be:
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. Log on to windows and then restart to Ubuntu. Works for me! But seriously I don't know whether there is a permanent solution to that.
2