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

1

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 using Mac OSX) an error appears the operation is not supported.

Is it possible to create a hard link on an NTFS filesystem using Linux/Unix tools?

Note: The hard links are to other files one the same NTFS drive.

David Milanese

Posted 2017-05-12T07:24:07.940

Reputation: 41

2Hard links can't cross file systems. – n8te – 2017-05-12T07:32:07.117

This link has a good explanation as to why: https://unix.stackexchange.com/questions/290525/why-are-hard-links-only-valid-within-the-same-filesystem

– Sc00T – 2017-05-12T15:14:55.037

2I don't want to create hard links across file systems. Let me reword the question. I've edited the original post. – David Milanese – 2017-05-13T00:27:39.110

Answers

0

NTFS-3G is an open source cross-platform implementation of the Microsoft Windows NTFS file system with read-write support. NTFS-3G often uses the FUSE file system interface, so it can run unmodified on many different operating systems. It is runnable on Linux, FreeBSD, NetBSD, OpenSolaris, BeOS, QNX, WinCE, Nucleus, VxWorks, Haiku, MorphOS, Minix, Mac OS X and OpenBSD

NTFS-3G supports all operations for writing files: files of any size can be created, modified, renamed, moved, or deleted on NTFS partitions. Transparent compression is supported, but there is no support for encryption. Support to modify access control lists and permissions is available. NTFS partitions are mounted using the Filesystem in Userspace (FUSE) interface. According to its man page, NTFS-3G supports hard links and symbolic links.

NTFS-3G supports partial NTFS journaling, so if an unexpected computer failure leaves the file system in an inconsistent state, the volume can be repaired. As of 2009, a volume having an unclean journal file is recovered and mounted by default. The ‘norecover’ mount option can be used to disable this behavior.

http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/

see here also:

https://serverfault.com/questions/165389/create-ntfs-symbolic-links-from-within-linux https://stackoverflow.com/questions/4685207/is-creating-hardlinks-from-linux-on-a-ntfs-partition-viable

user711575

Posted 2017-05-12T07:24:07.940

Reputation: