The NTFS partition is in an unsafe state. Please resume and shutdown

01. April 2018 Ubuntu 0
The NTFS partition is in an unsafe state. Please resume and shutdown

Today I ran into an issue on my Ubuntu box. I had an NTFS partition mounted via /etc/fstab . I had booted my PC into Windows for some reason and booted back to the Ubuntu and the system got stuck in the maintenance mode.

 

The solution to fix the boot issue was to comment the fstab entry by going into maintenance mode and i was able to boot to my Ubuntu Box.

 

Mounting the NTFS disk again

 

Once I got back to Ubuntu, I have uncommented the fstab entry and tried to mount it with mount -a command, but it was failing with below message

 

[email protected]:~# mount -a
WARNING: blksize option is ignored because ntfs-3g must calculate it.
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

The Solution to this issue was to run ntfsfix command on the partition which was failing. The output is below,

[email protected]:~# ntfsfix /dev/sda5
Mounting volume... The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sda5 was processed successfully.

Once the partition was fixed, I was able to mount the disk properly,

[email protected]:~# mount -a
WARNING: blksize option is ignored because ntfs-3g must calculate it.

[email protected]:~# df -h |grep DATA
/dev/sda5       196G   28G  168G  14% /DATA

If this article helped you to fix the issue, please comment below. Thank you.


Leave a Reply

Your email address will not be published.