Directory junction/symbolic link not working

ericwish1

New member
Local time
4:39 PM
Messages
40
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 My Computer

Computer Manufacturer/Model Number
N/A--custom built
OS
Windows 7 Professional 32bit.
CPU
Intel Core i7 920 overclocked to 2.93 GHz
Motherboard
Asus Rampage II Extreme
Memory
3 GB DDR3
Graphics Card(s)
Geforce 260
Sound Card
Creaive Sound Blaster Fata1ity Series
Monitor(s) Displays
Dual Acer 22inch
Hard Drives
OCZ Vertex 2 50GB & Western Digital Velociraptor
PSU
Zalman 1000 Watt
Case
Corsair Obisdian 800D
Cooling
5 case fans
I am also considering another windows re-installation. If someone could give me advice, I'd appreciate it.
 

My Computer My Computer

Computer Manufacturer/Model Number
N/A--custom built
OS
Windows 7 Professional 32bit.
CPU
Intel Core i7 920 overclocked to 2.93 GHz
Motherboard
Asus Rampage II Extreme
Memory
3 GB DDR3
Graphics Card(s)
Geforce 260
Sound Card
Creaive Sound Blaster Fata1ity Series
Monitor(s) Displays
Dual Acer 22inch
Hard Drives
OCZ Vertex 2 50GB & Western Digital Velociraptor
PSU
Zalman 1000 Watt
Case
Corsair Obisdian 800D
Cooling
5 case fans
How are you creating your symbolic link and what areas are you linking?
 

My Computer My Computer

OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
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 My Computer

Computer Manufacturer/Model Number
N/A--custom built
OS
Windows 7 Professional 32bit.
CPU
Intel Core i7 920 overclocked to 2.93 GHz
Motherboard
Asus Rampage II Extreme
Memory
3 GB DDR3
Graphics Card(s)
Geforce 260
Sound Card
Creaive Sound Blaster Fata1ity Series
Monitor(s) Displays
Dual Acer 22inch
Hard Drives
OCZ Vertex 2 50GB & Western Digital Velociraptor
PSU
Zalman 1000 Watt
Case
Corsair Obisdian 800D
Cooling
5 case fans
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 My Computer

OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
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 My Computer

Computer Manufacturer/Model Number
N/A--custom built
OS
Windows 7 Professional 32bit.
CPU
Intel Core i7 920 overclocked to 2.93 GHz
Motherboard
Asus Rampage II Extreme
Memory
3 GB DDR3
Graphics Card(s)
Geforce 260
Sound Card
Creaive Sound Blaster Fata1ity Series
Monitor(s) Displays
Dual Acer 22inch
Hard Drives
OCZ Vertex 2 50GB & Western Digital Velociraptor
PSU
Zalman 1000 Watt
Case
Corsair Obisdian 800D
Cooling
5 case fans
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 My Computer

OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
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 My Computer

OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
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 My Computer

Computer Manufacturer/Model Number
N/A--custom built
OS
Windows 7 Professional 32bit.
CPU
Intel Core i7 920 overclocked to 2.93 GHz
Motherboard
Asus Rampage II Extreme
Memory
3 GB DDR3
Graphics Card(s)
Geforce 260
Sound Card
Creaive Sound Blaster Fata1ity Series
Monitor(s) Displays
Dual Acer 22inch
Hard Drives
OCZ Vertex 2 50GB & Western Digital Velociraptor
PSU
Zalman 1000 Watt
Case
Corsair Obisdian 800D
Cooling
5 case fans
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 My Computer

OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
Yeah it looks like it works. Other than those writes that I see happening periodically, it looks good. As I said, I've never seen someone answer this kind of question so quickly. Thanks.
 

My Computer My Computer

Computer Manufacturer/Model Number
N/A--custom built
OS
Windows 7 Professional 32bit.
CPU
Intel Core i7 920 overclocked to 2.93 GHz
Motherboard
Asus Rampage II Extreme
Memory
3 GB DDR3
Graphics Card(s)
Geforce 260
Sound Card
Creaive Sound Blaster Fata1ity Series
Monitor(s) Displays
Dual Acer 22inch
Hard Drives
OCZ Vertex 2 50GB & Western Digital Velociraptor
PSU
Zalman 1000 Watt
Case
Corsair Obisdian 800D
Cooling
5 case fans
No problem. Glad it works and glad to contribute.
 

My Computer My Computer

OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
FLiGi7,
My idea was to setup the first OS, OS1 then copy or clone it to My OS2 Partition as a backup copy. I tried using Norton Ghost 11 from a CD and it messed up both the copy and the source OS. The copy boots and works for the most part but I can not install programs. Links are missing.
It would not copy Symlinks and junction points. Even worse it deleted Symlinks and junction points for the C:/Users/ All users directory in both OS's.
I have never encountered such a problem.
I do not have a clue how to fix this without a total reinstall.


If I could copy symlinks from another working machine. I could manually rebuild the 'USERS directory' structure.

Got any ideas on how to copy Symlinks and junction points without coping their contents ?
I read Xcopy is able to copy Symlinks and junction points without coping their contents, using the /b option but I can not get the syntax correct.


Bcavinc
@gmail.com
 

My Computer My Computer

OS
x64
What syntax are you using?

For the record, it sounds like so much has happened/changed that it might be prudent to just do a re-install and bite the bullet.
 

My Computer My Computer

OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
What's the difference between /d and /j in the command mklink?
 

My Computer My Computer

OS
Windows 7 Ultimate x64
/d creates a directory symbolic link while /j creates a junction. But I assume you mean behavior difference? None other then junctions work with older installations of Windows.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
hi logicearth -you are right. I don't understand what is a symbolic link and a junction. I assume they are the same and based on what you are saying, they are the same, except junction will work with older Windows - by this I guess you mean XP, 2000, NT?
 

My Computer My Computer

OS
Windows 7 Ultimate x64

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
Back
Top