Page 1 of 1

Solved: Check a ntfs file system in linux

Posted: Mon Feb 07, 2011 9:47 pm
by mister_v
Hi,

Anyone knows how to do a file check on a ntfs-partition in linux?

I tried:

Code: Select all

sudo fsck /dev/sdf1
fsck from util-linux-ng 2.17.2
fsck: fsck.ntfs: not found
fsck: Error 2 while executing fsck.ntfs for /dev/sdf1
Without success

Re: Check an ntfs file system in linux

Posted: Mon Feb 07, 2011 11:48 pm
by Chris
As far as I know, it isn't supported yet.

Best is to connect your disk to Windows system and do the check.

Re: Check an ntfs file system in linux

Posted: Tue Feb 08, 2011 4:38 pm
by Chris
I did found a program that might work: ntfsfix.
Desription:
ntfsfix is a utility that fixes some common NTFS problems. ntfsfix is NOT a Linux version of chkdsk. It only repairs some fundamental
NTFS inconsistencies, resets the NTFS journal file and schedules an NTFS consistency check for the first boot into Windows.

You may run ntfsfix on an NTFS volume if you think it was damaged by Windows or some other way and it cannot be mounted.
when run it gives:

Code: Select all

sudo ntfsfix /dev/sdf1
[sudo] password for user: 
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
NTFS volume version is 3.1.
NTFS partition /dev/sdf1 was processed successfully.

Perhaps this helps.

Re: Check an ntfs file system in linux

Posted: Wed Feb 09, 2011 8:01 pm
by mister_v
Thanks for the info.

Did a scan on windows machine,
and everything is fine.