Cloned (hardlinked) file exampleOn the NTFS file system, freeware program “Link Shell Extension” provides you with the ability to create clones (called hard links) of your files and folders straight from the context menu.

Freewaregenius 5-Star PickClones, if you’re wondering, are not copies of a file or shortcuts. Cloned files look like normal files (except for a little inverted blue arrow) and what they are are multiple instances of a file that point to the same exact data. So, for example, you can have a cloned file reside on your desktop as well as in another directory on the same drive (or even in the same directory under a different name), but in reality there is only a single copy on your drive, with two files pointing to it. Opening any one of those two clones will access the same data, so that if you save a change to the file on your desktop for example it will be reflected in the other one as well. The process of creating these clones is referred to as hardlinking.

How this can be useful: hardlinking can be useful whenever your primary method for organizing your files is within a folder structure. As an example, you might organize your MP3s such that each folder represents an album and contains the constituent song files. But let’s say that you also want to have a “best of” folder that contains your favorite songs; instead of making copies of the MP3s and putting them in the ’best of’ folder (or using shortcuts that need to be maintained and might not be recognized by media players) you can use hardlinked clones such that any single song in the “best of” folder will actually exist in both the “album” and “best of” folders at once. This way your songs take up hard drive space only once, and any change you might make to the tags/metadata of one file will be instantly the case for the other (because they in fact the same file), instead of having to be performed twice.

How to perform hardlinking using “Link Shell Extension”; after installing “Link Shell Extension”, you can create hardlinks as follows:

Step1: right click on a file and select “Pick Link Source” (see screenshots below)

Step2: right click on the destination folder where you would like to place the clone (in this case its a folder called “place1″) and select “Drop Hardlink from the right click menu. Note that (a) both the file (spzar.txt in this case) and the destination folder have to be on the same partition, and (b) you can use the “Cancel Link Creation” from the right click menu to cancel.

steps1and2

That’s it. See screenshot at the top of this posting for an example of a hardlinked file.

Symbolic Links: are supported only in Vista. Unlike normal hardlinks hitherto being discussed, which require that both file and clone reside on the same partition, these “Symbolic Links” allow for the creation of hardlinked files that reside on another partition or hard drive.

Hardlinking folders: is also possible. However, “Link Shell Extension” offers three ways in which you can do this, as follows:

  1. Junctions: are straightforward clones of folder (i.e. the new hardlinked folder is equivalent to and points to the same folder data as the original). Junctions (hardlinked folders) have a little “chain” on their icons that mark them as such.
  2. Hardlink clones: in this case, it is not really the folder that is cloned but, instead, the folder structure of the original folder is copied and all the files inside are cloned.
  3. Volume mountpoint: provides the ability to instantly mount a folder, but is only available in NTFS v5. For some reason I wasn’t able to perform volume mountpointing myself when I tested this program. If you want another freeware that does this (and works on both NTFS and FAT32) check out Visual Subst.

Screenshot depicting folder hardlinking (junction)

Here’s more Q&A on this:

Q: How is cloning possible? Is it some sort of scary Windows hack?
A: No. According to the program’s documentation, hardlinks “can be created with the POSIX command ln included in the Windows Resource Kit or the fsutil command utility included in Windows XP”. “Link Shell Extension” merely gives you this functionality in the Windows’ context menu. For more info see the hardlinking entry on Wikipedia.

A: Does this mean that I can open the same exact data twice in a single application at the same time?
Q: In most cases yes, so be careful how you use this functionality.

A: What happens if I move a file into the same folder as its clone?
Q: If they have the same name, one of them will simply disappear.

For more info on this program, check out its documentation.

Version tested: 2.803

Compatibility: Windows NT4/W2K/WXP/W2K3/WXP64/Vista/Vista64. You have to have an NTFS formatted hard drive. Check out the list of limitations on the program page.

Go to the download page to get the latest version (approx 610K). Make sure you download the version appropriate to your OS. Also visit the program home page.

Related Posts with Thumbnails
Please share this page:
  • Digg
  • del.icio.us
  • Facebook
  • StumbleUpon
  • Twitter
'

15 Responses to “Link Shell Extension: create clones of your files and folders on an NTFS drive”

Comments (9) Pingbacks (6)
  1. Prabhakar Goud says:

    Hats off to you Samer. This is really one of the best websites I’ve ever come across, and it can be even better if we can have all of the freewaregenius.com picks under one link.

  2. Samer says:

    Prabhakar,
    I am planning an overhaul of my software categories that will cut them down to 10 or 12, and will be adding a “FWG Picks” category soon.

  3. C says:

    How is cloning very different from creating a shortcut to file or folder?

  4. Samer says:

    @C
    A shortcut points to a file
    A clone points to the file-data itself

    A shortcut has to be maintained; it could be potentially be broken by renaming the source, moving it, deleting it.
    A clone doesn’t have such problems as it is a file in its own right.

    What happens when you point most media players to a folder of shortcuts? It doesn’t recognize them as audio files (I tested with ITunes). However it WILL recognize clones.

    IMHO a shortcut’s usefulness is limited, while clones offer great possibilities if you organize your files within a folder structure.

  5. Alan says:

    I used to use the dos junction command, now I can switch to this one.

    Windows should have had this exposed to regular users long time ago, like what Linux has. But I guess MS probably think this is too “dangerous” for regular users.

  6. null4dev says:

    I install and Spy Sweeper detected and quarantine this “thing” Trojan-Downloader-Zlob false positive ???

  7. Mike says:

    If I create a clone of a directory, will both the original and the clone be backed up separately by a backup program? i.e. will my backup size increase as a result? Perhaps it depends on how clever the backup program is?

  8. rightbrainer says:

    C:

    if you copy folder containing shortcuts to a thumb drive, you’ll get shortcuts, and programs won’t work on another PC

    if you copy folder containing hard links to a thumb drive, you’ll get the programs!

    that’s where i found hard links useful.

    thanks freewaregenius ^^

  9. Andrew says:

    There’s also the href=”http://www.boredomsoft.com/Files/ntfshardlinker.html”>NTFS Hardlinker from Boredom Software for those of us who like to keep our context menus as small as possible:

Leave a Reply

*


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Recent Comments

  • saber: this is fantastic topic i will put it in my site here : ??????? ??????? | ????????? | ????? | ?????
  • Windows XP Driver: Thanks a lot for sharing this info. I would definitely check drivermax. Kudos for sharing!
  • Gokool: Wanted to share a great news, guys. This program works flawlessly with Windows 7 (Home Premium –...
  • Samer: If anyone thinks that unsubscribing from a free service makes any sense, I have some bad mortgages to sell...
  • John: I don’t think whoever wrote this article used the application in question to split the 600 mb file using...