Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Weird junction problem

30 Aug 2010   #1

Windows 7 Professional x64
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!

My System SpecsSystem Spec
30 Aug 2010   #2

Windows 7 Professional x64

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

Here's a screenshot of "My Computer":

Here's a screenshot of my "C:\" drive, with junctions setup:

Here's a screenshot of my "D:\" drive, where the junctions are re-directing to:

Here's a screenshot of my "D:\" drive folders, showing their true used space:

Here's a screenshot of my "C:\" drive, reporting the same used space:

Here's a screenshot of my "C:\" drive, showing what the true used space SHOULD be:

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.)
My System SpecsSystem Spec
30 Aug 2010   #3

Windows 10 Pro (x64)

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 System SpecsSystem Spec

30 Aug 2010   #4

Windows 7 Professional x64

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 System SpecsSystem Spec
30 Aug 2010   #5

Windows 7 Professional x64

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 System SpecsSystem Spec

 Weird junction problem

Thread Tools

Similar help and support threads
Thread Forum
Junction with OneDrive
I'm having a problem with junctions. I posted the problem here, considering the last post was months ago; not sure it will get noticed for a while, so I decided to re-post as a new thread. I created a junction whereas the link is the source folder, and the target is the junction as displayed in...
General Discussion
weird weird graphic problem (3 screens setup)
Hello everyone, i'm having a weird problem in my setup, it's not a real problem but it's very annoying. i can't post a screenshot right now, but the situation is pretty simple: i have a "login button" (see attached example) floating on the left of my third screen. It's the same exact...
General Discussion
Can I Edit A Junction?
Hello. I have about 15 junctions. Rather than remove them and recreate them pointing to another folder, I would prefer to edit or modify the existing junctions and change the path they point to. Example: E:\steam\steamapps\common\game is a junction to d:\steam-storage\game I would like to...
Some junction became visible
How do I hide the "My Documents" junction (and "My Pictures" etc. in "Documents" folder)? I think the four junctions became visible after I unzipped a 7-zip file containing the "My Documents" folder created in an XP machine. The junctions are now visible regardless of the "hide system files" etc....
General Discussion

Our Sites

Site Links

About Us

Find 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 13:53.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App