Mac
Repair a Time Machine sparsebundle that won't mount
Fix a Time Machine network backup that says the sparsebundle is in use, couldn't be accessed, or is damaged — attach it with hdiutil, run fsck_apfs / First Aid, clear stale locks, re-claim it with tmutil, and know when to rebuild.
Problem summary
I'm here because Time Machine won't open the backup on my NAS — it says the sparsebundle is already in use, couldn't be accessed or created, or is damaged. A sparsebundle is the single disk-image file Time Machine writes over the network, and an interrupted write or a stale lock can leave it un-mountable. This page repairs it the supported way (mount with hdiutil, run a filesystem check), clears the locks that fake a 'in use' error, and is honest about when a network sparsebundle is better rebuilt than rescued.
Run `sudo tmutil disable`, then mount the NAS share.
sudo tmutil disable
Backups are paused and the share is reachable, so you can work on the image.
Never remove a lock while a Mac is actively backing up.
Layer path
Step-by-step runbook
Start here. Do each check in order, compare it to the expected result, and stop when the evidence explains the failure or the safe stop point applies.
Pause and mount
Check: `the "Pause Time Machine before repair" command below`; mount the NAS share.
Expected result: You can work on the image without Time Machine interfering.
If not: If the share won't mount, fix networking first.
Clear a stale lock
Check: Remove the lock inside the bundle only if nothing is backing up.
Expected result: The false 'in use' error clears.
If not: Never touch a live lock.
Attach and check
Check: `hdiutil attach -nomount`, then `fsck_apfs -y` on the inner volume.
Expected result: A repairable image is fixed and mounts.
If not: Won't attach / can't repair → rebuild.
Re-enable and re-claim
Check: `hdiutil detach`, `sudo tmutil enable`, `tmutil inheritbackup` if moved.
Expected result: Time Machine resumes the existing history.
If not: If inherit errors, re-add the destination.
Prove it restores
Check: After a backup completes, restore one real file.
Expected result: The backup is confirmed trustworthy.
If not: If restore fails, rebuild and add a second independent copy.
Decision tree
If: Error says 'backup already in use' / 'in use by another computer'.
Then: Stale lock from a crashed backup (if nothing is currently writing).
Action: Remove the stale lock inside the .sparsebundle, then retry.
Safe stop: Never remove a lock while a Mac is actively backing up.
If: `hdiutil attach` succeeds and fsck repairs the volume.
Then: Recoverable filesystem inconsistency from an interrupted write.
Action: Detach, `tmutil enable`, `tmutil inheritbackup` if moved; resume history.
If: `hdiutil` can't attach, or fsck can't repair.
Then: Badly damaged image — not worth heroic recovery.
Action: Delete the sparsebundle and let Time Machine rebuild; lose history, gain a working backup.
If: Image moved/renamed on the NAS and Time Machine won't resume it.
Then: Time Machine no longer recognises the image identity.
Action: `sudo tmutil inheritbackup <sparsebundle>` to re-associate it.
If: Even fresh sparsebundles keep corrupting.
Then: Underlying NAS volume health or network path is the real fault.
Action: Fix the NAS volume/network before trusting any network backup.
Evidence table
| Symptom | Evidence to collect | Likely layer | Next action |
|---|---|---|---|
| 'Backup is already in use.' | A stale lock inside the bundle; no Mac is backing up. | Stale lock from a crash. | Remove the lock (only if nothing is writing); retry. |
| 'The backup disk image couldn't be accessed.' | `hdiutil attach` works; `fsck_apfs` finds errors. | Filesystem inconsistency inside the image. | fsck the inner volume, then re-enable and resume. |
| Image won't attach at all. | `hdiutil attach` errors on the header. | Severe header damage. | Rebuild — delete and let Time Machine recreate. |
| History lost after a NAS move. | Image present but Time Machine starts a new full backup. | Lost image association. | `tmutil inheritbackup` to resume the existing history. |
| Repeated corruption across backups. | NAS volume degraded/near-full or flaky network. | Storage/network underneath the image. | Repair the NAS volume/network first. |
Commands and settings paths
Pause Time Machine before repair
sudo tmutil disable
Where: Terminal on the Mac.
Expected: Automatic backups stop, so they don't grab the image mid-repair.
Failure means: If backups keep starting, they'll fight the repair.
Safe next step: Re-enable with `sudo tmutil enable` when finished.
Attach the image without mounting
hdiutil attach -nomount -readwrite -noverify /Volumes/<share>/<Machine>.sparsebundle
Where: Terminal on the Mac, after mounting the NAS share.
Expected: Attaches the backing /dev/diskN for a filesystem check.
Failure means: If it won't attach, the header is badly damaged — rebuild.
Safe next step: Find the inner volume with `diskutil list` and run fsck.
Repair the inner filesystem
sudo fsck_apfs -y /dev/diskNsM
Where: Terminal on the Mac (HFS+ bundles: `sudo fsck_hfs -fy`).
Expected: Repairs the image's volume so it mounts and Time Machine resumes.
Failure means: If it loops or reports unrepairable, stop and rebuild.
Safe next step: Detach with `hdiutil detach` and re-enable Time Machine.
Re-claim an image after a NAS move
sudo tmutil inheritbackup /Volumes/<share>/<Machine>.sparsebundle
Where: Terminal on the Mac.
Expected: Time Machine adopts the existing image and resumes its history.
Failure means: An error means the image identity no longer matches this Mac.
Safe next step: Re-add the destination or accept a fresh first backup.
Hardware and platform boundary
Change only when
- Add a second, independent backup (external SSD via Time Machine, or a cloud backup) so a corrupt network sparsebundle is never your only copy.
- Move the Time Machine share to a NAS with snapshot support so a bad sparsebundle can be rolled back instead of rebuilt from zero.
Evidence that matters
- A healthy NAS volume (not failing, not near-full) so the image isn't corrupted as it's written.
- A second independent backup target so repair is low-stakes.
- Snapshot support on the backup share for rollback.
Evidence that does not matter
- Raw NAS throughput — incremental backups are small; it won't prevent corruption.
- RAID level as 'backup insurance' — RAID is uptime, not backup integrity.
- Repairing in place when a quick rebuild plus a test restore is safer.
Avoid
- Removing a lock or editing the image while another Mac might be backing up.
- Hand-editing band files / Info.plist to 'fix' the bundle.
- Trusting a repaired or rebuilt backup without a real test restore.
Related tool/checklist
Use the linked tool when you need a guided plan from your exact symptoms instead of a static checklist.
Backup plan builderRelated problems
Last reviewed
2026-06-02 · Reviewed by HomeTechOps. Reviewed against Apple's Time Machine backup and restore guidance; gives the safe repair sequence (disable → clear stale lock → hdiutil attach → fsck_apfs → detach/enable/inheritbackup) for a network sparsebundle, and is explicit that rebuild beats heroic repair once fsck fails and that no backup is trusted until a real test restore succeeds.
Sources/assumptions
- Assumes a network Time Machine backup stored as a .sparsebundle on a NAS over SMB (including macOS Tahoe / macOS 26); local-disk Time Machine repair differs slightly.
- Commands (`tmutil`, `hdiutil`, `fsck_apfs`, `diskutil`) follow Apple's documented behaviour and need an admin password; device identifiers vary per machine.
- A network sparsebundle can corrupt silently, so an untested backup is not a trusted one regardless of repair outcome.
Source-backed checks
HomeTechOps turns official docs and conservative safety rules into a shorter runbook. These links are the source trail for the page direction.