A hard link is a directory entry that associates a name with a file or directory on the file-system, in effect creating an alias that may reside elsewhere on the file-system.

learn more… | top users | synonyms

7
votes
3answers
8k views

How to delete Windows NTFS hard link (mklink /h) while original is in use?

On a Windows NTFS file system, I have a file (say, orig.mp3). I open this file, through this path orig.mp3, in such a way that it is in use (say, by playing it in VLC). Then I create a hard link (...
43
votes
4answers
7k views

What are the various link types in Windows? How do I create them?

Is it possible to link two files or folders without having a different extension under Windows? I'm looking for functionality equivalent to the soft and hard links in Unix.
43
votes
3answers
19k views

What is the difference between NTFS hard links and directory junctions?

The title says it all... what's the difference? When do I use one and when do I use the other? Added: Note that Junction points, Hard links and Symbolic (soft) links are three separate things on NTFS....
0
votes
2answers
5k views

How to create a hard link in Windows using mklink command?

I've no problem in creating junctions and symbolic links through mklink, but can't create hard link using this command. It returns "Access denied", have tried on both Windows 7 and 8.1 on different ...
46
votes
9answers
71k views

How can you see the actual hard link by ls?

I run ln /a/A /b/B I would like to see at the folder a where the file A points to by ls.
0
votes
1answer
39 views

How can I delete these leftover hard links?

I was working with many small files (about 1million) and for one reason or another had to create a bunch of hard links to them. Now I am trying to delete all this data, but can't. After removing the '...
4
votes
3answers
1k views

How to replace all duplicate files with hard links?

I have two folders containing various files. Some of the files from the first folder have an exact copy in the second folder. I would like to replace those with a hard link. How can I do that?
0
votes
1answer
55 views

Replace NTFS hardlinks with files

I deduplicated backup files on an NTFS partition. I would like to know if there is a way to reduplicate the files so that they can be edited individually. Current: /dir1/file1 /dir2/file1 -- hard ...
0
votes
1answer
73 views

Hard Links in Windows - risk of file-loss?

I am now creating hard links to remove duplicate space usage in backup data. This is within single NTFS partitions. I am afraid of data-loss - losing a file completely if one link reference is broken,...
1
vote
1answer
21 views

Hard links break in Windows 7 Pro

I want to use hard links to avoid having to sync/copy a few source files between their base folders and a small git repo for personal development. C:\PathLink>mklink /h test C:\PathTarget\file....
1
vote
1answer
16 views

hard link to share files in git osx

I am trying to share a config file ~/.spacemacs in a git repository ~/repo/config/spacemacs. Since I am on osx, I installed hardlink and used it like : ➜ ~ hln ~/.spacemacs ~/repo/config/spacemacs ...
0
votes
1answer
37 views

Can't run a program through a link?

I'm working on a Windows 8.1 machine, fully patched, except for the Get Windows X malware. I have Android's SDK installed at C:\android-sdk, but its not on-path. I'm trying to avoid putting 2 SDK ...
0
votes
0answers
16 views

KeePass destroys Hardlinks?

I'm using KeePassX on OS X. I have a folder ~/.keyfiles, to which I'm hardlinking all key- and password-related files for a daily encrypted backup. To also backup my KeePass-Database, I therefore ...
1
vote
0answers
55 views

Hardlink on same drive gives error about different drive

I'm using mklink /h to create a hardlink from "d:\some folder" to "d:\some other folder" and Windows 7 is telling me "The system cannot move the file to a different disk drive." But it's NOT a ...
-1
votes
1answer
30 views

Can I hardlink my desktop folder to a different partition so I can put big files on it?

Correct me if I'm wrong, but a hardlink is esentially like a shortcut that can trick applications to think it is a real folder. It allows you to specify an application to point to a shortcut to save ...
0
votes
0answers
57 views

Soft Link/Hard Link Script for OneDrive

My problem is the following: I had redirected all my Users/Documents, /Pictures, /Videos, /Music folders to another Drive, but also merged them with my relocated OneDrive. Everything was fine and all ...
15
votes
5answers
9k views

How can I find hard links on Windows?

I've created some hard links on my Windows 7 file system using mklink. It was some time ago and I can't remember for sure where, or which files. When I use Explorer, all files look the same. When I ...
1
vote
1answer
22 views

How to make an exact copy of a directory to an another partition?

I have a 20Gb folder on an ntfs drive. How can I make an exact of only that folder to an another ntfs volume? By exact, I mean, copy pemissions; keep directories hard links (if any); and keep ...
0
votes
1answer
37 views

How to Count Hard Links, Symbolic links, and Junctions on an Ntfs Volume

I know of some programs that claim to count one or the other, but I don't know of any that can count all three. I would like to count all three and print out a list like so: Hard Links: 123 ...
0
votes
0answers
24 views

How to access hardlinked files after upgrading Windows?

I upgraded Windows to Windows 10. Loving it but I can't access all my pdfs which I have hardlinked to different folders on my portable hard drive. Adobe Acrobat shows the error "there was an error ...
0
votes
1answer
31 views

Best method to copy big partition contents with many hard links

We had a LVM of almost 16TB with ReiserFS. We now want to add more disks, but we cannot continue using ReiserFS, as it has a maximum capacity of 16TB. This volume is being used to make incremental ...
6
votes
3answers
309 views

Copy to another NTFS disk and preserve hard links

I have to copy directory structure from one local NTFS disk to another (Windows 7+) and preserve hard links that exist within this directory structure. An acceptable solution would be to replace hard ...
31
votes
3answers
44k views

Make a hard link without extra programs in Windows 7

My objective here is to synchronize my emule credit file (application.dat?) by Dropbox. But the credit file is not inside the Dropbox directory (by default). So I want to make a hard link to get this ...
3
votes
1answer
471 views

Rsync backups on btrfs very slow

My environment is Ubuntu 15.04 with kernel 3.19.0-28-generic and Btrfs v3.17. I have two identical external USB hard disks that I use with my backup script. One of them is formatted with btrfs and ...
0
votes
1answer
194 views

Editing the hardlink doesn't edit the original file

I have a file at D:\JavaScript\CheckIban.js, and I want to reuse it in many places without duplicating it. Because when I fix a bug (change its content) I need that change to be propagated to all ...
0
votes
2answers
846 views

7-zip archive with hard links?

I see that tar respects hard links $ ln clonezilla.iso test.iso $ tar cfvvJ archive.tar.xz *.iso -rw-r--r-- Steven 111149056 2012-03-25 07:34 clonezilla.iso hrw-r--r-- Steven 0 2012-03-25 ...
0
votes
0answers
17 views

Why does locking a file prevent renaming hardlinks to it?

Suppose I have a file X.foo on a Windows machine (living on an NTFS filesystem, in case it matters). Then, I create a hardlink to it and call it Y.foo. My understanding is that once I've done this, ...
0
votes
0answers
25 views

Windows using SMB shared from Linux + moving a hard link: what happens?

I have a linux file server which may have this example directory structure: /path/to/directoryA/file1.dat /path/to/some/common/place/data/file1.dat These files are hard-links of each other (i.e. ...
11
votes
5answers
3k views

How can I check the actual size used in an NTFS directory with many hardlinks?

On a Win7 NTFS volume, I'm using cwrsync which supports --link-dest correctly to create "snapshot" type backups. So I have: z:\backups\2010-11-28\cygdrive\c\Users\... z:\backups\2010-12-02\cygdrive\c\...
8
votes
3answers
8k views

How do you create a working Hard Link in OSX?

Ok, this has me banging my head. In OS X, to create a hard link, in a terminal window, you're supposed to be able to just type this... ln a.txt b.txt ...and this should create a hard link from a....
13
votes
5answers
7k views

Using NTFS hard links to combine full/differential backups

Short: Is it possible to (robo)copy a directory tree using hard links instead of physical copy? I want to make a daily backup of my data files, every day in it's own directory. Now most files don't ...
6
votes
4answers
7k views

What are the advantages of symlinks over hard links and viceversa?

I understand the differences between symbolic and hard links, but I've never understood why choose one or the other.
5
votes
1answer
601 views

How do I create a hardlink in guest user in virtualbox

Apparently, VirtualBox does allow to create hard and soft links inside guest os on shared folders . Now the thing is I need to install a package that is creating hard links Hardlink("lib/abc", "/...
0
votes
2answers
60 views

Transparently split file | Hardlink to file part

I have really big file (TrueCrypt container) and I want to save it in some cloud, but it has constraint on file size, limiting to 2 Gb, also it has some tool to sync directory. The idea is to create ...
0
votes
1answer
447 views

“cannot create hard link X to Y: Operation not permitted” on ext2 drive from cygwin cp -al

/cygdrive/d/ is a USB hard disk formatted as ext2 and mounted with ext2fsd. When I try cp -al /cygdrive/d/X /cygdrive/d/Y where X is a file, I get the error in the title. Things I've Tried/Verified ...
1
vote
2answers
3k views

How to copy files and create hardlinks instead of copying when files are identical

Are there any tools for Windows that can copy one dir to another read copied content generate MD5 if the current file is identical to a previously copied one, create a hardlink in destination dir ...
2
votes
2answers
723 views

Make hard links as I copy a directory

I would like to create a bat file to copy a directory, with everything in it (sub-directories, including hidden directories) - by making hard links. I tested xcopy %source% %destination% /E /C /R /I /...
4
votes
1answer
279 views

Can I save space in a Maildir by hard-linking identical message files?

Obviously, the answer to the question in the title is yes. But I really want to know if I can do it without breaking anything. I am using offlineimap to back up my Gmail account to a Maildir on my ...
0
votes
1answer
55 views

How to merge directories of hardlinks potentially pointing to the same files?

I've used a file deduplicator on a large folder with hundreds of thousands of files. The deduplicator created hardlinks for all duplicate files that it detected. If I was to attempt to merge some ...
-1
votes
2answers
148 views

What happens in linux when you copy a hardlink on top of another hardlink to the same file?

I've used a file deduplicator on a large folder with hundreds of thousands of files. The deduplicator created hardlinks for all duplicate files that it detected. If I was to attempt to merge some ...
0
votes
1answer
85 views

Redirect opening requests about a file in a given directory to another file in another directory

I have a simple scenario, but i don't now is there a way in Windows to do it or not: We have 2 directory with these files: Book: D:\sources\Books |___ A.pdf |___ ...
6
votes
2answers
2k views

Copy Files from One Drive to Another and Keep Hard-Link in Windows

I have drive A: with 16G Space and plenty of files, due to the Hard-link feature in NTFS, the files together is 15G but only takes 2G of real space. I like to copy all those files to drive B: which ...
2
votes
1answer
392 views

File disappears from Finder when hard link copy is deleted

Ok, I just got quite the scare... I have a folder with some important files. Using the Terminal I had created hard-links to those files in a different folder. Something like this: mkdir test ln ...
2
votes
1answer
112 views

TextEdit not caring about hard links? [duplicate]

Possible Duplicate: Hard link not works under Mac OS X in GUI mode I did a little experiment. First I ran the following in a Terminal: mkdir test cd test echo "A" > a echo "B" > b ln a....
1
vote
1answer
55 views

How to check that all files in a file system are can be read without errors?

I'm using an external hard drive with an ext4 file system to make backups. The backup software I use (faubackup) copies the file hierarchy 1:1 into a timestamp-named folder on the hard drive, and ...
4
votes
1answer
133 views

Does Time Machine preserve hard links yet?

I have been doing my own backups using rsync to a remote computer. However, due to the recommendation to have a full computer backup before upgrading to OS X 10.10 Yosemite, I am trying to undertake ...
1
vote
1answer
468 views

How do I get Windows 7 to recognize a Junctioned User folder?

I'd like to junction or hard-link my C:\Users[me]\ folder to a folder on my D: drive for space reasons. This has worked for me in the past, but after a recent reformat/reinstall of Win7 x64, Windows ...
1
vote
1answer
40 views

Linking multiple folders into a single folder so that relative paths work. (Fedora)

I have a SVN repo that has a structure that does not line up with the needed relative build paths. The SVN repo directory looks kinda like this root alpha trunk p1 p2 p3 tag branch bravo ...
0
votes
0answers
72 views

Find real size of Windows/winsxs folder in Cygwin

I'm running Cygwin with the default installation. I'm a complete noobie to Linux & Cygwin. I just figured out how to find all hardlinked files in my c:\windows\winsxs folder. (Navigate to /...
0
votes
1answer
46 views

How do I list the files in a directory that are hardlinks in windows

I'm trying to work with backups and new versions of backups and I want to check if files listed in a directory are already hardlink alias to some file or if they are the last link to that content. ...