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 8.1 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 for2: Weird junction problem
Thread Forum
Solved Cannot search symlink or junction sub-folders. General Discussion
Solved Many junction points broken under %userprofile% General Discussion
Solved Can I Edit A Junction? Customization
Windows 7 Backup and Junction Directories Backup and Restore
Data not writing to Ramdrive using symlink junction General Discussion
Solved Some junction became visible 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 00:47.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App