How To Solve NTFS Mount Problem In linux(Ubuntu or deepin os) And Windows Dual Boot or mount error

Problem :The NTFS partition is in an unsafe state in ubuntu
or you are not able to move files 
The main cause of this is because of windows unexpectedly shutdown.

windows suddenly hang and when restart ubuntu it show mount error . After upgrading to Windows 8, I often see an error “The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully” when I try to mount the NTFS partitions in Ubuntu. The full text of error is as following:
Error mounting /dev/sda5 at /media/itsfoss/01BC76G7Z2628FB0: Command-line `mount -t “ntfs” -o “uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177” “/dev/sda5” “/media/itsfoss/01BC76G7Z2628FB0″‘ 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/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.

Reason: Fast Startup feature of Windows 8

Microsoft introduced a new feature in Windows 8 to reduce the boot time in otherwise slow Windows OS. This feature is called Fast Startup. In normal shut down process power is removed form all components such as CPU, RAM, CD-Rom and hard disks. But in fast start up, Windows 8 saves some system information such as caching the registry etc to a file during shutdown. Part of the metadata about the state of all mounted partitions at the time of turn off is among these system information. This reduces the boot time of the Windows 8 and it creates the trouble for Ubuntu.
Since the information about the NTFS partition is stored in Windows 8, this prevents Ubuntu to mount them as mounting them in Linux will alter the metadata of the partitions. This is why it is in protected mode and you cannot mount it (without being root).

Solution: Disable Fast Startup in Windows 8

Temporary solution of this problem will be to boot in to Windows 8 and restart it. Restarting is different from shutdown and it should release the partition metadata from the stored system information. But this will only be a temporary solution because when you use Windows 8 next time, you’ll face the same problem again.
Permanent solution would be to disable the fast startup in Windows 8.

How to disable fast startup in Windows 8:

If you know how to go around Windows, use the following path to disable fast startup.
Go to Control Panel > Hardware and Sound > Power Options > System Setting > Choose what the power buttons do and uncheck the Turn on fast startup box

Further troubleshoot

unable to to move files 
The main cause  is because of windows unexpectedly shutdown.


open terminal
sudo ntfsfix /dev/sdXY

where XY is the partition. For example sda2 or sdb1


open disks

as you can see i have selected partition 5 and it is sda5 for different partition select different partion and you can see different number



Though the tutorial is meant for Ubuntu 14.04, 14.10 etc, the same tutorial should also help all other Linux distributions. Any questions and suggestions? Feel free to hit the comment box.

Comments

Popular posts from this blog

cpanel exam CPSP Answers

How to install zimbra collaboration suite 8.8.11 on CentOS 7

awstats installation