The difference in file size between Symbolic and Hard links

filesystemshard linksymlink

I plan to keep all my movies in one giant folder, and then create other folders for the genres, while creating links for all the movies in the genre folder. This way I can organize movies into multiple genres without unnecessarily copying them.

I've been planning to use hard links in this endeavor in order to create a more robust system in which I may be able to move files around without breaking links. However, I'm wondering if hard links will take more storage space than symbolic links and bloat my machine. I've created soft and hard links to files to test this, but they both show the original file size when I look at file size under preferences in Thunar.

Which file takes more hard drive space, Symbolic Links, or Hard Links?

On a semi-unrelated side note, does xbmc / kodi recognize links to videos as actual videos?

Best Answer

Symbolic link files take more space. Hard linked files share the same inode; but a symbolic file is a pointer to the original (location).

Despite that, there are two caveats for hard links:

  • Not all file system support hard links.
  • Hard links cannot be applied for folders.

I guess you do not need to consider about the storage issue since in most of the cases they are trivial. In addition, there might be some tools helping you organize genres virtually (they may take advantages of virtual file systems).