HardLink ?

James Mckenzie jjmckenzie51 at earthlink.net
Thu Dec 9 14:35:11 UTC 2010


admin lewis <adminlewis at gmail.com> wrote:
>
>Hi,
>I'm trying to make an hardlink between in this way:
>ln /my/path/source/file.txt /blah/blah/file.txt/
>but I've got the following error:
>ln: creating hard link `...../..../....' => `......../....../': Invalid
>cross-device link
>I've only one root filesystem so it's strange that error about
>cross-device..
>the source file is in /home/...... and the link target is in /var/ftp.....
>the following is my mount
>
>[root at mybox vsftpd]# mount
>/dev/mapper/vg_mybox-lv_root on / type ext4 (rw)
>/home on /home type none (rw,bind)

You cannot create a hard link between these two file systems.  Linux 'sees' them as two different logical drives with two different super-inodes.  It is possible to create a soft-link however.

James McKenzie



More information about the users mailing list