Windows 7 x64 - Junctions

26
2013-08
  • user117016

    I've created a junction from a folder on the C: drive to a folder on a different drive. For some reason the data in the C folder is still being stored / written to the C drive folder, but also into the folder on the other drive.

    Every other junction I've created have worked correctly.

    (it's my iPhone backup folder)

  • Answers
  • mtone

    Unlike shortcuts, the files in junctions will always show the "fake" path like C:\JunctionFolder\Subfolder\Data even though in reality once you're in C:\JunctionFolder, you are really working in another drive.

    • Doing a search for files on your C drive will find files in a junction by their fake names C:\JunctionFolder\etc.).

    • Also, selecting several or all folders in your C drive and opening properties will count the number and size of files in your junction target as well, thus showing more files and total disk usage than what your C drive really contains.

    However, the pie chart showin the properties of your drive partition (C) is reliable (right-click C drive, properties) - it will only include data that is written for real. To test this, copy a big file in your junction, and check these properties again.

  • surfasb

    If this were true, then that means you have two folders that are mirrored in real time.

    Are you sure this is the case??

    My guess is the junction is working correctly and the junction is working so transparently that it is fooling you.

    You can confirm the junction is working correctly by simply looking at the junction under Explorer. Right click and look for its target.


  • Related Question

    windows - what is the difference between a symlink , junction , hard link and so on?
  • Karim

    Possible Duplicate:
    What is the difference between NTFS hard links and directory junctions?

    well just got a litlle confused about all of them.
    so any explanation?


  • Related Answers
  • Zabba

    MS documentation is pretty clear: Hard Links and Junctions and Creating Symbolic Links. What specifically do you need to know apart from what's on the MSDN pages?