Bug in Lab - "Files, directories, hard and soft links" - Q15

Bug in Lab - “Files, directories, hard and soft links” - Q15

The above question does not work at all. How should I create a hard link, if they are not on the same file system?

Unfortunately without Screens, as I wasn’t allowed to upload the screens from question and solution.

[bob@centos-host ~]$ ln /tmp/hlink /home/bob/hlink
ln: failed to create hard link '/home/bob/hlink' => '/tmp/hlink': Invalid cross-device link
[bob@centos-host ~]$ df /tmp /home/bob
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/root       20134592   8268652  11849556  42% /tmp
overlay        772706776 115997684 617384320  16% /
[bob@centos-host ~]$ 

Hi @kodekloud1761

Thanks for highlighting this issue.
This occurs when creating a hard link between files that reside on different filesystems or partitions.

I’ll report this to the lab team to fix it.

Regards.

Hi @kodekloud1761

The issue is fixed and the lab is working as expected.

Thanks for your patience and support.

Thank you for taking care of that and fixing the lab.

1 Like