Questions tagged [hardlink]

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.

68 questions
0
votes
1 answer

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 directory `/mnt/1.tmp/run' cp: will not create hard…
bdew
  • 103
  • 3
0
votes
0 answers

Cwd of a process started from hard link path

I have an app which is starting by path which contains a folder which is hard link. If I look for process current working directory it is same as source of a hard link. The main problem is that app has relative path for writing logs and etc. So logs…
Ruslan F.
  • 101
0
votes
1 answer

NAS de-duplication best practices - how do hardlinks handle compression?

I just joined a SMB as their first full-time tech guy, and the company's backup architecture is a mess. Leaving aside all other issues (of which there are many), the office has multiple different NAS devices and disorganised backups all over the…
0
votes
1 answer

ln: failed to create hard link: Too many links

I have a pipeline on my server which creates a lot of hard links to big files. today I realized it fails and shows this error: ln: failed to create hard link to '/path/to/a/file': Too many links The filesystem is ext4 and dir_nlink is enabled: >…
asalimih
  • 101
  • 1
0
votes
1 answer

Windows hardlinks - why it consumes same space as original file

Im using finddupe tool to de-duplicate files and save some space on HDD. But checking before and after operation I cant see any free space released - see below. Can somebody advise what is wrong here ? D:\TEMP\1>dir 30.09.2021 12:50 …
Maciej
  • 123
  • 6
0
votes
1 answer

It is possible that a process can not link a file, but I can with sudo for the same user?

I am working with Dovecot 2.3.4.1 and EncFS (encfs version 1.9.5) encrypted mailboxes on Debian 10 (no SELinux) Basic setup is: EncFS mounted with encfs --public /var/encrypted-mail /var/decrypted-mail -o nonempty…
func0der
  • 154
  • 4
  • 15
0
votes
2 answers

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 ?
Kumar
  • 823
  • 3
  • 20
  • 43
-2
votes
1 answer

How to detect hardlinks over network share?

I swear I had this working at one point ages ago but now it's not. I have a Windows 10 machine with a Linux network share. I can create hard links on the network share just fine, but I cannot detect them. For instance, I run a file duplication…
1 2 3 4
5