Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a shared Directory on my TeamCity Server, C:\Work which is about 9 GB and I want to move it to a separate Disk E:. When I copy the C:\Work to E:\Work and do mklink /D to make a symlink, the target folder is shared but the link does not appear to be shared. I simply want to delete C:\Work and create a symlink at C:\ that directs to E:\Work so that I may clear some space on the C:\ drive. It is important that the share still appears to be at C:\ since programs depend on it. What is the best practice here?

share|improve this question
    
What is the best practice here? To not have applications depending on a share on someone's workstation. –  HopelessN00b Mar 19 '13 at 17:45
2  
It is not a workstation, it is a Windows Server dedicated application build server for the TeamCity application. The shared C:\build directory is a requirement of the build agent I believe. –  user160910 Mar 19 '13 at 17:55
add comment

1 Answer

up vote 1 down vote accepted

In this case I'd use a directory mounted volume. That would make C:\Work it's own volume, and not dependent upon the boot volume for providing space. It's more reliable than a symlink, and preserves the wince-worthy dependency you're working around.

share|improve this answer
    
OK, I am trying your suggestion. I renamed C:\Work to C:\Work_Original, I created a New Folder C:\Work and mounted E:\ to that folder. I then copied the contents of the original folder to the new mounted folder and set sharing and permissions to be what they were on the original folder. Does that seem like it should work and be transparent to programs looking for this folder? –  user160910 Mar 19 '13 at 19:18
    
@GreggLeventhal That's exactly what I meant. It should Just Work. –  sysadmin1138 Mar 19 '13 at 19:22
    
It did, answer accepted. –  user160910 Mar 22 '13 at 13:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.