LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-29-2009, 02:23 AM   #1
mynameisthomas
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedroa 10
Posts: 19

Rep: Reputation: 0
How to check NTFS file system in Linux ??


Hi,

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

Regards
 
Old 05-29-2009, 02:41 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Rep: Reputation: Disabled
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>
 
Old 05-29-2009, 02:55 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,353

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
Not NTFS - you need to chkdsk from Windoze.
 
Old 05-29-2009, 03:09 AM   #4
mynameisthomas
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedroa 10
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by linuxlover.chaitanya View Post
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.
 
Old 05-29-2009, 03:42 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 05-29-2009, 10:31 AM   #6
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 286

Rep: Reputation: 61
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.
 
Old 05-29-2009, 01:28 PM   #7
mjlouis
Member
 
Registered: Nov 2008
Posts: 48

Rep: Reputation: 16
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.
 
1 members found this post helpful.
Old 08-30-2012, 03:11 AM   #8
euxe
LQ Newbie
 
Registered: Aug 2012
Posts: 1

Rep: Reputation: Disabled
install NTFSProgs:

sudo apt-get install ntfsprogs

Check file system:

sudo ntfsfix /dev/<device name>
 
1 members found this post helpful.
Old 08-30-2012, 04:59 PM   #9
jefro
Guru
 
Registered: Mar 2008
Posts: 11,722

Rep: Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445
"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.
 
1 members found this post helpful.
  


Reply

Tags
file, fsck, ntfs, system


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NTFS File system support under RedHat Linux 5 anoopkjm Linux - General 1 05-09-2009 06:15 PM
how to mount windows file system (NTFS) to linux satyalinux Linux - General 5 07-01-2007 11:28 AM
How to mount ntfs file system in linux computer rahulrawat Red Hat 9 01-13-2006 01:01 PM
Changing file system from NTFS to Linux Ext2 Oesie Linux - Newbie 3 01-16-2005 06:47 PM
mounting ntfs file system on Redhat Linux 8.0 boy Linux - Hardware 2 12-02-2002 06:36 AM


All times are GMT -5. The time now is 02:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration