Questions tagged [hardlink]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Writing files over network on another machine

I have the following scenario: CentOS machine which downloads files (e.g., wget, or any software that tries to save to local disk) Ubuntu machine which contains the storage for the downloaded files ...
0
votes
0answers
65 views

How to remove file with hard link 0

I've tried to remove linux files from windows but they hadn't been deleted. I tried to remove from Ubuntu terminal but get "permission denied" I set chown $USER:$USER and chmod 777 for parent ...
0
votes
0answers
19 views

rsync --hard-links not working?

I am trying out the --hard-links flag in a test rsync run to see if it works to preserve the hard links in my source directory as opposed to making separate copies of the files - which is what I'm ...
0
votes
0answers
14 views

Rsync inflation and hard links

Super simple question here (hopefully). I'm using rsync to copy over/update a large (6TB) directory from one Synology NAS to another. I'm dealing with a size-inflation problem of the source ...
0
votes
0answers
32 views

Mount folder on MacOS

I want to mount a folder (specifically mount not soft link) in macOS Catalina. I tried: mount -t ufs <path to src folder> <path to dst where I want my mount point> I got in return: ...
0
votes
1answer
52 views

Directory junction equivalent for ext4

In the NTFS, directory junctions used as hard links for a directory. However, on the ext4 file system, no such equivalent exists (to accomplish this task, you have to make a symbolic link). Is there ...
1
vote
1answer
38 views

Windows archive symbolic links

Is Windows able to store Symbolic links or Hard links in archive files? I see 7-Zip has these options: -snh : store hard links as links -snl : store symbolic links as links but trying them with Zip,...
1
vote
1answer
67 views

Getting and understanding a listing of NTFS links

I've been learning about NTFS links (1, 2) and playing around with them on my computer. It's a strange world of pseudonyms for filenames and folder names, and I'm not clear yet on why I have them, but ...
1
vote
2answers
117 views

Create recursive hardlink of entire folder

First of all, I know that you can't create hardlinks of a folder. I was wondering if there was any command (linux) that could automatically (and recursively) create the subsequent folder-tree at the ...
0
votes
1answer
39 views

How to enumerate all hard link paths of a certain inode without traversing an entire filesystem in Linux?

I would like to know all paths that has the same inode number, I found ls - List all files with the same inode number? - Unix & Linux Stack Exchange however the answer involves traversing the ...
1
vote
0answers
176 views

SnippingTool.exe not located where it appears to be?

I just bought a new SteelSeries mouse. I'm trying program button 6 to launch "SnippingTool.exe". SnippingTool.exe appears to be located at "C:\windows\system32\SnippingTool.exe" or at least it shows ...
1
vote
0answers
28 views

rsync hard linking bug when using -R?

Following on File copy tools that will preserve hard links at destination, I found the problem is not at copying hard linked files to another volume part, but the source hard linked files themselves. ...
1
vote
1answer
56 views

File copy tools that will preserve hard links at destination

rsync has a --hard-links option: -H, --hard-links This tells rsync to look for hard-linked files in the source and link together the corresponding files on the destination. ...
0
votes
0answers
479 views

rsync link-dest does not link even the content in the comparison directory is the same to the source directory

I found the "rsync --link-dest" behaves differently depending on how I created the comparison directory. If the comparison directory was created by a "cp" command, the "rsync --link-desk" does the ...
1
vote
0answers
50 views

create date folder version backups with hard links and a combined view

I am using the ideas laid out in this article to create incremental versioned backups of my data. I basically sync the data to a current folder in my backup destination and then create a date folder ...
6
votes
1answer
3k views

Can I hard link files with rsync instead of copying them?

cp -l hard links files instead of copying them, saving filesystem space. I need to use rsync instead of cp because of its --exclude capabilities. So my question is, how do I get rsync to hard link ...
2
votes
0answers
62 views

How to know the actual number of bytes that will be freed if I delete a directory with unsaturated hardlinks

I need to know the real space a directory is using in Windows. By real space I mean the number of bytes that will be freed up if I remove the directory with the Windows explorer. In other words: ...
0
votes
2answers
407 views

pros and cons of incremental vs differential backup? [closed]

Back In Time says it saves full copies of changed files. And it links unchanged files via hardlinks. So this is a incremental backup. What are Pros and Cons of an incremental backup (like done with ...
0
votes
0answers
49 views

Move SoftwareDistribution Windows update folder [duplicate]

I have to free some space in my small SSD with Windows 10, can I move SoftwareDistribution folder of windows updates to another volume using link? If yes, may I use symbolic, hard or junction?
2
votes
1answer
46 views

How to remove multiple links to the same directory?

I have a broken lxd installation and want to completely delete it and start over, but there's a problem. /var/lib/lxd/devices/desktop contains a bunch of subdirs that are linked to directories ...
1
vote
0answers
683 views

How to delete all hardlinks to the same file (inode)?

I've used Link Shell Extension to create a bunch of hardlinks in different directories within the same hard drive (to save space, as I need both stored in different locations). When I want to delete ...
0
votes
1answer
342 views

hardlink/symlink with mapped drives in Server 2003

I'm trying to create a hardlink on a Windows Server 2003 system using fsutil hardlink create M:\docs L:\docs but am receiving a message stating "The FSUTIL utility requires a local NTFS volume. I ...
1
vote
1answer
178 views

Which hard link determines the file's actual location? [duplicate]

In my understanding a file, as I can see it in file explorer, is basically a hard link to the actual data. When I move this to another directory, the data is moved as well to that location. What ...
1
vote
1answer
333 views

Deleting Hardlink To System File On Win10

I have hard links into system files advapi32.dll, kernel32.dll and etc. I have used MoveFileEx API for deletion with MOVEFILE_DELAY_UNTIL_REBOOT, it basically uses HKEY_LOCAL_MACHINE\SYSTEM\...
0
votes
0answers
62 views

How can I delete a folder with 65535 links?

Somehow a folder from /var/folders (/var/folders/2j/8_50ggln3wz21k4gmfx86drh0000gn/T/ on my machine) got 65535 links to it. This caused my machine to not boot anymore. I managed to fix the booting ...
1
vote
1answer
431 views

Sync files via OneDrive that are hardlinked to other locations

I use OneDrive to sync a script between multiple computers, including between my home and work machines. At work, we recently implemented separate logins for normal vs. admin access. This caused a ...
0
votes
0answers
50 views

Hardlinked windows 10. Issues with windows updates and all standart metro apps

I have installed the fresh windows 10 and created hardlinks: C:\Program Files -> D:\ProgramFiles C:\Program Files(x86) -> D:\ProgramFiles(x86) C:\User -> D:\Users C:\ProgramData -> D:\ProgramData ...
1
vote
0answers
237 views

Deleting hard-linked directory on macOS?

I have a directory on my macOS that I hard-linked to my Google Drive folder, using gln -d "path to directory" "path to Google Drive folder" If I try to remove the directory from my Google Drive ...
2
votes
1answer
536 views

Why can't I hard link a certain file (Mac)?

I'm copy/linking files and have found that a certain file really does not like to be hard linked. Both gcp -alp Get_started_with_GoPro.url test (gnu-cp) and ln Get_started_with_GoPro.url test fail ...
1
vote
1answer
1k views

How to create a hard link on a NTFS filesystem using Linux/Unix commands?

I have an NTFS backup hard drive and I want to perform incremental backups that utilize hard links to save storage space. When I try to link 2 files on the hard drive via a Linux OS (I'm currently ...
0
votes
0answers
329 views

How do I use the mklink command to create hard links for all files that end in a certain extension?

I want to construct a batch file to move certain file types from the Downloads folder to another folder I've designated for that filetype. And then, put a hardlink in the downloads folder for that ...
0
votes
1answer
109 views

How are files added to multiple folders implemented in Google Drive sync?

I have a large amount of files in Google Drive, which I need to organize by different criteria. I'm planning to use the feature to add the same file to multiple folders (sort of like hard links in a ...
0
votes
0answers
234 views

Efficient `rm` of hard links?

Suppose these is a file foo. Then, suppose I create a hard link: ln foo bar I can delete bar by running rm bar. However, it looks like when there are lots and lots of hard links, using rm is as slow ...
0
votes
1answer
205 views

How can I make the content of multiple folders appear as one virtual folder or drive letter?

I have been wanting to do this for a while now and have looked up union FS and symoblic links and all sorts of filesystems like ZFS. But I am not so sure that my needs are that complex I just can't ...
5
votes
1answer
1k views

Recursively find files with specific hard link count

I have a "tracking" directory containing hardlinks to files/dirs in a second directory ( used for tracking moves/renames). If I delete something in the original folder, no disk space is freed as its ...
0
votes
0answers
148 views

Upload files to Dropbox without being in Dropbox folder?

Assume I have my general dropbox folder, and my Photo/Video files in an another folder: /mnt/myhd/Dropbox /mnt/myhd/MyPhotosVideos Now, how can I upload all files from MyPhotosVideos to Dropbox ...
0
votes
1answer
430 views

Can i use hard or symbolic links on a DVD which needs to be Mac and Windows readable?

I'm producing a DVD and want to try to save some space to fit it onto a single-layer disk rather than dual-layer. There are a lot of repeated files on there and it occurred to me that I could have a "...
2
votes
0answers
130 views

On OS X, saving breaks hard links

I'm using OS X 10.10.5, and I'm seeing a strange issue with hardlinked files. When I update one of the linked files and save the change, the other linked file becomes blank -- a zero-byte file. This ...
0
votes
1answer
77 views

How can I delete these leftover hard links?

I was working with many small files (about 1million) and for one reason or another had to create a bunch of hard links to them. Now I am trying to delete all this data, but can't. After removing the '...
1
vote
1answer
214 views

Hard links break in Windows 7 Pro

I want to use hard links to avoid having to sync/copy a few source files between their base folders and a small git repo for personal development. C:\PathLink>mklink /h test C:\PathTarget\file....
1
vote
1answer
120 views

hard link to share files in git osx

I am trying to share a config file ~/.spacemacs in a git repository ~/repo/config/spacemacs. Since I am on osx, I installed hardlink and used it like : ➜ ~ hln ~/.spacemacs ~/repo/config/spacemacs ...
0
votes
1answer
184 views

Can't run a program through a link?

I'm working on a Windows 8.1 machine, fully patched, except for the Get Windows X malware. I have Android's SDK installed at C:\android-sdk, but its not on-path. I'm trying to avoid putting 2 SDK ...
1
vote
0answers
171 views

Hardlink on same drive gives error about different drive

I'm using mklink /h to create a hardlink from "d:\some folder" to "d:\some other folder" and Windows 7 is telling me "The system cannot move the file to a different disk drive." But it's NOT a ...
-1
votes
1answer
91 views

Can I hardlink my desktop folder to a different partition so I can put big files on it?

Correct me if I'm wrong, but a hardlink is esentially like a shortcut that can trick applications to think it is a real folder. It allows you to specify an application to point to a shortcut to save ...
1
vote
1answer
151 views

How to make an exact copy of a directory to an another partition?

I have a 20Gb folder on an ntfs drive. How can I make an exact of only that folder to an another ntfs volume? By exact, I mean, copy pemissions; keep directories hard links (if any); and keep ...
0
votes
1answer
171 views

How to Count Hard Links, Symbolic links, and Junctions on an Ntfs Volume

I know of some programs that claim to count one or the other, but I don't know of any that can count all three. I would like to count all three and print out a list like so: Hard Links: 123 ...
1
vote
1answer
448 views

Best method to copy big partition contents with many hard links

We had a LVM of almost 16TB with ReiserFS. We now want to add more disks, but we cannot continue using ReiserFS, as it has a maximum capacity of 16TB. This volume is being used to make incremental ...
10
votes
4answers
6k views

Copy to another NTFS disk and preserve hard links

I have to copy directory structure from one local NTFS disk to another (Windows 7+) and preserve hard links that exist within this directory structure. An acceptable solution would be to replace hard ...
0
votes
1answer
251 views

Hard Links in Windows - risk of file-loss?

I am now creating hard links to remove duplicate space usage in backup data. This is within single NTFS partitions. I am afraid of data-loss - losing a file completely if one link reference is broken,...
5
votes
1answer
2k views

Rsync backups on btrfs very slow

My environment is Ubuntu 15.04 with kernel 3.19.0-28-generic and Btrfs v3.17. I have two identical external USB hard disks that I use with my backup script. One of them is formatted with btrfs and ...