Could someone explain the new chkdsk options? What's an online scan?


Recommended Posts

Could someone please explain what the new chkdsk options in Windows 8 mean/do?

 

  • /scan - Can only be used with a NTFS disk. Runs a online scan on the volume.
    • /forceofflinefix - Can only be used with a NTFS disk. Must be used with /scanswitch. Bypass all online repair; all defects found are queued for offlne repair (ex: "chkdsk /spotfix").
    • /perf - Can only be used with a NTFS disk. Must be used with /scan switch. Uses more system resources to complete a scan as a fast as possible. This may have a negative performance impact on other tasks running on your system.
  • /spotfix - Can only be used with a NTFS disk. Runs spot fixxing on the volume.
  • sdccleanup - Can only be used with a NTFS disk. Garbage collect unneeded security desciptor data. Includes the functionality of /f.
  • offlinescanandfix - Runs an offline scan and fix on the volume.

 

What is an "online" scan?  What is an "offline scan"?  How are these different from a normal /F or /R scan?  

 

Windows 8's NTFS implementation is capable of online healing, which means that a drive needing NTFS structure repairs doesn't have to be unmounted. For more severe problems, though, offline scanning is required. The switch to offline scanning is on a need-to basis and is generally automatic; for fringe cases, you can force it with the /forceofflinefix if you so require.

 

Online scanning therefore means that the disk doesn't have to be unmounted to be scanned (meaning you can repair the boot drive without having to restart or an external drive without having to make it unavailable during the scan). Offline scanning means the scanned drive is unavailable during the scan, which means rebooting in command-line mode if it is the boot drive.

Could someone please explain what the new chkdsk options in Windows 8 mean/do?

 

  • /scan - Can only be used with a NTFS disk. Runs a online scan on the volume.
    • /forceofflinefix - Can only be used with a NTFS disk. Must be used with /scanswitch. Bypass all online repair; all defects found are queued for offlne repair (ex: "chkdsk /spotfix").
    • /perf - Can only be used with a NTFS disk. Must be used with /scan switch. Uses more system resources to complete a scan as a fast as possible. This may have a negative performance impact on other tasks running on your system.
  • /spotfix - Can only be used with a NTFS disk. Runs spot fixxing on the volume.
  • sdccleanup - Can only be used with a NTFS disk. Garbage collect unneeded security desciptor data. Includes the functionality of /f.
  • offlinescanandfix - Runs an offline scan and fix on the volume.

 

What is an "online" scan?  What is an "offline scan"?  How are these different from a normal /F or /R scan?  

 

 

I believe that they mean the volume itself is either "online" mounted or "offline" unmounted.   Or however it was named before this.  Like when you did /F and or one of the other commands that would unlink/unmounts the volume and then scan/fix it.  If you did it or tried to do it to the primary partition/volume like C:\ it would tell you that you have to restart for it to scan.  But when you did it to other volumes or hdds running on the system it would tell you that any open links to those would be broken and that apps/services could mess up on you etc.

Thanks for the info!  That's awesome, because my boot drive is an 8-year-old 500GB, and it now has 7 bad sectors, so I'm glad to know it can scan while mounted.  

So what's the point of the /offlinescanandfix?  Isn't it the exact same as /F or /R?

More or less, though I believe that technically the /f and /r flags are now mainly to be used for non-NTFS volumes. The /offlinescanandfix is preferred on NTFS volumes from Windows 8 onwards.

 

As an added note, bad sectors on a drive are generally cause for great concern. Run a S.M.A.R.T. utility to find out if the disk is about to fail.

More or less, though I believe that technically the /f and /r flags are now mainly to be used for non-NTFS volumes. The /offlinescanandfix is preferred on NTFS volumes from Windows 8 onwards.

 

As an added note, bad sectors on a drive are generally cause for great concern. Run a S.M.A.R.T. utility to find out if the disk is about to fail.

 

Yeah, I know all about the warning signs of a failing disk.  The only red flag according to SMART is the # of reallocated sectors (likely the same as the number of bad sectors, unless something else like a bad cable caused the sector to be misread) which is red flagged because the # is higher than 0.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Linux 7.2's first release candidate gets off to a good start by Paul Hill Credit: Larry Ewing It has been a few weeks since the release of Linux 7.1, and in that time, the Linux 7.2 merge window has been open, where developers can submit their features and patches ready for the upcoming release. That window is now shut, and the release candidate phase has begun so that new features can be tested and further fixes applied. According to the founder of Linux, Linus Torvalds, this week’s release candidate looks “reasonably normal”. Although we are super early in the release candidates, this is a good sign as it makes it more likely that an eighth release candidate will not be needed. Torvalds even mentioned that the update’s stats are only larger than they really are because there was another AMD header drop with a third of the patch just being AMD GPU register definitions, which aren’t big changes but make the code contributed look larger overall. In addition to this, he noted that just over half the patch is drivers, even when excluding the AMD register dump. The rest of the changes are spread out over architecture updates, tooling, documentation, and core kernel updates. In the next week, Torvalds says that he will be chilling out, taking the week “mostly off”. Despite this, he will be reading emails and keeping up with things, so if he is slow responding, now you know why. He said he is hoping for a calm week, but we will just have to see if the second release candidate is actually like that. We should expect seven or eight release candidates before Linux 7.2 is released, so expect it around the end of August. If you missed it a few weeks ago, be sure to check out our coverage of Linux 7.1's release.
    • Ridiculous claim that the labor cost difference of $6000 annually would increase cost per phone by $200. The employees produce 3 phones per month or what?
    • Sparkle 2.20.1 by Razvan Serea Sparkle is a free, open-source Windows optimization tool designed to make your PC faster, cleaner, and more private. With Sparkle, you can easily debloat Windows by removing unnecessary apps and services, disable Microsoft tracking to enhance privacy, and apply performance tweaks to boost speed. Its cleaner removes junk and temporary files, while every change is safe and fully reversible. Sparkle also features a modern, user-friendly interface with automatic updates, making system maintenance simple. Explore over 39 tweaks, from disabling telemetry and hibernation to optimizing network and game settings, all aimed at customizing and enhancing your Windows experience. Sparkle supports Windows 10 and 11. Sparkle 2.20.1 changelog: You can now change the Animation Direction from Up, Left, or Off. Added configurable animation direction (Up, Left, Off) for improved accessibility Added TTL caching to the system info backend Refactored tweak application flow to await NvidiaProfileInspector Improved IPC listener cleanup to correctly remove specific listeners Fixed online status not updating after successful network requests Updated system info tests to support backend caching Removed electron-toolkit utils dependency in favor of internal is.dev helper Fixed unwanted files and folders being included in application bundles Download: Sparkle 2.20.1 | Portable | ~100.0 MB (Open Source) Links: Sparkle Website | Github | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Never used the G7 Pro, but I've never had a good experience with that style of d-pad and fighting games.
    • And I just bought a seat cushion for my mesh chair. The chair feels nice but the first time I sat in it with boxers, I realized I don't like the feel of mesh on my legs. 😂
  • Recent Achievements

    • One Month Later
      JKR earned a badge
      One Month Later
    • Dedicated
      Asgardi earned a badge
      Dedicated
    • Conversation Starter
      jessse3334 earned a badge
      Conversation Starter
    • Reacting Well
      JuvenileDelinquent earned a badge
      Reacting Well
    • One Month Later
      Excellence2025 earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      496
    2. 2
      +Edouard
      247
    3. 3
      PsYcHoKiLLa
      154
    4. 4
      Steven P.
      86
    5. 5
      macoman
      65
  • Tell a friend

    Love Neowin? Tell a friend!