Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Say I have a D-drive and a folder SomeData. For performance reasons I would like the data in SomeData to be on a different harddisk (SSD), while keeping the paths intact.

So the file D:\SomeData\ImportantFile.txt would still be in that path, even though actually on a different disk.

Can I "mount" (?) a harddisk as a folder below another disk?

I use Win7 Ultimate and NTFS.

share|improve this question
up vote 6 down vote accepted

Yes, you can mount disks as folders using the Change drive letter and paths function in diskmgmt.msc, or the mountvol command-line tool. (But see below...)

However, even on the new disk, it is usually better to keep the files contained within a directory – to prevent it from becoming one big mess if you ever decide to use the second disk for anything else. This can be done using junctions or symbolic links – both will work fine; symlinks are recommended but they're supported only on Windows Vista and newer versions, while junctions also work on Windows 2000/XP.

To symlink your SomeData to a different disk:

  1. Move the original directory to the new SSD drive. You must delete the original directory.
  2. Open an elevated command prompt.
  3. Use the mklink utility to create a symbolic link with the same name and location as the original directory:

    C:\>mklink /d D:\SomeData Z:\SomeData
    

    (where Z:\ is your SSD and D:\ is the old drive)

On older Windows versions mklink is not present, but the junction utility from Sysinternals can be used to create junctions.

share|improve this answer
    
Will everything generally work, if I do that, or do some things behave oddly? I am not sure what to specifically ask for, I hope you know what I mean. :) – Kjensen Feb 4 '12 at 19:34
    
Well, I moved my whole Steam directory from the system drive to a larger disk this way and haven't had a problem. Symlinks are transparent to applications unless they specifically look for them. – Andrew Lambert Feb 4 '12 at 19:36
    
@grawity That's one fine edit there! – Andrew Lambert Feb 6 '12 at 1:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .