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: Directory junction/symbolic link not working

08 Nov 2010   #1

Windows 7 Professional 32bit.
 
 
Directory junction/symbolic link not working

Recently I had to re-install Windows, but beforehand I had setup a directory junction for my Google Chrome installation. I did this because my boot drive is an SSD and I wanted to limit some of the writes to it because of cookies, etc. So I setup a directory junction from my C drive (ssd) to my other regular hard drive. Since re-installing Windows, though, I cannot successfully create one. Each time I try and make one, I check my hard drive properties and see that when I am using Google Chrome it is still writing to my SSD, I honestly have no idea what I am doing wrong. Any help would be greatly appreciated.
0

My System SpecsSystem Spec
.

09 Nov 2010   #2

Windows 7 Professional 32bit.
 
 

I am also considering another windows re-installation. If someone could give me advice, I'd appreciate it.
My System SpecsSystem Spec
09 Nov 2010   #3

XP / Win7 x64 Pro
 
 

How are you creating your symbolic link and what areas are you linking?
My System SpecsSystem Spec
.


09 Nov 2010   #4

Windows 7 Professional 32bit.
 
 

I have a small executable called Symlink creator and I've also just tried cmd. And as I said in my initial post, I am linking my google chrome installation from my C drive to my D drive.
My System SpecsSystem Spec
09 Nov 2010   #5

XP / Win7 x64 Pro
 
 

You need to be more specific than linking "C drive to D drive". That is very vague. Which specific folder(s) are you linking? And how, specifically, have you tried linking the folder(s) via cmd? You need to walk us through the entire process of what you've tried so we can figure out at which step this process is going wrong.
My System SpecsSystem Spec
09 Nov 2010   #6

Windows 7 Professional 32bit.
 
 

Sorry about that, I am linking C:\Users\Eric\AppData\Local\Google to D:\Program Files\Google
via cmd, I was using mklink /J C:\Users\Eric\AppData\Local\Google "D:\Program Files\Google"
when I do that I either get, syntax was incorrect, or I get something about the destination file already being created
My System SpecsSystem Spec
09 Nov 2010   #7

XP / Win7 x64 Pro
 
 

Gotcha. I have to ask if you're running the command prompt as Admin. If so, and you're still getting errors, have you tried putting both paths in double quotes?
My System SpecsSystem Spec
09 Nov 2010   #8

XP / Win7 x64 Pro
 
 

Ok, let's start over as I think I know what's going on. Delete the Google folder in the D:\Program Files directory. First, enable the "Show hidden files and folders" option in the Folder Options so we know we're getting all the files copied over correctly. Then, the process is as follows:


1) Copy the C:\Users\Eric\AppData\Local\Google folder to your D:\Program Files directory so that the D:\Program Files\Google folder is created. A simple copy and paste in explorer should work fine.

2) Perform the directory junction via an Admin command prompt by typing the following:
mklink /J "C:\Users\Eric\AppData\Local\Google" "D:\Program Files\Google"


That should work. If it doesn't, you may need to delete the original directory before making the directory junction in step 2 by typing the following command in an Admin command prompt:

rmdir "C:\Users\Eric\AppData\Local\Google" /S /Q
My System SpecsSystem Spec
09 Nov 2010   #9

Windows 7 Professional 32bit.
 
 

Wow you are good man, I've never seen someone figure out a problem that quickly. But here is one weird thing that is going on, that, to my knowledge, didn't happen before. When I had both of the hard drive properties open, and only had chrome open, the c drive was still sometimes getting written too. So, I am not quite sure why that is happening.

P.S., in that remove directory command, what doe /S /Q mean?
My System SpecsSystem Spec
09 Nov 2010   #10

XP / Win7 x64 Pro
 
 

So it worked?

Windows does a ton of small writes to the system in its day to day operations. Download and run SysInternals ProcMon and fire it up with no other programs running on your system and you'll see the incredible amount of stuff going on behind the scenes. However, if you are saying Chrome itself is still writing to the OS drive, then we need to figure what other folders it is writing to.

The /S flag tells it to delete all subdirectories and the /Q flag tells it to do it all without prompting you whether you want to delete each item.
My System SpecsSystem Spec
Reply

 Directory junction/symbolic link not working




Thread Tools



Similar help and support threads for2: Directory junction/symbolic link not working
Thread Forum
Is it possible to Create a Symbolic Link to a Non-Specific Directory? General Discussion
Change folder/file location - use Move, Symbolic link or Junction? General Discussion
Solved Current working directory is read-only General Discussion
Symbolic Link not working General Discussion
Skydrive with directory link (symlink), issue? Chillout Room
RocketDock Docklets and 64bit programs (symbolic link) Software
Symbolic link across drives? 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 06:42 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33