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

1
vote
0answers
46 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 ...
0
votes
1answer
100 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 ...
2
votes
1answer
234 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
198 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
100 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
55 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
62 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 ...
0
votes
0answers
56 views

What is the expected behavior of creating links on a Samba share from a Windows machine?

I've got a server with some stuff shared via Samba and a remote machine running Windows used to access the share. What is expected to happen if I create symbolic/hard links using standard Windows ...
2
votes
3answers
289 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
104 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 ...
0
votes
1answer
121 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 ...
0
votes
2answers
151 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 ...
0
votes
1answer
99 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 ...
2
votes
3answers
391 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?
0
votes
1answer
162 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 ...
8
votes
2answers
538 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 ...
1
vote
1answer
57 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 ...
1
vote
2answers
729 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 ...
0
votes
2answers
70 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 ...
1
vote
1answer
204 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 ...
0
votes
1answer
317 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 ...
13
votes
4answers
8k 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?
3
votes
2answers
3k 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 ...
9
votes
3answers
1k 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 ...
6
votes
1answer
153 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
870 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 ...
2
votes
2answers
960 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 ...
1
vote
2answers
128 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
7answers
9k 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 ...
4
votes
2answers
1k 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 ...
2
votes
4answers
395 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 ...
4
votes
2answers
1k 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 ...
2
votes
1answer
540 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 ...
3
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? ...
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
666 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
379 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 ?
1
vote
2answers
204 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 ...
0
votes
3answers
347 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
156 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 ...
3
votes
4answers
175 views

Hardlinks of a file

What is, on Linux, the way to get a list of a file's hardlinks ?
0
votes
4answers
764 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 ...
44
votes
3answers
5k 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 ...