Freeing disk space using junctions

If you need to reclaim disk space, first you should read my previous post about Freeing disk space.
Now I’ve to warning you that the following steps are for advanced users.

What is a junction or a symbolic link? Check this wiki page.

To create a junction i’m going to use a tool named MKLINK.

I’m only going to create two junctions because those are the ones that I use, other junctions can be created but I encourage you to read on the internet more about that folder and if it’s possible to create a junction to that folder.

The first folder I’m going to create a junction is the C:\Windows\Installer. This folder contains all the applications install packages in your computer. To create a junction to this folder:

  1. Move folder C:\Windows\Installer to D:\[somefolder] in my case D:\Junctions\Windows\Installer
  2. After moving the folder open command prompt and type mklink /J “C:\Windows\Installer” “D:\Junctions\Windows\Installer”
  3. The previous command will create the junction from C:\Windows\Installer to D:\Junctions\Windows\Installer

 

Windows Installer

 

The second folder I’m going to create a junction is the C:\ProgramData\Package Cache. This folder is used by Visual Studio and as the name implies it’s used for cache. To create a junction to this folder:

  1. Move folder C:\ProgramData\Package Cache to D:\[somefolder] in my case D:\Junctions\ProgramData\Package Cache
  2. After moving the folder open command prompt and type mklink /J “C:\ProgramData\Package Cache” “D:\Junctions\ProgramData\Package Cache”
  3. The previous command will create the junction from C:\ProgramData\Package Cache to D:\Junctions\ProgramData\Package Cache

Package cache

At this point you should have reclaim lots of disk space. If you know any other want to reclaim disk space just comment the post.

Digg thisBuffer this pageShare on FacebookShare on Google+Share on LinkedInPin on PinterestShare on RedditShare on StumbleUponShare on TumblrTweet about this on Twitter

Leave a Reply

Your email address will not be published. Required fields are marked *