ERROR_JOIN_TO_JOIN - 138 (0x8A)

The system tried to join a drive to a directory on a joined drive.

Updated: Feb 21, 2026

Technical Meaning

The ERROR_JOIN_TO_JOIN error code, with the numeric value of 138 and hexadecimal representation of 0x8A, indicates that a file system operation attempted to join a drive to a directory on another joined drive. This operation is not supported by the file system.

Error Details

This error typically occurs during operations involving drive letters or mount points in the Windows file system. The specific operation that triggers this error involves attempting to create a junction point (a type of symbolic link) between two joined drives, which is not allowed due to the design constraints of the file system.

Common Causes

  • Invalid Operation Context: Attempting to join a drive to a directory on another joined drive, which is unsupported by the file system.
  • Incorrect Object Type: Confusion or misuse between different types of file system objects (e.g., junction points vs. hard links).

Real-World Context

This error can occur in scenarios where administrators attempt to manage disk drives and mount points using tools like mklink or through scripting, without a thorough understanding of the limitations imposed by the Windows file system.

Is This Error Critical?

The criticality of this error depends on the specific operation being performed. While it does not directly impact system stability, it can prevent intended operations from completing successfully and may require corrective action to resolve.

How to Diagnose

  1. Review Operation Context: Ensure that the operation context is correct and that the intended file or directory type matches the expected behavior.
  2. Validate Parameters: Verify that all parameters used in the command are correctly specified, especially when using tools like mklink.
  3. Confirm Object Types: Confirm that the objects involved (drives, directories) are of the correct type and not misidentified as another type.

How to Resolve

  1. Correct Parameter Usage: Ensure that the parameters used in commands such as mklink are appropriate for the operation being performed. For example, use mklink /D to create a directory junction point rather than attempting to join drives directly.
  2. Adjust Operation Context: If the operation context is incorrect, adjust it to align with supported file system operations. This may involve rethinking the structure of the drive layout or using different tools for managing mount points and junctions.
  3. Restore Data: In cases where data integrity has been compromised due to misoperations, restore from backups if available.
  4. Retry Operation with Valid Inputs: Attempt the operation again with valid inputs that adhere to file system constraints.

Developer Notes

Developers should be aware of the limitations imposed by the Windows file system when managing drive letters and mount points. Proper validation of input parameters and understanding of object types can prevent such errors from occurring.

Related Errors

FAQ

Q: What does the ERROR_JOIN_TO_JOIN error mean?

A: The system attempted to join a drive to a directory on another joined drive, which is not supported by the file system.

Q: How can I prevent this error from occurring?

A: Ensure that operations involving junction points and mount points are performed correctly using appropriate commands and parameters. Understand the limitations of the Windows file system regarding drive letters and mount points.

Summary

The ERROR_JOIN_TO_JOIN error indicates an unsupported operation in the Windows file system, specifically attempting to join a drive to a directory on another joined drive. This error can be diagnosed by reviewing the operation context and validating parameters. Proper management of drive layout and understanding of file system constraints are key to avoiding such errors.