147

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 option

Any help would be greatly appreciated!

rolindroy
  • 1,581
  • 2
  • 10
  • 6

6 Answers6

281

If you can't access the drive, execute the following command:

sudo ntfsfix /dev/sdXY

where XY is the partition

e.g sda2 or sdb1

Then, mount with:

sudo mount -o rw /dev/sdXY /mounting point

Mounting point can be local or external drive (like a USB drive), e.g. /media/YourUserName/MountingPointName.

Artur Meinild
  • 31,035
58

I solved the problem with shutdown Windows by cmd

shutdown /s

This 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"

https://itsfoss.com/solve-ntfs-mount-problem-ubuntu-windows-8-dual-boot/

abu_bua
  • 11,313
Ghazzawi
  • 597
20

If 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]
L. D. James
  • 25,444
4

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.

BDRSuite
  • 3,196
  • 1
  • 13
  • 11
2

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.
Kaz Wolfe
  • 34,680
Bob
  • 21
  • 1
1

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.