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

0
votes
2answers
699 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 ...
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 ...
3
votes
2answers
2k 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
2k 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
208 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
8k 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 ...
20
votes
4answers
19k 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
1k 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 ...
30
votes
3answers
42k 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
429 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 ...
6
votes
3answers
10k 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 ...
1
vote
1answer
4k 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
627 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
642 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 ...
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\... ...
2
votes
1answer
811 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
276 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
153 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 ...
2
votes
1answer
385 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
111 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 ...
4
votes
3answers
1k 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 ...
5
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 ...
4
votes
2answers
2k views

Detect if two files are hard linked in Windows XP

I know I can use the command fsutil hardlink <new_file> <existing file> To create a hard link from the command prompt. My question is: is there a command line tool that will allow me ...
4
votes
1answer
334 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 ...
9
votes
2answers
8k views

Finding all symbolic and hard links to a file on UNIX

If I have a specific file in a UNIX filesystem, is there a way to use bash to find all links to that file, both symbolic and hard? If I need different commands for each, what are they?
40
votes
3answers
18k 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
8answers
2k views

How can one undo many hard links?

I foolishly used Dupemerge to change all my duplicate files into hard links. Now Windows XP is not running right, eg, explorer won't start. Is there a utility which would traverse the filesystem ...
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.
44
votes
9answers
68k 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.