How to check NTFS file system in Linux ??
Hi,
Is there any command in Linux to check NTFS file system; like fsck.vfat? Regards |
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> |
Not NTFS - you need to chkdsk from Windoze.
|
Quote:
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. |
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.
|
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.
|
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. |
install NTFSProgs:
sudo apt-get install ntfsprogs Check file system: sudo ntfsfix /dev/<device name> |
"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 05:50 PM. |