eHow launches Android app: Get the best of eHow on the go.

How To

How to Fix Windows XP ntfs.sys Errors Using a Linux LiveCD

Member
By Allison Kipta
User-Submitted Article
(7 Ratings)
KNOPPIX
KNOPPIX
KNOPPIX logo from http://knoppix.org

Is your Windows XP computer giving you the Blue-Screen-of-Death? Not booting to Windows? Are you seeing the error "Stop 0x24" or "NTFS_FILE_SYSTEM" or other problem related to ntfs.sys? Before slicking the disk and losing all your files and settings with a new installation of Windows, try using the utilities on a LiveCD to fix it. A LiveCD is a CD (or DVD) that will boot an alternate operating system without installing or changing any of the files on your hard drive. This makes them ideal troubleshooting and repair tools. In this eHow, we're using KNOPPIX, a version of Linux.

Difficulty: Moderately Challenging
Instructions

Things You'll Need:

  • A second, working computer with a CD burner and Internet access
  • A blank CD-RW disc
  1. Step 1
    CD
     
    CD

    Download the latest KNOPPIX LiveCD image and burn it to CD: Browse to http://www.knoppix.org/ and download the latest image file. The file you'll download is an archive image of a CD and will have a .iso file extension. Use a CD/DVD burning application such as Roxio CD Creator or Nero Burning ROM to burn the .iso image to a blank CD. In Nero, simply insert a blank CD-RW disc, select File > Open, browse to the .iso file, and click the "Burn" button. Refer to the Resources section for help with downloading KNOPPIX and burning the CD.

  2. Step 2
    Setup (pcsupport.about.com)
     
    Setup (pcsupport.about.com)

    Configure the failed computer to boot from CD/DVD: Your system normally boots from a hard drive, but if Windows won't load, you'll need to boot from the CD to make this fix. Turn the failed system off, then on again. When the prompt for entering the Setup utility appears, press the key specified. Depending on your computer's manufacturer, this might be the F1, F2, DEL, ESC, F10, or F12 key. Once in the Setup utility, navigate to the boot device section and select the CD/DVD drive as the first boot device. Navigation directions are usually provided on each screen. When you're done, save the settings and exit. Some systems will allow you to select a boot device without having to go into the Setup utility and making a permanent change. This is preferred as it eliminates having to go back into Setup to change the boot device back to the hard disk after you've made the fix. Refer to the Resources section for help with booting from a CD.

  3. Step 3
    KNOPPIX desktop
     
    KNOPPIX desktop

    Boot to KNOPPIX: Insert the KNOPPIX CD in the failed computer and reboot. This may require turning the computer off and then on again. The computer should boot from the CD into the KNOPPIX operating system. The screenshot for this step shows the KNOPPIX desktop. A Web browser opens by default. You can minimize or close it to get it out of the way.

  4. Step 4
    KNOPPIX Terminal Program icon
     
    KNOPPIX Terminal Program icon

    Open a terminal window: A KNOPPIX shell window is launched by clicking the Terminal Program icon at the bottom of the screen (see screenshot).

  5. Step 5
    Shell window, switching to root
     
    Shell window, switching to root

    Become the root user: To switch users to root, type "su" (with no quotes) in the shell window and press the Enter key (see screenshot).

  6. Step 6
    cfdisk utility
     
    cfdisk utility

    Use the cfdisk utility to display partitions: In the shell window, type "cfdisk" (with no quotes) and press the Enter key. cfdisk is the Linux partition editor, but you'll use it to only display partitions on the failed computer. The screenshot here shows one partition, hda1. If you have more than one hda listed, write down all the ones listed with NTFS file systems. You'll need this information in the next step. When you've finished making your list, quit the cfdisk utility by pressing the "Q" key.

  7. Step 7
    ntfsfix utility
     
    ntfsfix utility

    Use the ntfsfix utility to fix ntfs.sys: In the shell window, type the command "ntfsfix /dev/hda#" (with no quotes, and where hda# represents each hda on the list you made in the previous step). Repeat this step for each hda/NTFS partition on your list. As depicted in the screenshot, the ntfsfix utility will respond each time with "OK" and "NTFS Partition /dev/hda# was processed successfully" if everything goes well.

  8. Step 8

    Exit KNOPPIX and remove the CD: Exit the KNOPPIX operating system by right-clicking on the desktop and selecting the "Log Out" option from the menu. When KNOPPIX has shut down, remove the CD and turn the computer off.

  9. Step 9

    Configure the failed computer to boot from hard disk: As you did in Step 2, enter the Setup utility, but this time configure the system to boot from the hard disk instead of CD/DVD. If you used the temporary boot device provision to boot from a CD only once, this won't be necessary. Although it may take a long time, Windows should boot if the ntfsfix utility was successful. Be patient. As long as a blue screen does not reappear, you've likely made the fix.

Tips & Warnings
  • If your Windows installation is unrepairable, you may still be able to rescue files and save them to a safe location.
  • You can also use the applications that come with KNOPPIX to perform many common tasks such word processing, image editing, and browsing the Internet.
  • There is no guarantee that this procedure will work for all NTFS errors.
  • Do not try these procedures on a good, working system.

Comments  

| View All 10 Comments

skyking said

Flag This Comment

on 7/9/2009 Step 6's "cfdisk" command didn't work for me, as I'm using Knoppix version 6. What I typed was "fdisk -l" and that worked (but instead of showing me hda#, it was sda# for me). All of the other steps worked for me, and my computer is working again! Thank you so much!

akipta said

Flag This Comment

on 5/31/2009 Thank you readers, for pointing out that Knoppix version 6.x doesn't seem to be working with the instructions in this eHow article. I tested 6.x last night and indeed, "the latest version" does not want to play nice. Using 5.x is the key to ensuring all the steps for recovering from ntfs.sys errors with the LiveCD work without a hitch. Fortunately, there are many places to download the older versions. My apologies for the frustration and confusion. I'll look into editing the article to specify a version number. I think I used 5.1.x.

lgwhitlock said

Flag This Comment

on 5/24/2009 For some reason step 6 list using "cfdisk", but I am getting an error with that. However "fdisk -l" worked fine for me and the rest of the tip worked flawlessly.

lgwhitlock said

Flag This Comment

on 5/24/2009 I do not know all the technical reasons why 6.0.1 won't allow writing to hard drive partitions but suffice to say you must use 5.x.x in order for this article to work. I got excited when I found this and tried the newer version only to run into problems. Hopefully this will help others having the same issue.

Flag This Comment

on 3/16/2009 I've tried running this as above but am running into a problem. The only drive that is recognized is hda, which is the Knoppix cd. It seems that the other drives (the ones I need to fix) are mounted as directories (e.g. /media/sda1), and as such ntfsfix won't work (it gives an error that the target is a directory). Any suggestions? I'm using version 6.0.1 of Knoppix, is it possible that this is a version change from the Knoppix you were able to get to work?

Subscribe

Post a Comment

Post a Comment

Related Ads

  • Have you done this? Click here to let us know.
I Did This
Tags
Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy .   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License. † requires javascript

eHow Computers
eHow_eHow Technology and Electronics