Directory junction/symbolic link not working

Page 1 of 2 12 LastLast

  1. Posts : 40
    Windows 7 Professional 32bit.
       #1

    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 Computer


  2. Posts : 40
    Windows 7 Professional 32bit.
    Thread Starter
       #2

    I am also considering another windows re-installation. If someone could give me advice, I'd appreciate it.
      My Computer


  3. Posts : 1,814
    XP / Win7 x64 Pro
       #3

    How are you creating your symbolic link and what areas are you linking?
      My Computer


  4. Posts : 40
    Windows 7 Professional 32bit.
    Thread Starter
       #4

    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 Computer


  5. Posts : 1,814
    XP / Win7 x64 Pro
       #5

    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 Computer


  6. Posts : 40
    Windows 7 Professional 32bit.
    Thread Starter
       #6

    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 Computer


  7. Posts : 1,814
    XP / Win7 x64 Pro
       #7

    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 Computer


  8. Posts : 1,814
    XP / Win7 x64 Pro
       #8

    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 Computer


  9. Posts : 40
    Windows 7 Professional 32bit.
    Thread Starter
       #9

    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 Computer


  10. Posts : 1,814
    XP / Win7 x64 Pro
       #10

    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 Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 21:12.
Find Us