Weird junction problem


  1. Posts : 4
    Windows 7 Professional x64
       #1

    SOLVED: Weird junction problem


    Hey everyone, this is my first post on the forum - I hope someone here will be able to help me out.

    I recently bought an SSD and in order to conserve space on the drive, I did a fresh install of Windows 7 and created junctions for the "Program Files", "Program Files (x86)", "Users", and "ProgramData" directories that pointed to a second (D:\) hard drive.

    For the first couple of days, everything looked perfect - an inspection of C:\ under Windows 7 would report the correct amount of used/free space. However, now the drive is reporting an INCORRECT amount of used/free space. For some reason, I believe it is including the space in my junction shortcuts as local used space.

    I am not sure if Windows Update has somehow caused this problem, but I would like to correct it if I can.

    So far all I have tried to fix it was rebooting into the administrator account, using the command prompt to perform a rmdir on the junction folders on C:\, and then re-applying the mklink command to re-create the junctions. However, that did not solve the problem.

    I think I should also mention that the junctions are working as intended and everything (I've tested this by placing test files in the junction folder and making sure they pop up in the corresponding D:\ folder and by deleting the files and checking vice-versa). This is just the problem of Windows reporting the wrong amount of used space on the C:\ drive.

    I used this method to perform the junction creations during my fresh install (again, I had no issues):
    Windows 7 Move the Users and Program Files Directories To A Different Partition | Tuts4Tech

    Thanks in advance to anyone who can help me figure this out!
    Last edited by gadgetman18i3; 30 Aug 2010 at 18:47.
      My Computer


  2. Posts : 4
    Windows 7 Professional x64
    Thread Starter
       #2

    I'm going to go ahead and post some images for clarification purposes:

    Here's a screenshot of "My Computer":
    http://a.imageshack.us/img210/2408/computeri.png

    Here's a screenshot of my "C:\" drive, with junctions setup:
    http://a.imageshack.us/img836/9921/89305354.png

    Here's a screenshot of my "D:\" drive, where the junctions are re-directing to:
    http://a.imageshack.us/img801/7913/96097497.png

    Here's a screenshot of my "D:\" drive folders, showing their true used space:
    http://a.imageshack.us/img827/5538/dspace.png

    Here's a screenshot of my "C:\" drive, reporting the same used space:
    http://a.imageshack.us/img844/4053/cspacejunction.png

    Here's a screenshot of my "C:\" drive, showing what the true used space SHOULD be:
    http://a.imageshack.us/img841/3851/cspacetrue.png

    As you can see from the pictures, the C:\ is reporting that 29.5 gigs are in use, when really it should only be reporting that 22.7-22.9 gigs should be in use.

    (Also, I do have "Show hidden files, folders, and drives" checked under folder options in Windows Explorer.)
    Last edited by gadgetman18i3; 30 Aug 2010 at 13:44. Reason: Typo
      My Computer


  3. Posts : 5,642
    Windows 10 Pro (x64)
       #3

    What you are doing in the last picture of getting file size is always going to be incorrect.
    The values listed in Drive Properties on my Computer is always correct.

    It is not adding the junction points to the number. Because the way Drive Properties gets the free and used space is from the hard drive bitmap which contains every single bit the HDD can hold, and every single bit that is currently in use. Always accurate always correct. If the bitmap isn't correct, there will be problems, extensive horrible problems.
      My Computer


  4. Posts : 4
    Windows 7 Professional x64
    Thread Starter
       #4

    Thanks for the reply - I am at school now and cannot check under drive properties, but I will be sure to check when I get home tonight. If there are any weird abnormalities (or if everything checks out perfect) I will be sure to update tonight.
      My Computer


  5. Posts : 4
    Windows 7 Professional x64
    Thread Starter
       #5

    Thanks logicearth - you were absolutely right. I checked under properties and as it lists in the subtext of "My Computer", the free space on the drive must, in fact, be 30 gigs. I further tested this by making a copy of my iTunes folder (around 20 gigs) and cutting/pasting it within my 4 junction directories. Not a single one of the directories with the 20 gig folder added to them caused the free space on the drive to go down.

    I think what probably happened was that Windows Update must have been pretty large (I think I allowed it to install language packs and stuff like that), and although checking the size on the Windows directory didn't reflect that, that must be where my 6 gigs went.

    It was just a little ironic that 6 gigs happened to be around the same size as my 4 junction directories combined! I guess coincidences can occur from time to time...

    Anyway, thanks again! I appreciate it.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:12.
Find Us