Hw to find which files are affected by a bad sector?

  1. Posts : 53
    Windows 7 64 bit

    Hw to find which files are affected by a bad sector?

    I've just cloned one hard drive to another using Acronis True Image (I've done this many times before).

    This time I had a handful of bad sector errors on the source drive which I had to ignore in order for the cloning process to continue.

    I have the bad sector numbers, how can I use these to find out which files are affected?

    I also checked Event Viewer and it of course reports Bad Block in a few places which must correspond to the sector errors but of course there's still no indication of which files are affected.

      My Computer

  2. Posts : 35,624
    Win 10 Pro (21H2) (2nd PC is 21H2)

    How do you identify the files?

    a. O&O defrag comes to mind - it has a cluster inspector tool which lets you explore the disk at cluster level as I recall.

    b. Have a look at this:
    Finding out which file is affected by a bad sector – Home of JPEG-Repair Toolkit | Photo Repair Service | File Recovery

    I commend Hard Disk Sentinel, but you need the Pro (licensed) version. I don't know if the trial will help here.

    c. You might also try a recovery program such as Recuva. That scans a disk in normal or deep scan mode. When attempting to recover deleted and partially over-written files it gives an indication of the likely success of recovery. I don't know if it would give an indication in this context as the files haven't actually been deleted.
      My Computers

  3. Posts : 53
    Windows 7 64 bit
    Thread Starter

    Thanks very much, I'll look into your suggestions.
      My Computer

  4. Posts : 891
    W10-2009 19042.1348

    I was going to suggest Sysinternals DiskView https://docs.microsoft.com/en-us/sys...loads/diskview which I have used (briefly) before, but it is slightly annoying: you pick a cluster (not sector) from a graphical display (grid), and it tells you the file - but there is no way to specify the cluster number - you either have to count (!) from the top, or guess a position in the display, see where you landed and (probably) try again - a right pain.

    As I have a copy of HD Sentinel, I gave it a try, but it turns out its not the Pro vn. But on the page that Dalchina linked is a suggestion (about half-way down) to use MS own tool, NFI.exe. The provided link is dead (MS are good at that), but a quick search found this page windows - How do I find if there are files at a specific bad sector? - Super User which points to somewhere NFI can be found (I won't include the link here just in case) - but I downloaded it, and it runs (in an admin cmd window).

    It is simple to use: NFI X: <sector>

    and returns the file name (if any). To see if it matched the arbitrary clusters I had picked with DiskView, I did a check - and in so doing, had to convert sectors to clusters. Its not as if that is difficult, but I had a right job confirming my (default for NTFS) cluster size of 4kB = 4096B = 8 x 512-B sectors (I worked it out myself, but wanted confirmation). In the end, HD sentinel told me, but many other disk utilities failed to do so. But in going back to grab the link to that superuser web page, I read a bit further and saw that the built-in fsutil windows utility can do a better job (also needs an admin cmd prompt):

    fsutil volume querycluster X: <cluster>

    so you will have to convert your iffy sector numbers to logical clusters - sorry!

    Update: It turns out that my copy of HD Sentinel can do the job: start a disk surface test, but hit 'View' instead of 'Start test', and it opens a grid of the disk, and hovering the mouse over it shows the sector numbers - click one cell, and it shows the contents as a Hex view:
    Hw to find which files are affected by a bad sector?-sector-check-1.png
    here I just show the top of the large window. But at the bottom is a selector:
    Hw to find which files are affected by a bad sector?-sector-check-2.png
    which when clicked, shows the associated file.

    So yet another way to skin the cat!

    Update 2: The page linked by Dalchina about HD Sentinal warns about the risks of trying to read the damaged sector(s), and also mentions that fsutil command in a long comment by 'Gabriel'.
    Last edited by mngerhold; 08 Jul 2020 at 14:09. Reason: added snips
      My Computer

  5. Posts : 53
    Windows 7 64 bit
    Thread Starter

    Thanks a lot, I'll look into that one as well. :)
      My Computer

  6. Posts : 7,484
    Windows 10 Home 20H2

    mngerhold said:
    there is no way to specify the cluster number
    Is the "30079922" shown below the cluster number?
    Hw to find which files are affected by a bad sector?-cluster-properties.jpg
      My Computer

  7. Posts : 891
    W10-2009 19042.1348

    The answer is, of course, yes! But you did not specify it, you clicked on it blindly (or almost blindly). if you dbl-click on a cluster it displays the info you show above. But you cannot enter a specific cluster number to see its properties (not in my vn 2.40), you just click in about the right region and hope. Of course, you can increase the zoom and click on them one-by-one, but there is no need, as the first click reveals the file occupying that space.
      My Computer


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:03.
Find Us

Windows 10 Forums