Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
"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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.