Many file systems support "hard links" where a file appear under several different names. The names are all equally good and the underlying storage is only freed when all names are deleted.

learn more… | top users | synonyms

0
votes
2answers
274 views

All of the NTFS hard links disappear, where are those 0KB hardlinks stored on disk 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 ...
0
votes
1answer
30 views

Does rsync -H convert file to hard link on destination after deduplication on source?

I've got two servers, the second one being synced via rsync every now and then. I've got some (few thousands ?) of big duplicate files on which I would like to use freedup to spare some space. If I ...
2
votes
1answer
60 views

Get hardlink count for a file on Windows (without fsutil, which requires admin)

I have various files which I've created as hardlinks to others using mklink. I need a command I can use inside a batch file to determine which files in a given directory have only one link to it. I ...
0
votes
1answer
34 views

Why hasn't disk usage decreased by 6,728k after hard linking a file away?

Given this sequence of commands… $ pwd /data/backup/rsnapshot $ sudo du -csk daily.{2,3}/ruminant 1195040 daily.2/ruminant 36712 daily.3/ruminant 1231752 total $ ls -isk /data/backup/rsnapshot/...
2
votes
3answers
44 views

Is it possible to have orphaned hard links?

I'm not sure if it is even possible to have an orphaned hard link. Let me explain why I'm asking. Bear with me. My Setup I am using rsync to sync my file server to my backup server. I am using the -...
3
votes
1answer
152 views

How do I grant users permission to create hard links (using GPO or registry entries)?

I'm working in an AD domain with one DC running Windows Server 2012 R2, and clients running mostly Windows 7 Professional. I need to be able to grant certain user groups the permission to create hard ...
18
votes
8answers
13k views

How can I use rsync to duplicate a directory tree, creating hardlinks to files?

From time to time, I have to perform several large migration changes on data files on my server, and I'm looking for a good way to do this. I was thinking about using rsync to duplicate my directory ...
21
votes
5answers
14k views

How do I view a file's hard links in Windows?

I've found a description of hard links and junctions in Windows, however I'd like to know ,from the Windows UI or command prompt, how I can view the hard links of a particular file or folder?
0
votes
1answer
558 views

Cant remove linux ln hard links

I am using CentOS 6.3 and am logged in a root. When I create a hard link by doing this: ln /root.hdd /somedir/root.hdd That works fine, the inode shows the same between the two files and ...
1
vote
0answers
197 views

Recalculate Windows inherited ACLs for hardlinks

How do I get Windows to recalculate the inherited permissions of a file? A tool (Mercurial) created multiple NTFS hardlinks to the same file from different directories. I can see them using fsutil ...
2
votes
1answer
1k views

Create a link to the Unix socket [duplicate]

Is there a possibility to create a hard link for an unix socket? I'm creating a jail and symbolic links won't work, so I'm looking for a solution, how to provide an unix socket inside chrootted ...
1
vote
1answer
442 views

backup files to a remote server with multiple versions using rsync hardlink option

To use rsync hard link option to backup files remotely so that remote backup server could keep multiple versions of the backups, both the link-dest directory and the target directory have to be on the ...
1
vote
0answers
167 views

How to secure tmp directory from hard link attacks when host doesn't allow partitioning

I'm a new sysadmin in the making, have learned that I need to have /tmp and /home directories on separate partitions in order to prevent possibilities of privilege escalation through hard links based ...
1
vote
1answer
110 views

Is there a way to create a 'trackable' link (~hard link) to a folder on Windows (Windows XP in particular)?

Lets suppose that there are: a folder and a junction point or a symlink to that folder When the original folder is moved to a new location, both the junction point and the symlink fail (point to ...
0
votes
2answers
101 views

How does vzdump treats hard links pointing out of the virtual machine?

I have an OpenVZ container containing some hard links pointing to the host file system. For example, I have run on the host ln /root/file /var/lib/vz/private/101/root/link Now I'm asking myself: if ...
10
votes
3answers
2k views

How to mirror filesystems with millions of hardlinks?

We have one big problem at the moment: We need to mirror a filesystem for one of our customers. Thats usual not really a problem, but here it is: On this filesystem there is one folder with millions ...
0
votes
2answers
211 views

Daemon to create hardlinks on Linux file server which finds identical files

I have a Linux server where I only store new files or rename directories and never edit files. It contains backups from other Linux servers. Due to certain circumstances there are quite some ...
1
vote
2answers
214 views

Selective syncronisation of two directories in UNIX (Solaris)

I'm wondering if anyone knows of a nice way to partially duplicate (hard link) files between two directory structures? My current fall back is a script invoked by cron. As background: I ask since I ...
2
votes
3answers
679 views

How does logrotate interact with hard linked files?

I have a service which insists on keeping it's log files in terrible locations. After all efforts to change where it keeps them failed, my next idea was to create hardlinks to those files somewhere ...
0
votes
2answers
200 views

rsync apparently breaks hard links

On the source server (A), I got a file /opt/resources/xxx and a hard link /etc/apache2/sites-available/xxx pointing to this file. On another server (B) I got the same structure /etc/apache2/sites-...
0
votes
1answer
136 views

Hard link files within directory to reduce space usage, by “version”

I have an Ubuntu 12.04 server. Server is running rsyncd (rsync daemon), and allows an external process to rsync in files to a given path, with full control of the file structure within that given path....
2
votes
3answers
683 views

Under Linux, how do I copy files from one filesystem to the other (both gpfs) and preserve hard links?

I have a directory with huge files and a number of directories, that have hardlinks on these huge files. How do I copy files from one filesystem to the other and preserve hard links?
6
votes
2answers
2k views

rsync with --hard-links freezes

I have a large directory called servers, which contains many hard-links made by rsnapshot. That means that the structure is more or less like: ./servers ./servers/daily.0 ./servers/daily.0/file1 ./...
8
votes
2answers
773 views

Break all hardlinks within a folder

I have a folder which contains a certain number of files which have hard links (in the same folder or somewhere else), and I want to de-hardlink these files, so they become independant, and changes to ...
50
votes
3answers
7k views

What is the difference between a soft (symbolic) link and a hard link?

I hear that you can now create soft links in Vista too. So, what is the difference between a soft (symbolic) link and a hard link on UNIX/Linux/Vista? Are there advantages of using one over the other?...
7
votes
2answers
2k views

Is there a way to create a copy-on-write copy of a directory?

I'm thinking of a situation where I would have something that creates a copy of a directory, tweaks a few files, and then does some processing on the result. This wold be done fairly often, maybe a ...
0
votes
1answer
194 views

Backing up an rsnapshot directory to a remote device

I have a local backup server that uses rsnapshot with hard links that contains about 10TBs of information which add about 4 to 5GBs per day. It's works great. I've been requested to set up and ...
1
vote
2answers
1k views

bind (hardlink) one directory to many places

I need to "bind" one directory to many chrooted places. I know that I can do "mount -o bind", but this requires special processing on startup each time (run the mount). Is there a way to do it on the ...
4
votes
7answers
2k views

Linux: Best-practices for Hard Linking?

I've used hard links in the past, but they seem to make a bit of a mess of things... When is the proper time to use Hard links? What are the best practices for when and where to use hard linking? ...
1
vote
1answer
62 views

Speeding up directory creation / file linking

I'm using rsnapshot for backups. Currently that means every time an update runs (even without any data difference) I get a copy of ~100M of only the directory structure + inode list. The files are ...
0
votes
2answers
72 views

What happens if hardlinks are not preserved?

I evaluate backup solution for common linux servers. What happens if hard links are not preserved? The only draw back I see: After the restore some MB more space is required. But this is no problem ...
3
votes
1answer
288 views

hardlink of ms word file getting hidden and not updated

I created a docx file in windows 7 with some text in it (initial.docx) and then I created a hardlink to it: mklink /H new.docx initial.docx I open new.docx and I can see the text that I initially ...
2
votes
1answer
635 views

How to tell Mercurial to never create hard links

I am planning to use Mercurial in the near future on some projects. These projects will normally reside in a directory on my Windows machine, but I will be sharing these directories using VirtualBox ...
0
votes
1answer
423 views

directory of hardlinks on NTFS appears to be consuming more space than it should

Windows 2008 R2 and Windows 7 Ultimate both exhibit this behaviour... So I have directory structure like... YEAR\MONTH\file_x.ext, where YEAR goes back to 2007 and each MONTH directory contains ...
3
votes
2answers
1k views

Samba breaking hard links - desired behaviour?

I'm using Samba 2:3.5.4 in Ubuntu 10.10 Server, and an EXT4 filesystem. I have setup a folder "dev" locally on my pc, and using "cp -alf" hard linked that folder, to folder "test". So upon looking in ...
3
votes
2answers
8k views

how to create symbolic link (ln) between two partitions

I have two partitions on my Ubuntu 10.04.3 server. partition 1: /mnt/storage/ partition 2: /var/www/myweb/ now when i run the following command $ ln /mnt/storage/sourcefile.txt /var/www/...
6
votes
1answer
172 views

Linux hardlink confusion

I am confused with Linux hard link, I created a hardlink with this command on my Ubuntu box, ln f1 f2 So f2 should be a hardlink of f1, but why I changed f2 with emacs and saved f2, f1 didn't ...
0
votes
1answer
1k views

How do i hardlink /run to /var/run on debian? (And should i be doing it?)

I'm trying to copy the root file system of a Debian unstable system. I get the following warnings when i do this: gw:/# cp -xar / /mnt/1.tmp/ cp: will not create hard link `/mnt/1.tmp/var/run' to ...
1
vote
2answers
133 views

Hardlink files not the same

I created a hardlink of a file as follows: ln /path/to/source/file1 /path/to/target/file2 Using md5sum, the two files are identical. After a while, the source file has been modified by another ...
13
votes
5answers
7k views

Some GUI for mklink?

Do you know some GUI tool to create Hardlinks/SoftLinks/Junctions?
2
votes
4answers
403 views

Does number of hardlinks to a directory correspond to the number of subdirectories in it?

When displaying directories using ls -l, their number of links (the second field in the output) is at least two: one for the dir name and one for . $ mkdir foo $ ls -l total 2 drwxr-xr-x 2 user ...
0
votes
4answers
900 views

Skipping hardlinks when using TSM Backup

We need to backup a filesystem with lots of hardlinks. Since there are several hardlinks for each "true" file, we would like to skip all the hardlinks when backing up the filesystem to avoid n exact ...
3
votes
1answer
1k views

Rsnapshot to multiple destinations (or maintain hard links structure)

I'm doing a backup of multiple external servers on a local machine using rsnapshot and it's working beautifully. Now, I'd like to clone the destination snapshots on an external disk that will be ...
1
vote
3answers
1k views

Using hardlinks over network drives

I know that you can fsutil hardlink on local drives, however I'd like to be able to hardlink on a network drive over to a different network drive. Is this possible? I presume not as the two drives ...
0
votes
2answers
491 views

Hard Link for Directories in linux

Hai, How can i create hard link for my directories ? When i use to make link from /var to /home it shows error on "Invalid cross-device link", How can i over come it ?
3
votes
4answers
183 views

Hardlinks of a file

What is, on Linux, the way to get a list of a file's hardlinks ?
0
votes
3answers
380 views

Remote Link on OSX

I have two machines on the same LAN, I usually ssh from one to the other and I was wondering if I could create a symbolic or hard link from a box that points to the other one. I'm using OSX on both ...
0
votes
1answer
188 views

How to get the total amount of hard links in a Linux folder structure?

I am currently having a bit trouble with calculating backup sizes with Jungledisk due to the fact that each hard links seems to be counted as a seperate file. I want to be able to retrieve a list of ...