Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
2answers
302 views

What happens when moving hard linked file across filesystems using `mv`?

I have a collection of folders on one file system which have been hard linked together (the contents are identical). What happens when I move one of the folders to another filesystem on another disk?...
0
votes
2answers
125 views

Transparently split file | Hardlink to file part

I have really big file (TrueCrypt container) and I want to save it in some cloud, but it has constraint on file size, limiting to 2 Gb, also it has some tool to sync directory. The idea is to create ...
5
votes
1answer
1k views

How do I create a hardlink in guest user in virtualbox

Apparently, VirtualBox does allow to create hard and soft links inside guest os on shared folders . Now the thing is I need to install a package that is creating hard links Hardlink("lib/abc", "/...
4
votes
1answer
986 views

Is it possible to delete a hardlink to a locked file?

In short, I need to do what was asked here: One hardlink is locked. How do I remove the other? The given solution doesn't work for me as I'm trying to create/delete a hardlink to a file that is in ...
3
votes
1answer
75 views

Virtual join-directory on Windows

Problem: Say I have a video spanned over 2 files (vid001.avi & vid002.avi) and each file is on a seperate CD/DVD. If the 2 files are in the same directory my player will automatically play the ...
3
votes
1answer
971 views

Accessing files obscured by filesystem mounted at non-empty directory

I wish to mount a volume/filesystem at a non-empty directory, yet still retain access to the directory's contents. Is this possible? I know that a filesystem can be mounted at a non-empty directory ...
1
vote
1answer
974 views

Editing the hardlink doesn't edit the original file

I have a file at D:\JavaScript\CheckIban.js, and I want to reuse it in many places without duplicating it. Because when I fix a bug (change its content) I need that change to be propagated to all ...
1
vote
1answer
55 views

Linking multiple folders into a single folder so that relative paths work. (Fedora)

I have a SVN repo that has a structure that does not line up with the needed relative build paths. The SVN repo directory looks kinda like this root alpha trunk p1 p2 p3 tag branch bravo ...
1
vote
1answer
541 views

How do I get Windows 7 to recognize a Junctioned User folder?

I'd like to junction or hard-link my C:\Users[me]\ folder to a folder on my D: drive for space reasons. This has worked for me in the past, but after a recent reformat/reinstall of Win7 x64, Windows ...
0
votes
1answer
159 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 ...
0
votes
1answer
695 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
1answer
89 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
1answer
45 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 ...
0
votes
1answer
73 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 '...
0
votes
1answer
159 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 ...
0
votes
1answer
114 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 ...
0
votes
1answer
311 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 ...
0
votes
1answer
176 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,...
0
votes
1answer
195 views

How to merge directories of hardlinks potentially pointing to the same files?

I've used a file deduplicator on a large folder with hundreds of thousands of files. The deduplicator created hardlinks for all duplicate files that it detected. If I was to attempt to merge some ...
0
votes
1answer
86 views

How do I list the files in a directory that are hardlinks in windows

I'm trying to work with backups and new versions of backups and I want to check if files listed in a directory are already hardlink alias to some file or if they are the last link to that content. ...
0
votes
1answer
55 views

Inheritance system for folders (symlinks?)

Okay, here's the scenario. I have a base folder "Base" that has a blank, multipurpose template. However, this template is 12 gigabytes. I want to be able to have an inheritance system where linked ...
-1
votes
1answer
68 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 ...
2
votes
0answers
56 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: ...
2
votes
0answers
94 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 ...
2
votes
0answers
198 views

Efficient mirroring of directories using hardlinks

I'm backing up my music collection on to a number of NTFS-formatted external hard-drives; however, as I store my main collection in FLAC and have my library on my laptop as MP3s to save space, I want ...
1
vote
0answers
355 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 ...
1
vote
0answers
180 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 ...
1
vote
0answers
166 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 ...
1
vote
0answers
143 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
vote
0answers
273 views

Which filesystems support hard links (rsync) to backup a Mac?

I want to make a rsync-style hard-link backup from Mac on an external hard drive, but I cannot decide for a file system. It should be (preferably natively) readable from other operating systems. ...
1
vote
0answers
297 views

shortcut to recursively copying a directory preserving modes, ownerships and hard and symbolic links

I am using the following to recursively copy a directory while preserving modes, permissions as well as hard and symbolic links: cp -pr --preserve=links dir-a dir-b However I have the following ...
0
votes
0answers
20 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 ...
0
votes
0answers
51 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 ...
0
votes
0answers
31 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 ...
0
votes
0answers
223 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
0answers
129 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
0answers
138 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
0answers
126 views

Find real size of Windows/winsxs folder in Cygwin

I'm running Cygwin with the default installation. I'm a complete noobie to Linux & Cygwin. I just figured out how to find all hardlinked files in my c:\windows\winsxs folder. (Navigate to /...
0
votes
0answers
304 views

All of the NTFS hard links damaged, where are those 0kb hardlinks stored 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
0answers
64 views

How many hardlinks in a drive?

I made a backup of one of my external drives to another. They are both NTFS filesystems. I moved ALL disk contents into a folder called a and right clicked to get file/folder/size count. They are ...
0
votes
0answers
488 views

fsutil can't create more than 4 hard links to a file in win srv 2003?

I got an error message when I created 5th hard link to a file using fsutil: Error: An attempt was made to create more links on a file than the file system supports. I was quite surprised ...