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

3
votes
2answers
335 views

What operations breaks the hardlinks?

I have a file "a.txt" and its hardlink "ha.txt". If I open either of those files in notepad and save any changes it would appear in both files as they are still linked. But if I overwrite (copy) a.txt ...
2
votes
3answers
2k 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 ...
2
votes
2answers
136 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 ...
3
votes
1answer
488 views

Is it possible to delete a hardlink to a locked file?

In short, I need to do what was asked here: One hardlink is locked. How do I remove the other? The given solution doesn't work for me as I'm trying to create/delete a hardlink to a file that is in ...
0
votes
1answer
1k views

Find modified files from rsync backup script

I'm using rsync on my Ububtu Linux server to take a time machine like backup of the system. Every hour, a cronjob runs the following script (partial excerpt): rsync -a --link-dest=/backup/current ...
3
votes
2answers
182 views

hardlinking takes a lot of space

I made an rsync incremental backup script for my server that will copy a MySQL database backup and a specified folder path to a remote server. Here's the code on Github. Code excerpt from lines ...
3
votes
3answers
966 views

How to transfer a Time Machine to an NTFS partition (or how to copy HFS+ hard links)

Do you know a way to copy HFS+ hard links to a folder on a HFS+ or NTFS drive? Before you say it can't be done, I don't want actual backing up functionality of Time Machine, just the ability to ...
4
votes
2answers
230 views

Hard/SymLinks and Alternate Data Streams

An interesting thought just occurred to me while thinking about NTFS. NTFS supports hard links, symbolic links, and Alternate Data Streams. Is it possible for an ADS to be a link to another file? ...
8
votes
2answers
4k 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 ...
0
votes
1answer
139 views

rsync: how to recreate hard-links after removed and recreated a file?

This is what I have: --dir1 ----file1 ----file2 Then I created another directory dir2 with hard-links. --dir2 ----file1 (hard link to dir1/file1) ----file2 (hard link to dir1/file2) Now I ...
2
votes
2answers
95 views

Netbeans destroys hardlinks on save

I am using Netbeans 7.0.1 on a Linux system. I have a file module/test.php and another one application/module/test.php Both test.php files are hardlinks of each other. When I change ...
0
votes
2answers
713 views

How can I create hard links in OSX?

What I want is to have multiple copies of the same file, and whenever I edit one of them, they all get updated. I thought Hard Links would solve my problem. So, I used the command ln as described in ...
33
votes
3answers
4k 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.
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 ...
5
votes
1answer
3k views

How to create a directory hard link in Windows?

I was trying to create a directory hard link (not a symbolic one). I've tried this: mklink /d /h newfolder currentfolder but it's telling me Access is denied. I don't understand how is access denied ...
3
votes
1answer
765 views

What happens when I backup a symbolic link to a briefcase?

The story: I recently started trying DropBox. After some fiddling, I found I could use an app, DropBoxFolderSync, to sync a folder with DropBox, leaving something called a "Symbolic Link" (which seems ...
4
votes
2answers
759 views

What is “ln -L” (--logical) for?

I can read in the ln man page: -L, --logical make hard links to symbolic link references I read somewhere that ln -L could be used to re-link files that were deleted but which are ...
2
votes
1answer
337 views

Can someone make sense out of “Hard Links and Junctions” article from MSDN?

At Hard Links and Junctions MSDN article one can read the following: A hard link is the file system representation of a file by which more than one path references a single file in the same ...
1
vote
2answers
191 views

Should I use Windows' hardlinks for backups?

I'm not exactly backing up but its a similar idea. I have a few archives on my computer. They have exact copies of certain files (mostly 300k to 1.5MB). It's enough to take up a gigabyte. I am using ...
1
vote
1answer
386 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 ...
5
votes
1answer
981 views

Why does du -sl show different sizes for the source and result of a cp -rl?

I have used cp -rl to copy a folder. When measuring the size of the source and of the result of the copy du -sl returns slightly different sizes, even though diff confirms that their content are ...
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 ...
9
votes
2answers
5k views

Executing symbolic link to exe - “The specified path does not exist”

When trying to execute a symbolic link which points to an exe file (on Windows 7), the "Open with" windows appears. When renaming it to a ".exe" file, it says "The specified path does not exist. Check ...
2
votes
1answer
69 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 ...
3
votes
3answers
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 ...
6
votes
3answers
4k 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 ...
0
votes
2answers
478 views

How to get all hardlinks to the same data?

Have several hardlinks to the same file. How (for example) by one file(hardlink) get others pointing to the same data? No real task. Just interesting. May be useful.
8
votes
4answers
2k views

What is a hard link in Linux?

I have searched around and am trying to understand the difference between a hard link and symbolic link (soft link). I found this link is quite useful. But I am still not very clear. I understand ...
11
votes
4answers
4k 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 ...
3
votes
2answers
1k views

What's the difference between a Windows hard link and a Linux hard link?

The open source package BackupPC does not run on Windows due to its lack of support for hard links. I did a search and came across this document referring to hard links in Windows. Are these somehow ...
1
vote
2answers
1k views

How to stop Windows 7 Built-in-Backup creating a System Image of too many drives?

I do not want to include (D:) drive in the image. I believe I know the cause of this, it's because I have some Directory Junctions and/or Symbolic Links. Any suggestions other than removing the ...
2
votes
1answer
201 views

Using junctions to get all my user files on the backup drive

I generally prefer to back up just my data files, and not my program files, since I can always reinstall the programs. This is easier if I put programs on one hard drive and data on another. But ...
-1
votes
4answers
6k views

How do I delete hardlinks, symbolic links, junction points, etc please?

I could be wrong, but I'm yet to hear a valid argument for the exploitability that these things deliver...outweighing their very dubious / debatable functionality. They seem to me to be marginally ...
15
votes
4answers
10k views

Using mklink /h results in “Access is denied.”

From command prompt with Administrator privilages: c:\>mklink /h c:\dirA c:\Users\Piotr\dirB Access is denied. I'm on Vista x64. Using /j or /d instead of /h works. What's the problem? Related: ...
2
votes
3answers
775 views

How much space do NTFS hardlinks/symlinks occupy?

Well, I guess it must be something proportional to the original filename plus the new filename for symlinks, and only the new filename for hardlinks, but how does this affect the disk space exactly? I ...
11
votes
2answers
15k 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 ...
0
votes
1answer
343 views

Hard links on AFP

I'm trying to run MacPorts via AFP. Most ports run fine but I'm trying to install mercurial, which requires the MacPorts Python 2.6 file. Building Python 2.6 chokes on the following line in the ...
3
votes
3answers
5k views

Windows7 hardlink over two different drives

I am trying to create a hardlink on my C drive that points to a file on my D drive. I open up a terminal with Administrator privileges and try the following: C:\Users\sandro>mklink /H _vimrc ...
0
votes
1answer
2k views

Equivalent for Windows 7 “mklink” on OS X?

Is there a feature on OS X that does the same as mklink under Windows 7? It can create symbolic links and hard links. I have just read about this tool to have Dropbox sync an application folder by ...
5
votes
2answers
604 views

What are hardlinks on windows 7?

What are hardlinks and how are they different from files? If i have a hardlink would all apps believe the link is a file? (I had programs not open files because they were shortcuts) If i modify a ...
1
vote
2answers
466 views

How can I move a bunch of hardlinked files from a Linux box onto my OS X Mac and preserve the hardlinks?

I have an rsnapshot backup that I need to move off of a corrupt Linux file system. I need to preserve the internal hardlinks. I've tried rsync -H and using a newer rsync and neither preserve the ...
9
votes
3answers
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\... ...
2
votes
1answer
626 views

Accessing files obscured by filesystem mounted at non-empty directory

I wish to mount a volume/filesystem at a non-empty directory, yet still retain access to the directory's contents. Is this possible? I know that a filesystem can be mounted at a non-empty directory ...
4
votes
1answer
223 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 ...
3
votes
1answer
149 views

Editing softlinked files in UNIX

Let's say I have file A, and using 'ln -s A B', I have B. When I open, edit and save B, now B is not symlink anymore. It's just a new copy of A. Is this expected behavior? I use Mac OS X, and I ...
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 ...
1
vote
1answer
315 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
92 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 ...
2
votes
3answers
904 views

hardlinks on ntfs with windows

How can I create hardlinks for a file on an NTFS partition using Windows? NTFS can obviously handle hardlinks, since creating them with NTFS-3g works – the links even work in Windows. Is this the ...
4
votes
1answer
1k views

Hard link not works under Mac OS X in GUI mode

I faced a little strange behavior, while using hard links. From Terminal, I create a text file 1.txt and a hard link "to this file" nano 1.txt mkdir dir ln 1.txt ./dir/ I check the resulting hard ...