Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] nfs hard links

On 01/30/2013 09:31 AM, Edward Ned Harvey (blu) wrote:
> I don't happen to have any NFS systems handy right now to test on.
> When I google around, everybody's answering the wrong question - I know you can't hard link local filesystem to a remote filesystem.  I want to know remote to remote.
> mount mynfs:/someexport /home/someexport
> cd /home/someexport
> touch foo
> ln foo bar
> Can you hard link a NFS mounted file to another NFS mounted file on the same NFS system?
Some of this has been answered by Richard and Charles.
1. You can hard link if the exporting system supports hard links (eg is
a Unix or Linux system). I'm not sure if a Windows system that exports
NFS will support hard links
2. You can hard link only within same mount point:
So in your example, there should be no problem:
mount mynfs:/someexport /home/someexport
mount mynfs:/anotherexport /home/anotherexport
cd /home/someexport
touch foo
cd ../anotherexport
ln ../someexport/foo foo    ## This will fail: Invalid cross-device link

Mounted file systems essentially each have their own inode tables.

Jerry Feldman <gaf at>
Boston Linux and Unix
PGP key id:3BC1EB90 
PGP Key fingerprint: 49E2 C52A FC5A A31F 8D66  C0AF 7CEA 30FC 3BC1 EB90
Invalid cross-device link

BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!

Boston Linux & Unix /