Why is my custom script running on Red Hat Enterprise Linux is throwing an error: "Invalid cross-device link"?

Updated -

Typically, this error results when the scripts in questions are using ln command and have tried to create a hard-link across filesystems.

Since it is not possible to create hard-links for files across filesystems, the ln command errors. Below is an example of this:

[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/V...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.