Jump to content

[SOLVED] Windows: correctly moving files between shares on same disks


Recommended Posts

Hi,

 

I got two shares on an Unraid server:

- "download": included all disks

- "media": included all disks

 

So, I assumed that if I move files between them it would be instantly as both shares are on the exactly same drives nothing physically has to be moved - only the pointer.

 

This works as expected if I move the files within the Unraid terminal in Midnight Commander.

But this does not work as expected if I move the files within Windows in Total Commander. Here, it really copies the files to the new location and removes the old ones.

 

Is this behaviour normal or can I somehow fix this?

Edited by tardezyx
issue solved: add SMB rootshare
Link to comment

It's normal, and can be replicated on every OS out there.

 

Here's how this works.  The OS (in this case Windows) attempts to do a rename.  This fails (because your cannot rename from \\media\,,, to \\downloads\... the same way that you cannot rename from C:\... to D:\...), so it has to do a copy / delete operation.

 

MC operates below the system, and because of that it does succeed in the renaming, so it's instantaneous.

 

To work around this what you need to do is set up a "root share" (space invader one has a video about that).  Then the mount points are the same and you're renaming instead of copying / deleting, because you're going from \\rootshare\media to \\rootshare\downloads)  There are some caveats with that however.  If you did have include / exclude disks or use cache settings different between the two shares, then the renamed file may wind up on the wrong disk (it'll actually stay on the source disk) in apparent violation of the rules, but it's actually not a violation because you're bypassing the system

 

  • Thanks 1
Link to comment
  • tardezyx changed the title to [SOLVED] Windows: correctly moving files between shares on same disks

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...