Fix your Windows partition in Ubuntu (ntfsfix)

by Koree S. Monteloyola


Use the 'ntfsfix' command in Ubuntu to fix your NTFS partitions in Windows, In order to use the 'ntfsfix' command you have to install 'ntfsprogs' (tools for doing neat things in NTFS partitions from Linux) first

You don't have to install  'ntfsprogs' if the 'command not found'' message doesn't appear when you execute the 'ntfsfix' command, to install 'ntfsprogs', try the following commands:

$ apt-cache search ntfsfix
ntfsprogs - tools for doing neat things in NTFS partitions from Linux
$ apt-get install ntfsprogs

Another thing that you should do before executing the 'ntfsfix' command is to make sure that the Windows partition you want to fix is not mounted on Ubuntu, otherwise, use the 'umount' command to unmount it; note that my Windows partition is loaded in '/dev/sdb5', which is using the '/media/disk' mount point, in your case these paths may be different.

Use the command below to disassociate your windows partition to the mount point:

$ sudo umount /media/disk

After succesfully executing the umount command, you may now finally use the 'ntfsfix' command, again '/dev/sdb5' is the path to my Windows partion, most likely yours is different.

$ sudo ntfsfix /dev/sdb5

You'll see the following messages after, messages may vary based on the process that has to be done on your partition, this one is for a successful process (obviously! hehe)

Processing of $MFT and $MFTMirr completed successfully.
NTFS volume version is 3.1.
NTFS partition /dev/sdb5 was processed successfully.




blog comments powered by Disqus