About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
When Active Backup for Business stops a Windows backup with error code 23, Synology's own page gives one cause: the disk that was selected for backup has bad sectors, and the backup agent cannot read the block data while it uploads. The fix is on the Windows machine being backed up, not on the Synology NAS.
The sections below show how to confirm the cause with read-only checks, how to run the repair command Synology names and what it costs in time and risk, and how to confirm the result. Nothing before the Fix section changes anything.
What the error means
Synology's page for this code states the diagnosis in one sentence: "A disk selected for backup has bad sectors causing the backup agent to display an error when reading the block data during upload." A bad sector is a part of the disk that cannot be read reliably. When the agent meets one while reading the blocks to send to the NAS, the task fails with code 23.
The code is about reading the source disk. It is a different fault from the Active Backup for Business error that appears when a Windows volume snapshot cannot be created, which has its own guide at /ffb9917-articles/synology-active-backup-for-business-failed-to-create-snapshot.html. Our own reading: the two errors have different codes and different causes, so match the code on the failed task before choosing a guide.
Synology's resolution has two parts. First confirm the cause in Windows Event Viewer. Then, if the error message there is similar to the one shown on the Synology page, Synology says to "perform a full disk scan" and repair the bad sectors, "or replace the malfunctioning drive, before performing the backup task". The scan uses the Windows command chkdsk, which Microsoft describes as a command that checks "the file system and file system metadata of a volume for logical and physical errors".
Likely causes
Synology's page gives one cause, and Microsoft's pages on chkdsk, fsutil dirty and chkntfs describe the related states worth separating from it.
| Possibility | Where a vendor page describes it |
|---|---|
| A disk selected for backup has bad sectors | Synology's page for error code 23 |
| The volume is marked dirty (its file system may be in an inconsistent state) | Microsoft's fsutil dirty page: the dirty bit can be set because the volume is online with outstanding changes, because the computer was shut down before changes were committed, or because corruption was detected |
| A malfunctioning drive | Synology's page gives replacing the malfunctioning drive as the alternative to the scan and repair |
The second row is a state to read, not a cause of code 23 that Synology names. It matters because Microsoft says that when the dirty bit is set at restart, chkdsk runs to verify the file system and attempt to fix any issues.
Prove the cause before changing anything
All of these steps only read.
-
Find the failed task in Active Backup for Business, confirm that its error is code 23, and write down the drive letter or letters of the volume where the system failed to take snapshots, which is the volume Synology's page tells you to put in place of X. You need the letter for every command below, written here as X.
-
On the Windows machine that failed to back up, follow Synology's route to Event Viewer: Start > Windows Administrative Tools > Event Viewer, then click Windows Logs in the left panel to expand the list. Synology says: if Event Viewer shows an error message similar to the one on its page, perform a full disk scan and repair the bad sectors, or replace the malfunctioning drive, before performing the backup task.
-
Check the volume's status with chkdsk and no parameters. Microsoft says that if chkdsk is used without parameters, it displays only the status of the volume and does not fix any errors. Microsoft also says that run without /f on an active partition it might report spurious errors because it cannot lock the drive, so the result is a status reading, and the analysis of physical disk errors belongs to /r. Run it in a Command Prompt started as an administrator.
chkdsk X:
- Ask whether the volume is marked dirty. Microsoft's fsutil dirty page gives this query, and says its output is "Volume C: is dirty" or "Volume C: is not dirty" for drive C.
fsutil dirty query X:
- Ask whether a check is already scheduled for the next start. Microsoft says chkntfs, run with a volume and no other options, displays whether the specified volume is dirty or is scheduled to be checked the next time the computer is started.
chkntfs X:
- Read the results of any earlier chkdsk run. Microsoft gives two PowerShell commands that show the most recent chkdsk logs, one for each of the two sources, chkdsk and wininit.
get-winevent -FilterHashTable @{logname="Application"} | ?{$_.providername -match "chkdsk"} | fl timecreated, message
get-winevent -FilterHashTable @{logname="Application"} | ?{$_.providername -match "wininit"} | fl timecreated, message
Example (illustrative): a nightly task on a file server fails with code 23 at the same point each night, Event Viewer shows disk errors logged at that time for the data volume D, and chkntfs D: reports the volume as dirty. That points at D, not at the NAS, the network or the backup schedule.
Fix
Synology's repair route is a chkdsk run with the /F and /R switches on the volume where the system failed to take snapshots. If the scan cannot clear the fault, its other route is to replace the drive. Microsoft's page explains what the switches do: /f fixes errors on the disk and needs the disk locked; /r locates bad sectors and recovers readable information, needs the disk locked, and includes the functionality of /f, with the additional analysis of physical disk errors.
Before any repair or restart
If this is the only readable copy of important data, prioritise preserving it before attempting repairs. Have the storage administrator confirm recovery options and whether the disk is healthy enough to scan. Repair mode changes the volume in place, cannot be undone and can run for hours; a locked or boot volume may be unavailable during the check. Do not schedule it on a production machine without a recovery plan and sufficient downtime.
Replace the drive if the fault comes back (description only)
Synology's page says to run the scan and repair, "or replace the malfunctioning drive, before performing the backup task". Replacing a drive is a hardware job for whoever supports the machine. Microsoft says that when chkdsk completes too quickly on a large hard disk, one possible reason is a failing read head or other hardware issue.
Confirm the fix
- After the check has finished, read the chkdsk and wininit logs with the two PowerShell commands from the proof section and confirm that the run completed and what it reported.
- Run the read-only
chkdsk X:again andfsutil dirty query X:. The second should report that the volume is not dirty, in the form Microsoft shows for drive C: "Volume C: is not dirty". - Microsoft's exit codes tell a script or a scheduled task what chkdsk found:
| Exit code | Meaning on Microsoft's page |
|---|---|
| 0 | No errors were found |
| 1 | Errors were found and fixed |
| 2 | Performed disk cleanup (such as garbage collection) or did not perform cleanup because /f was not specified |
| 3 | Could not check the disk, errors could not be fixed, or errors were not fixed because /f was not specified |
- Run the backup task again in Active Backup for Business and confirm that it completes without error code 23. This is the test that matters, because the code is raised while the agent reads the disk.
What to watch afterwards
- A repeat of error code 23 on the same task. After a clean scan, a repeat points back to Synology's second route, replacing the drive.
- Disk errors in Event Viewer under Windows Logs around backup time.
- The dirty bit. Microsoft says that on servers that are infrequently restarted, chkntfs or fsutil dirty query shows whether the dirty bit is already set before a chkdsk run.
- The number of full /r scans run on solid-state disks. Microsoft's caution says that running chkdsk on an SSD is not dangerous, but repeated full-surface scans, especially with /r, could unnecessarily increase write and erase cycles and slightly reduce the SSD lifespan, and that occasional checks are not a significant concern.
Read next
Related articles you may want next.
- Backup & RecoverySynology Active Backup for Business "Failed to take snapshots for the specific volume" (0x80042301): find the VSS cause on the Windows serverActive Backup for Business failed to take snapshots for the volume (0x80042301)? Match the code, then check VSS writers, providers and shadow storage.Read article
- Backup & RecoveryMacrium Reflect "Unable to read from disk - Error Code 23 - Data error (cyclic redundancy check)": what it means and how to finish the imageMacrium Reflect aborts with Error Code 23, Data error (cyclic redundancy check)? Macrium ties it to bad sectors. Confirm, copy data, image safely.Read article
- Backup & RecoveryA failing disk in a Linux server: image it before you repair itWhy a failing Linux disk should be imaged before repair: SMART evidence, ddrescue and its mapfile, read-only checks, and repairing the copy, not the original.Read article
Risks and limits
These commands have not been run or lab-tested. Microsoft's chkdsk page applies to Windows Server 2025, 2022, 2019 and 2016, Windows 11 and Windows 10, and says chkdsk can be used only for local disks and needs membership of the local Administrators group.
Microsoft says a chkdsk run with /r on a large hard disk can take a considerable amount of time, because it reads every sector. Our own reading: that is a long read of a disk already known to have trouble.
Sources
- How to fix Active Backup for Business error code 23 — Synology Knowledge Center, page dated 29 November 2023, accessed 4 December 2026
- chkdsk — Microsoft Learn, page dated 27 May 2025, accessed 4 December 2026
- fsutil dirty — Microsoft Learn, page dated 2 November 2024, accessed 4 December 2026
- chkntfs — Microsoft Learn, page dated 4 February 2023, accessed 4 December 2026
This article was originally published on .