Linux EXDEV: Invalid Cross-Device Link (rename Across Mounts)

`rename(2)` failed because source and destination reside on different filesystems.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: Linux EXDEV Platform: Linux
Common Root Causes:
  • `rename(2)` failed because source and destination reside on different filesystems.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Stage temporary files on the same mount as destination for atomic rename, or copy+unlink.
Safe Diagnostic Command:
df -T <src> <dst>
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

`rename(2)` failed because source and destination reside on different filesystems. Recommended diagnostic: `df -T <src> <dst>`. Remediation: Stage temporary files on the same mount as destination for atomic rename, or copy+unlink.

Worked Examples

  • Run `df -T <src> <dst>` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-linux-exdev-cross-device-link · Independently verified: 2026-11-25

Related Resources