Run SFC /Scannow on external drives - gHacks Tech News

Run SFC /Scannow on external drives

The command sfc /scannow is a useful Windows command that runs a system file check to make sure essential files are not damaged or missing.

This can be mighty useful in many situations, for instance when Windows features don't work anymore, after an unexpected shutdown of the system, or after a virus attack.

The default command runs the file verification check on the active partition. What if you want to run a check on an external drive?

I ran into an issue today for instance where my main PC would not boot anymore. Windows ran an endless "trying to repair" loop but would not budge at all. I made the decision to connect the drive that Windows was installed on to another computer system, to run checks on it. One of those checks was the system file check using sfc.exe.

Run SFC /Scannow on external drives

sfc scannow external drive

You may run the sfc /scannow command on external drives, or internal drives with another Windows installation.

The process is nearly identical:

  1. Tap on the Windows-key on the keyboard, type cmd.exe, hold down the Ctrl-key and the Shift-key, and hit the Enter-key. This opens an elevated command prompt.

If you are interested in all switches that SFC supports, type SFC /?

The following command needs to be used to run the system file scan on another directory that is not the active system directory:

sfc /scannow /offwindir=d:\windows /offbootdir=d:\

Note that you need to replace d:\windows with the correct directory. If the Windows installation is on t:\win, replace the instance of d:\windows in the example above with those.

The Windows tool runs a file system verification scan on the selected Windows directory, and tries to repair any issues that it finds.

Note that I'm not entirely sure how this works if the host system runs a different version of Windows than the system that is checked.

You can run the other sfc commands as well on other Windows directories:

  • /verifyonly -- This is like scannow, but won't touch the files but simply validate them. Useful to verify without modifying any files potentially.
  • /scanfile=file -- This runs the scan on the selected file only, and not the full directory.

Messages that SFC may return

SFC may return the following messages:

  • Windows Resource Protection did not find any integrity violations - No issues were found. This is good usually, unless you try to repair something.
  • Windows Resource Protection could not perform the requested operation -- You won't get this error when you run SFC on an external drive or directory. If you do get the message, run SFC in the Safe Mode environment.
  • Windows Resource Protection found corrupt files and successfully repaired them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log -- Consult the log for information on what it fixed.
  • Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log -- Like above, but now you need to consult the log to find out what SFC could not fix.

Closing Words

The file verification check can be useful, but it is not a 100% method of correcting Windows issues. I had to restore an earlier backup for instance, as the sfc command would not find anything wrong with the system files.

Now Read: SFCFix may help if SFC does not fix issues

Summary
Run SFC /Scannow on external drives
Article Name
Run SFC /Scannow on external drives
Description
Find out how to run file system verification scans using the sfc tool of Windows on external Windows installations and drives.
Author
Publisher
Ghacks Technology News
Logo




  • We need your help

    Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

    We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.

    If you like our content, and would like to help, please consider making a contribution:

    Comments

    1. ddk said on May 21, 2017 at 10:58 pm
      Reply

      “If the Windows installation is on t:\win”

      From the article above. That looks like the letter “t”. I only have 2 Windows installations on drive C and D according to explorer. Never have put anything on T is there a reason anyone would want to?

      1. jasray said on May 22, 2017 at 12:06 am
        Reply

        Oh yeah, for sure. I mean, “t” is only being used as an example–could have put “z” or some other letter. Desginating a drive as “t” really comes in handy when “testing” a version of an Windows. Kind of jogs the memory “t” for testing.

        sfc /scannow /offwindir=t:\windows /offbootdir=t:\

        I like “z” alot; in fact, I don’t have a drive with an assigned letter C, D, E, etc.

        sfc /scannow /offwindir=z:\windows /offbootdir=z:\

        Old school learned to go backwards with drive letter assignments for various purposes. It makes for some great reading/research.

        1. Danie said on December 20, 2017 at 1:35 pm
          Reply

          I just keep getting
          ‘… could not start the repair service’

          What am I meant to do?

    2. Gary D said on May 22, 2017 at 1:48 am
      Reply

      If sfc doesn’t fix the problems, I use sfcfix v3.0 which can be downloaded from Major Geeks.

      Refer to Martin’s blog from 6/11/15. You can find the blog easily by typing “sfcfix” (without the quotation marks) into the search box above right.

    Leave a Reply