Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm testing my friends external HDD, which can't be accessed on Windows 7 - it installs as USB device, but does not mount. On linux, SMART readings show, that the disk has too many bad sectors, but I can still mount it and read the files (didn't try writing). I've started reading files using find . -type f and dd if={} of=/dev/null -bs=256k and I've found just a few files with I/O Errors. Unfortunately, there's also at least one path, that did not exist in the directory before (corrupted MFT).

Question is: What is the proper way to fix such partition corruption without losing data (apart from the already corrupted) and make it mountable on windows, so it wouldn't need linux to copy the data from?

share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, Dave M, Scott, Dave, Nifle Apr 8 '13 at 17:11

This question was marked as an exact duplicate of an existing question.

Regardless of what you do first backup as much data as you can while you can still read it in Linux. If you've run out of reallocation sectors, and you're still getting errors, it's time to buy a new drive ASAP. – Ƭᴇcʜιᴇ007 Apr 6 '13 at 18:08
@techie007: yes, it's going to be replaced, but I'd like to just fix the NTFS. I've stumbled upon those questions, but they differ in some points (like: not mountable at all & throwing kernel erros) - this is the only reason I've asked this question. – mrówa Apr 6 '13 at 18:22

First since you can mount it, copy the critical files to another hdd first.

Boot from Windows 7 install CD. After selecting English and US on the next screen select repair Then command prompt.

chkdsk /R c:

When finished reboot and see what happens.

If important files are damaged by bad sectors buy SpinRite from and run that. If you have a lot of bad sectors this program will take a crazy amount of time to run, but it works. I have had disk with a lot and lots of bad sectors run for a month.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .