brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: chkdsk C: /scan checks a Windows disk while you keep working

Windows
~/tips/tip-windows-chkdsk-scan-online

chkdsk C: /scan

Scans an NTFS drive for errors online, without locking it or restarting first.

The old way to check a Windows system drive is chkdsk /f, a reboot and a long wait at a black screen. On NTFS there is a gentler first step.

chkdsk C: /scan

Run it from an elevated prompt; the docs say you need to be in the local Administrators group. /scan runs an online scan of the volume, so you can keep using the PC. It is for NTFS only.

If it finds problems, there are two ways to fix them. /spotfix runs spot fixing, a quick repair of the specific problems found. /f fixes errors, but needs to lock the disk; for the drive Windows runs on, chkdsk offers to do it at the next restart instead. /r also looks for bad sectors and recovers readable data, and includes everything /f does.

chkdsk C: /spotfix

Without any of those switches, chkdsk only reports and changes nothing. That makes a plain /scan a safe first look when Explorer starts acting up or a file will not open.

Caveats. Do not interrupt a repair once it runs. The docs warn that open files can cause false errors in a check, which is another reason to start with the online scan and only go for a full repair when it finds something real. It works on local disks only, not on mapped network drives. And on a disk that is failing, back up first and repair later: /r reading every sector can be the last thing an old drive does.

Further reading: chkdsk on Microsoft Learn, On this site: run DISM /RestoreHealth before sfc /scannow

More Windows tips Win+Ctrl+C Win+Shift+Left arrow Win+Ctrl+Left arrow Alt+PrtScn Left Alt + Left Shift + Print Screen All Windows tips (33) All topics

Link