1

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?

mrówa
  • 191
  • 6
  • 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 06 '13 at 18:08
  • possible duplicate of [How to fix a damaged/corrupted NTFS filesystem/partition without losing the data on it?](http://superuser.com/questions/298729/how-to-fix-a-damaged-corrupted-ntfs-filesystem-partition-without-losing-the-data), also see: http://superuser.com/questions/38181/ntfs-partition-repair-recommendations?rq=1, http://superuser.com/questions/128821/fix-ntfs-partition?rq=1, http://superuser.com/questions/216677/recovering-broken-ntfs-partition?rq=1 – Ƭᴇcʜιᴇ007 Apr 06 '13 at 18:09
  • @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 06 '13 at 18:22

1 Answers1

0

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.

cybernard
  • 13,380
  • 3
  • 29
  • 33