LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to check NTFS file system in Linux ?? (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-check-ntfs-file-system-in-linux-729250/)

mynameisthomas 05-29-2009 03:23 AM

How to check NTFS file system in Linux ??
 
Hi,

Is there any command in Linux to check NTFS file system; like fsck.vfat?

Regards

linuxlover.chaitanya 05-29-2009 03:41 AM

Now what are you trying to do? A file system check that you perform on ext3 while you have an improper shutdown? And why do you want to do it from linux?
There is an option in fsck though that will allow you to give which FS type you want to check.

fsck -t <FS_type>

syg00 05-29-2009 03:55 AM

Not NTFS - you need to chkdsk from Windoze.

mynameisthomas 05-29-2009 04:09 AM

Quote:

Originally Posted by linuxlover.chaitanya (Post 3556250)
Now what are you trying to do? A file system check that you perform on ext3 while you have an improper shutdown? And why do you want to do it from linux?
There is an option in fsck though that will allow you to give which FS type you want to check.

fsck -t <FS_type>

Actually, I want to check and repair a NTFS file system from Linux; like we do we with fsck.ext3 in case of an improper shutdown.

Sure, I can use chkdsk in windows to do it, but I am interested in knowing a linux way for it.

So far, I have found that fsck -t doesn't deal with NTFS.

linuxlover.chaitanya 05-29-2009 04:42 AM

You can do that using fsck.ntfs. But I have never done this and can not guarantee its usage and if it will repair ntfs partition though this option is available.

fpmurphy 05-29-2009 11:31 AM

One option is a tool like Koppix. Knoppix by default has read only access to NTFS drives, but you can turn on write access using the Captive NTFS tool.

mjlouis 05-29-2009 02:28 PM

Eep! Wait a sec! Has this NTFS partition got any important data on it? Email, contacts, anything that you'd be annoyed about if it was lost?
If the answer's yes, then try to mount the partition under Linux in read-only mode and get that data off and backed up. THEN start any repairs on it.
Seriously - I've been there before and I know how much swearing is involved when a filesystem gets the sulks.

euxe 08-30-2012 04:11 AM

install NTFSProgs:

sudo apt-get install ntfsprogs

Check file system:

sudo ntfsfix /dev/<device name>

jefro 08-30-2012 05:59 PM

"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. " http://linux.die.net/man/8/ntfsfix


Windows real install or a live PE should be used to properly fix or check it.


All times are GMT -5. The time now is 10:08 PM.