Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new 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

1 Answer 1

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 grc.com 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 or ask your own question.