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

8
votes
3answers
6k 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 ...
12
votes
5answers
5k 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
5k 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
349 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", ...
3
votes
1answer
38 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
0answers
24 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 ...
37
votes
9answers
43k 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.
29
votes
3answers
12k 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 ...
0
votes
2answers
36 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 ...
10
votes
4answers
2k 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\... ...
0
votes
1answer
70 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
2k 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
546 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
254 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
2k 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 ...
0
votes
1answer
21 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
46 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
27 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 |___ ...
2
votes
2answers
1k 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
348 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
96 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 ...
1
vote
1answer
34 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 ...
3
votes
1answer
46 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 ...
6
votes
3answers
3k 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 ...
1
vote
1answer
436 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
31 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
46 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
0answers
22 views

Moving hard linked files to another HDD (Windows 7)

Is there a way to move hard linked files from one hard drive to another while preserving hard links? If i try to just move 2 hard linked files I get a copy of original file instead of a hard link, is ...
39
votes
3answers
5k 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.
0
votes
0answers
44 views

Relocate AppData, except hard-linked files and folders

Since I got an SSD, i'm trying to relocate some files and folders (temp,logsetc) to my external disk (which is always attached). I did this with my appdata folder as well, and used the mklink command ...
0
votes
1answer
28 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. ...
3
votes
2answers
158 views

Windows hard links for directories

How can I make hard links for directories in Windows 7? That means that the 2 (or more?) linked directories refer to the same inode (group of inodes) so they will be exact duplicated and every change ...
0
votes
0answers
84 views

All of the NTFS hard links damaged, where are those 0kb hardlinks stored and how to recover them?

This is Windows 7 x64 sp1 on a NTFS file system. All hardlinks within C:\Windows\System32 folder disappear, and the Windows can't boot, because even the osloader, C:\Windows\System32\boot\Winload.exe ...
15
votes
3answers
25k 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
4answers
1k views

How to properly store dotfiles in a centralized git repository

I'd like to put all my dotfiles (like .profile, .gitconfig, etc.) in a central git repository, so I can more easily keep track of the changes. I did this, but I would like to know how to properly ...
1
vote
1answer
36 views

replace hard links with copies

I have a file which has other hard links. I want to let it become independent. I know it can be done like this: mv myfile temp cp -a temp myfile Is there any single command which does not require ...
2
votes
1answer
146 views

copying a file to a hard link

I recently got bit by a misbehaving in a bash script of mine and was wondering: is this the expected system behavior, or is it a bug what are the ideal workarounds Essentially, the problem boiled ...
4
votes
1answer
325 views

Unix: softlinks, hardlinks

I am somewhat confused what the differences between a softlink, and a hardlink are (on unix). It seems like a softlink is the same as a shortcut in windows or an alias on Mac OS X. (Can someone ...
0
votes
3answers
799 views

How to separately count number of files, directories, symbolic links and hard links within a single find run?

To check a successfull migration I'm using find to count the number of files, directories, symbolic links and files with more than one hard link. As the directories to check contain a huge number of ...
3
votes
1answer
71 views

Virtual join-directory on Windows

Problem: Say I have a video spanned over 2 files (vid001.avi & vid002.avi) and each file is on a seperate CD/DVD. If the 2 files are in the same directory my player will automatically play the ...
0
votes
1answer
35 views

Is there a way to catch all invokations of hardlink creation and replace them with symbolic links?

Assume I have a program or build script (consider it a blackbox) which is creating hardlinks and run on Linux (Debian 7.4). If I want to experiment and find out whether the program would work with ...
4
votes
2answers
3k views

Windows 7 mklink - hard link's attributes (expected !) + contents do not affect the linked file

Now - this is driving me crazy. I created a hard link pointing to a file in my dropbox dir - the link was created inside a folder where this file needs to be in order to be accessed by the programs I ...
1
vote
2answers
87 views

Can mklink make portable links?

Is there any way to create portable links in NTFS using mklink? Or it there a better solution? I want to be able to distribute an application in a zip file or folder copy where there is one "real" ...
1
vote
1answer
111 views

Is there a difference between the original file and a hard link to it?

I'd like to synchronise some configuration files via a file hoster like Dropbox. I could create a hard link in the software's configuration folder and let it point to my cloud storage directory. When ...
4
votes
2answers
1k views

Unable to preserve hard links. Why?

I'm trying to create a Makefile that would automate remastering Knoppix distribution. I'm trying to copy filesystem from the read-only compressed loop device to normal filesystem to be able to modify ...
0
votes
1answer
38 views

Inheritance system for folders (symlinks?)

Okay, here's the scenario. I have a base folder "Base" that has a blank, multipurpose template. However, this template is 12 gigabytes. I want to be able to have an inheritance system where linked ...
2
votes
3answers
3k views

Make hard-link from Windows' Desktop to cygdrive

When I open Cygwin, I want that I can see the Desktop -folder (I do not want to move its original location, I think the thing I want is hard-link with ln -cmd -- but not sure, this is my first idea to ...
0
votes
1answer
34 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. Currently /dir1/file1 /dir2/file1 -- hard ...
0
votes
2answers
153 views

Safe to delete a folder named “~” [duplicate]

I program I was using to out put some files apparently did not understand the short cut "~" (directory) very well and has done some trickery that has me confused. Rather than put the files where I ...
0
votes
1answer
488 views

Why don't hard link destinations on Windows Server 2003 immediately show the proper file size and last modified time?

I wanted to create hardlinks to files on Windows Server 2003 and I stumbled upon the superuser question hardlinks on ntfs with windows. I tried mklink as one of the answers suggested and found that ...