Another Help with Shares question....


Go to solution Solved by itimpi,

Recommended Posts

Details of system:

Unraid 6.9.2

4 discs in array (+ parity)

Set up in disc share mode with multiple folders in almost every drive that are easily accessible by my desktop computer.

 

The problem:

I have a movie folder on 2 drives and I want this to be accessible from my media management software as a single folder (currently Plex).  What I see in the client is two titles for Movies.  I would like them to be all in one section.

 

I thought I could just add a media location in the setup template where the two drives would have the same name and then they would be combined, but this doesn't work (or I am doing it wrong).

 

What is the simplest way to make this possible?  (Currently, they are named Movies and Movies2, but I could change them both to be the same name if needed.)

 

I thought about turning on user shares, but since I copy directly to folders (normally) when I add data I didn't want everything to get messed up.

 

Thanks,

Brian

Link to comment
  • Solution
11 minutes ago, BrianB said:

Then just turn on user share for Movies and link those two folders, so it shows up as one?  Or am I misunderstanding

If you turn on User Shares then all top level folders of the same name on any array or pool drive are automatically treated as a User Share with the name of the folder and the share covers all drives containing that folder.   Note that this is just another view of your files - nothing is actually changed under the covers.

Link to comment
11 hours ago, BrianB said:

Is it okay to use both, then?

Do not attempt to work with user shares and disks together when moving or copying files.

  

On 2/20/2019 at 10:06 AM, trurl said:
  • If you mix user shares and disks when moving/copying files, you can actually lose data, because Linux doesn't realize that the source path and the destination path might actually be the same file, and so tries to overwrite what it is trying to read. This is often referred to as the User Share Copy Bug.
  • The Linux command for Move and Rename are the same, mv. So when you try to move files from one user share to another, Linux will often simply rename the files so they have a different path on the same disk, in violation of any user share settings such as included disks. The workaround for this is to copy from source to destination, so that new files get created following the user share settings, then deleting from the source.

 

 

Link to comment

Right.  So, first change the name of the two folders to "Movies," and then turn on user shares.  Since I'm only using them for playback through Plex I can continue to use disk shares for copying, moving, deleting, etc. without any issues, correct?

 

Also, do I need to change any settings in user shares since I won't be writing to them?

 

B.

Link to comment

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.