Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Hard linking files across shares on same pool fails, but copying hard link succeeds?

Featured Replies

There must be a functional difference between these two strategies:

I have a cache pool (mircache) that copies to the array. There are two shares on mircache: "downloads" and "sorted".

Attempting the command:

ln /mnt/mircache/downloads/archive.7z /mnt/mircache/sorted/1234.7z

gives the error "Invalid cross-device link".

However linking the file to the same share and then copying the hard link to "sorted" works:

ln /mnt/mircache/downloads/archive.7z /mnt/mircache/downloads/1234.7z
mv /mnt/mircache/downloads/1234.7z /mnt/mircache/sorted/

How do these differ, and why does the first command fail on the same pool?

Edited by XCVB
clarity

  • Community Expert

You can't hardlink across different filsystems/volumes/shares. Downloads and sorted are two different shares. It need to be within the same share.

  • Author
On 12/30/2025 at 6:22 AM, strike said:

You can't hardlink across different filsystems/volumes/shares. Downloads and sorted are two different shares. It need to be within the same share.

Okay, my understanding is shares were fine, filesystems and volumes were not.

So how does moving the hardlink afterwards differ, and why does it work? It links correctly and does not consume more storage space than the hardlink itself.

Edited by XCVB

  • Community Expert
12 minutes ago, XCVB said:

So how does moving the hardlink afterwards differ, and why does it work? It links correctly

Are you sure it's really hardlinked? Can you do this command and post the output

ls -al /mnt/mircache/sorted/

Assuming you have the 1234.7z there still, or any other files you have tried to hardlink

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.