Sunday, May 24, 2015

How to move VirusDefs folder to another drive other than home drive to save space

Always wanted to find a way but since Symantec officially doesn’t support or recommend this,  had to rely on a small but interesting tool from Microsoft sysinternals which supports directory symbolic links, where a directory serves as a symbolic link to another directory on the computer.

The idea is to move the VirusDefs, our Symantec repository for definitions files which gets updated daily. This folder carries around 2.5GB of files which can be freed giving a new life for C-drive J.

After deleting the contents of this folder located in C drive, we will create a symbolic link targeted to  D drive with the help of junction tool  as its target, then an application accessing  VirusDefs folder  would in reality be accessing the folder in other drive!. ( The OS and the application would still think that the files are actually in C drive itself!!)
               

Below is it the details procedure and is tested in windows 7 and 8 and XP. While creating symbolic links the command would differ based on the path on which the Virusdefs folder reside depending on OS.

Below illustration is for Windows 8.

1.       Download junction.exe from Microsoft sysinternals, it is just a 77 KB program  (http://technet.microsoft.com/en-in/sysinternals/bb896768.aspx)
2.       Create a new directory in D drive e.g. D:\VirusDefs
3.       Copy the contents for VirusDefs folder to the new location
4.       Empty the contents in the actual VirusDefs folder in C drive. This would free ~2.5 gb in C drive ( You can delete the content only by booting to safe mode)
5.       Stop the SEP ( smc- stop)
6.       Create a symbolic link targeted to D drive folder -  usage is as below.
Junction.exe  “ C:\ProgramData\Symantec\Symantec Endpoint Protection\12.1.4100.4126.105\Data\Definitions”  D:\VirusDefs  
7.       Start the SEP( smc- start)
8.       Reboot the machine if SEP throws any error

Viola!!, you are back in action with a working SEP loading definitions from other directory !!!


I have tested this and all functionalities( SNAC,PTP, Live update, NAP etc.) and everything works fine as before.

No comments:

Post a Comment

A lie

24 th  June Wednesday Why do we tell lies? . I am sure everyone would have told lies, at least once in their life. Lie comes in v...