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
25 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
28 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 ...
0
votes
0answers
23 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
17 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 ...
0
votes
1answer
23 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. ...
1
vote
1answer
25 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
58 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 ...
1
vote
1answer
27 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 ...
0
votes
1answer
31 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 ...
0
votes
0answers
36 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
2answers
59 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" ...
0
votes
0answers
28 views

Windows symbolic link detect change

I'm using programs that have settings.ini files. Normally when I change the file, the program detects the change and updates. But if settings.ini is a symbolic link, no programs ever detect when it ...
0
votes
1answer
897 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 ...
1
vote
1answer
77 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 ...
0
votes
0answers
128 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 ...
0
votes
1answer
37 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 ...
0
votes
1answer
31 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
122 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
139 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
2answers
52 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
49 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 ...
1
vote
3answers
88 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. ...
0
votes
1answer
136 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) ...
3
votes
3answers
2k 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
49 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
111 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
89 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
141 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 ...
0
votes
1answer
676 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 ...
1
vote
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 ...
0
votes
3answers
623 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 ...
2
votes
1answer
1k 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, ...
0
votes
1answer
389 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 ...
1
vote
1answer
95 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 ...
0
votes
3answers
79 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 ...
5
votes
2answers
895 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
49 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
158 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 ...
0
votes
0answers
240 views

fsutil can't create more than 4 hard links to a file in win srv 2003?

I got an error message when I created 5th hard link to a file using fsutil: Error: An attempt was made to create more links on a file than the file system supports. I was quite surprised ...
0
votes
1answer
2k views

Create a hardlink from the network

I'm trying to create an NTFS hardlink over a network drive: I'm using Windows an XP SP3 workstation mapped drive F: over a Windows 7 Server with net use f: \\server\shared_folder then I try ...
3
votes
2answers
2k views

How can I find all hardlinked files on a filesystem?

I need to find all hardlinked files on a given filesystem. E.g. get a list of files, each line contains linked pairs, or triplets, etc. I understand more or less how to do it, one needs to create a ...
1
vote
0answers
170 views

Which filesystems support hard links (rsync) to backup a Mac?

I want to make a rsync-style hard-link backup from Mac on an external hard drive, but I cannot decide for a file system. It should be (preferably natively) readable from other operating systems. ...
2
votes
2answers
455 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 ...
1
vote
0answers
185 views

shortcut to recursively copying a directory preserving modes, ownerships and hard and symbolic links

I am using the following to recursively copy a directory while preserving modes, permissions as well as hard and symbolic links: cp -pr --preserve=links dir-a dir-b However I have the following ...
1
vote
1answer
242 views

bash :: visually distinguishing hard links on ls

I am using bash shell in Ubuntu precise. I am partial to symbolic links in bash even when a hard link would make more sense because they can be more easily identified with an ls. In contrast, for ...
0
votes
2answers
144 views

Is it possible to create a file and a hardlink to it without initializing the data?

I want to create a file of 2GB, but I don't care about the contents of it. I currently use dd with /dev/zero, but this is fairly slow. Is it possible to create a file and a hardlink to it, without ...
1
vote
0answers
156 views

Efficient mirroring of directories using hardlinks

I'm backing up my music collection on to a number of NTFS-formatted external hard-drives; however, as I store my main collection in FLAC and have my library on my laptop as MP3s to save space, I want ...
0
votes
1answer
197 views

Identify files that would be deleted when removing an rsync --link-dest directory?

I have a Time Machine-style backup system set up on my NAS (running BusyBox v1.16.1), using rsync --link-dest as described here: http://blog.interlinked.org/tutorials/rsync_time_machine.html Is there ...
0
votes
1answer
469 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 ...
1
vote
2answers
934 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 ...