Questions tagged [hard-link]

A hard link is file system entry that associates a name with another file on a file system.

21 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
834 views

Space efficiency of Btrfs reflinks vs hardlinks

A webpage referenced by the Wikipedia article on Btrfs claims that (emphasis mine) [Btrfs] reflinks have the same use as hardlinks, but are more space efficient. I thought that the opposite was ...
3
votes
1answer
558 views

Generate SFV file, optimizing hard links

I'm currently running cfv -C -rr to generate a SFV file that contains the CRC32 checksums of all files in all subdirectories. The issue is that because there are so many hardlinks, this process is ...
3
votes
2answers
1k views

Use the same file link for both Linux and Windows

Is it even possible to do so? I mean, can I create a link on Linux and than make this link valid also on Windows? Use-case I have the folder /media/Data/DownloadedMusic on a NTFS partition. I also ...
3
votes
0answers
1k views

Multiple Linux or Unix Distributions, Same Home Partition or Data?

To avoid conflicts I have always installed multiple Linux and Unix distributions each with it's own home partion or directory, and in the era of 3TB hard drives this is often very practical; I also do ...
2
votes
1answer
570 views

Rsync link-dest - unsure if its creating hard links

This is my first attempt at a shell script. I'm simply trying to make incremental copies of certain folders from a server to another server using Rsync, but using the link-dest option to create ...
2
votes
0answers
259 views

Creating an Arch ISO image produces invalid cross-device link errors

I have been trying to create a custom Arch ISO by following the archiso article at The ArchWiki, unfortunately whenever I run ./build.sh -v from my ~/archlive directory I get one of two types of error....
2
votes
0answers
552 views

Directory symlink to inode, not path (e.g. directory hardlinks)

I'm trying to better understand why directory hardlinks are not possible. Roughly, I think of directories and files as follows: directory --------- inode # exposed as . inode_of_parent # ...
1
vote
0answers
26 views

How to force tar cf to have reproducable results?

Preface: We have a complex build process and discovered it's working on one system and failing on another (unfortunally/Murphy it worked on the Jenkins build server, so the problem remained ...
1
vote
0answers
53 views

Rsnapshot made my external disk run out of space

I have Rsnapshot doing incremental backups from Client1 to Server1 (RAID 5) within folder "BACKUP". On Server 1, tonight, I copied the "BACKUP"to an external disk for the first time using the command ...
1
vote
0answers
42 views

Some questions about Hard-links, and backups

Recently I accidentally whipped out a directory with important stuff, and now I'm starting to think about the best ways to have backups, a remote copy It's already in place but I was thinking, about ...
1
vote
1answer
169 views

Linux - Directory with zero link count (Rancher container)

I have a permission error in a Rancher container's shell when accessing certain directory, but the permissions are correctly set. Then I noticed that the link count for said directory is zero, as ...
1
vote
0answers
637 views

Incremental backups - rsync with hard links, or rsync to zfs with snapshots?

I need to set up a backup server to pull data from on-site linux servers. The server will be running Ubuntu 16.04. A requirement is to be able to access backups of files which have been subsequently ...
1
vote
1answer
1k views

df and hard links issue for backup

We are doing incremental backup with use of hard links the initial size was 10 TB and we added 1 TB weekly . backup1: 10TB week2: 1TB week3: 1TB du -hs week2 reports 11 TB; it is ok as inode are ...
1
vote
1answer
502 views

Determine a file with the most Hard-Links

i got a homework today. Can u help me guys? "Determine on any PC pool that hosts regular file on the local file system root who has the most hard links! Avoid doing a search of the user home ...
1
vote
1answer
592 views

Linux command to copy as hard links, while deleting unwanted files?

I'm looking for a command that behaves both like cp -al in only creating hard links rather than copying file contents, and rsync -a --delete in removing files from the destination that are not ...
0
votes
0answers
10 views

BSD tar xPf won't extract hardlinked files through symlinked directory

On MacOS 10.11.6, /usr/bin/tar is "bsdtar 2.8.3 - libarchive 2.8.3". The -P option allows me to extract a tar file through a symlink. That is, if foo1 is a symlink to foo2, and the tar file stores ...
0
votes
0answers
26 views

Cannot rm broken NTFS link

I'm trying to use an old windows NTFS drive as extra storage on a raspberry pi. I tried to delete everything on it, but came across a problem where I can't remove two broken links. I can format the ...
0
votes
0answers
332 views

Why my rsync -Hav is not copying hard links?

I know this has been asked before, but for some reason my version of rsync -H does not seem to be working consistently. I have a backup system with lots of hard links. I want to copy the thing to a ...
0
votes
1answer
32 views

Why soft links from standard folders?

My observation is, most of the python files sitting in some standard locations like site-packages are symbolic links to actual file name(sitting in non-standard folder) pointing to inode. ...
0
votes
2answers
311 views

How to claim disk space by removing all the files and hard links?

I've been trying for hours to figure this out but cant seems to do it My question Is I have a file name easy and there's 4 different sub directories in it now what I have to do is delete ...
0
votes
1answer
579 views

How to increase the link count for a directory, link count went to 0?

I have made myself land in this situation, it is a chrooted workspace on my system where I virtualize the entire file system ( so its not actual /var/log ) Is there a way that I can either delete this ...