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

1
vote
1answer
26 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
0answers
20 views

Share Firefox History and Bookmarks without using Firefox Sync

I'm using Tor Browser 3.5.3 having Firefox 24.0.0 ESR and another Firefox 29.0.b1 . I want to have my Web Browsing history, Bookmarks to appear in both the TOR and standard Firefox. Inbuilt Firefox ...
32
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.
0
votes
1answer
30 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
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 ...
0
votes
1answer
21 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
0answers
25 views

How can I create hardlinks to an OSX bundle? Or the symlinks inside the bundle?

I have a hierarchy of files that I need to hardlink to a temporary install location. Some of those files are frameworks. Frameworks are bundles but essentially just folders, which aren't supported by ...
0
votes
2answers
63 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
224 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 ...
0
votes
2answers
34 views

How is it that symbolic links can be used across different filesystems, and hard links cannot?

How is it that symbolic links can be used to link across different filesystems? And why is that hard links cannot be used across different filesystems?
1
vote
1answer
33 views

How can I archive directories containing hardlinks?

I am supporting a legacy Windows 2000 system that contains a number of hardlinks on a shared ntfs drive. We have run out of space on the shared drive and want to know the best way to archive some of ...
19
votes
7answers
21k 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
37 views

Changing specific shared library of linux executable

I'm building an android application on a GNU/Linux based server and aapt is complaining that lib/libz.so.1 is out of date: /lib/libz.so.1: no version information available (required by .../aapt) ...
0
votes
3answers
42 views

Could hardlinks be used for backup deduplication purposes?

I know about full backups, incremental backups and decremental backups. However, I wondered why nobody (Windows Backup, TrueImage, Paragon) seems to have implemented the following backup algorithm. ...
1
vote
2answers
478 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 ...
0
votes
0answers
73 views

Error "cp: will not create hard link to directory in GitBash

I got this weird error when I was trying to copy a folder in Git Bash. The error was cp: will not create hard link /c/repos_copy/Ayrault/modules/path to directory ...
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 ...
-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 ...
0
votes
0answers
33 views

Break a hard link of a file in use

I used hard links to merge duplicated files on my SSD (space is still precious) and now have a weird problem. Common files like msvcr110.dll got hard linked. Now I want to delete a program which has ...
0
votes
0answers
71 views

Hard link with Total Commander

Is there a setting or plugin, to create a Hard Link with just the Copy dialog box? I need the easiest solution for non-technical family members.
25
votes
2answers
10k 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 ...
3
votes
2answers
179 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
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 ...
0
votes
8answers
1k 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 ...
0
votes
0answers
43 views

Backup a linux partition without imaging

Typically to backup my Windows partitions (note: pre-Vista/2008 Windows, no symlinks), I usaully tar caf /backup/<name><date>.tar.xz /mnt/<fs>. Currently, I use dd | xz to backup ...
2
votes
1answer
73 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 ...
1
vote
1answer
68 views

Why the link between .. and the parent dir is hardlink?

I just noticed that the link between .. and the parent dir is hardlink, they have the same inode number: starpinker@host /home/starpinker/unix $ ls -ail 8200794 drwxrwxr-x 2 starpinker starpinker ...
0
votes
2answers
479 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
3answers
742 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 ...
0
votes
2answers
99 views

How to copy folders on same NTFS drive using hardlinks?

Is there a way to create hardlinks to create a duplicate of a folder on the SAME drive (NTFS formatted)? I am looking to do something like this: XCOPY E:\TEMP\SAMPLE1* E:\TEMP\SAMPLE2\ /s but INSTEAD ...
8
votes
2answers
3k 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
239 views

On Windows 7 how do you check to see if a file is a hardlink? [duplicate]

I just created a hardlink in Windows 7 using mklink. When I use dir the output doesn't indicate that the new hardlink is a hardlink. Instead it looks exactly like the file it is pointing to. Example ...
0
votes
0answers
38 views

“Deduplicating” with hard links and keeping different mtimes for each link?

I'm writing a backup script for a MySQL database. The script uses mysqldump and runs often. I strip out the "-- Dump completed on" row, and use gzip -n, which leads to identical dump files if the ...
0
votes
3answers
272 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 ...
0
votes
0answers
29 views

Renaming a file to its hardlink

I discovered today that renaming/moving a file onto one of its own hardlinks destroys the source link. If done via an Explorer window, the process is silent (no prompt). Copying (not moving) the file ...
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 ...
4
votes
2answers
214 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? ...
2
votes
1answer
784 views

Using hard links to move Windows Users folder

I'm currently trying to move bulky folders from my SSD to my HDD (my Users folder and ProgramData folder). I'm following a short guide on using Directory Junctions to do this effectively. However, ...
2
votes
2answers
129 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 ...
1
vote
1answer
81 views

Dropbox won't detect edited files using Remote GIT bare repository folder and ssh

Here's the situation... I develop under windows8 and I have some projects, every project, with a specific local git repository For each local repository I have a remote bare repository on my VPS (I ...
3
votes
3answers
880 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 ...
6
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 ...
0
votes
3answers
76 views

directory in /proc/sys/net/ipv4/config have no hard links?

Why the directories inside /proc/sys/net/ipv4/config have no hard links? ls -l /proc/sys/net/ipv4/conf total 0 dr-xr-xr-x 0 root root 0 Dec 31 08:27 all dr-xr-xr-x 0 root root 0 Dec 31 08:27 default ...
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 ...
5
votes
2answers
483 views

How do I delete a hard link to an executable I don't own?

I used the following command to create a hard link to an executable: ln `which xcrun` gcc The link worked as expected. However, it seems I don't have the permissions to remove it. $ rm gcc ...
0
votes
0answers
43 views

How many hardlinks in a drive?

I made a backup of one of my external drives to another. They are both NTFS filesystems. I moved ALL disk contents into a folder called a and right clicked to get file/folder/size count. They are ...
1
vote
1answer
131 views

Synchronize folder on network, preserving hard links

I have few computers using Windows XP Pro. I want to synchronize/back a folder from one machine, to another one. This far, It's a simple problem, and I've used FreeFileSync for such operations, with ...
1
vote
2answers
721 views

Windows hard link taking up space?

On my computer I create a hard link mklink /h git-link.exe git.exe Hardlink created for git-link.exe <<===>> git.exe Now they both take up space 2012-04-17 12:14 AM 6,905,039 ...
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\... ...