clean partition

Asked by Jason Londono

I am unable to mount a partition. it is telling me the partition is unclean. I wanted to find a way of cleaning the partition so I could access the files on it. It is a windows partition, ntfs, i believe.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) said :
#1

Hi Jason,

You can repair some ntfs errors with:

ntfsfix - Check and fix some common errors, clear the LogFile and make Windows perform a thorough check next time it boots.

However you can still be able to mount unclean ntfs partitions either mounting it in read-only mode or forcing its mounting.

ie, for a read-only mount, for doing forensics you can do:

mount -t ntfs -o ro /dev/partition_name /mnt/mount_point

OR, if doesn't matter for you the risk of breaking things, you can force the mount as:

mount -t ntfs -o force /dev/partition_name /mnt/mount_point

BUT if you want to do it the right way you should try to repair that file system with native ntfs tools (mount it in a working windows system, repair it with its native tools, and do a clean unmount)

HTH

Can you help with this problem?

Provide an answer of your own, or ask Jason Londono for more information if necessary.

To post a message you must log in.