How to make a good Media share for Emby and PlexMediaServer

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • How to make a good Media share for Emby and PlexMediaServer

      The first thing I am going to show here is something that has caused a lot problems for users. This is not how you want to make a media share. Many users have shared the root of their data drives. This really is stupid. When you create a share at the root of a data drive it will effect all the shares below it and many times will not have the attributes you want in a given share. Many times you need to adjust the permissions (chmod) of a share or ownership (chown). In linux this is often done recursively (means down through all the folders/files in the share) and this is not good at the root of a drive if you have other shares that require varying chmod/chown values.

      **** DO NOT LEAVE JUST A FORWARD SLASH (/) IN THE PATH ****
      ****ALWAYS PRESS TAB AFTER PUTTING IN THE SHARE NAME IN THE NAME FIELD AND IT WILL AUTO FILL PATH****
      Here is an example in shared folder creation of making a share a the root of the drive.... BAD (Pic1)
      If you see any shared folders in the shared folder section with just a forward slash (/) for the path you have to ask yourself if you know what you are doing... BAD (Pic2)

      And yes, this stupid mistake can be done in the SMB/CIFS Shares TAB. Here it is done by clicking on the + sign and then same mistake as in the shared folder section.. BAD (Pic3)
      Files
      • Pic1.jpg

        (58.56 kB, downloaded 614 times, last: )
      • Pic2.jpg

        (35.2 kB, downloaded 579 times, last: )
      • Pic3.jpg

        (91.29 kB, downloaded 594 times, last: )

      The post was edited 7 times, last by tekkb ().

    • OK, now how to do it the right way....

      1) Go to Access Rights Managment then Shared Folders (Pic4)
      2) Click on Add (Pic5)
      3) Put "media" in the Name field and press TAB. This will automatically populate the Path field. Then select the volume (data disk) you want the shared folder on. Leave the default (chmod 2775 and chown root:users) drop down for the Permissions field. Then click save. (Pic6)
      4) Now if you do not have a user you need to create one. Go to Access Rights Management and the User. Click on add and fill in the Name and Password/Confirm Password field. I usually give my user a bin/bash shell too. Then click on save. (Pic7)
      5) Now click on the user you just created to highlight the name and click on privileges. Then you will get a list of your shared folders. Put a checkmark on read/write. Then click on save. (Pic8)
      6) Now go to Services and then SMB/CIFS. Click on enable to turn it green (used to be checkmark). Then click on Save. You should not have to mess with the defaults.
      7) Then click on the Shares TAB above in SMB/CIFS. Then click on add. In the add share pop up select the media share in the Shared folder drop down and click on Save. (Pic9)
      Files
      • Pic4.jpg

        (33.97 kB, downloaded 589 times, last: )
      • Pic5.jpg

        (33.66 kB, downloaded 492 times, last: )
      • Pic6.jpg

        (58.57 kB, downloaded 524 times, last: )
      • Pic7.jpg

        (44.13 kB, downloaded 492 times, last: )
      • Pic8.jpg

        (50.26 kB, downloaded 506 times, last: )
      • Pic9.jpg

        (106.78 kB, downloaded 533 times, last: )

      The post was edited 5 times, last by tekkb ().

    • Now the media share is setup and should be showing on your Windows Network. This last part applies to Windows machines. If someone wants to add information for other operating systems they can do that.

      8 ) Before you get on your Windows machine make sure you have entered a hostname on your OMV. Go to System/Network/General and enter a hostname if it is blank. Click on Save.

      9) Now go to your Windows machine and click on Network. You should see your hostname of your OMV listed. If not you might have to reboot your OMV and then check again. Click on the icon that has the hostname of your OMV. (Pic10)

      10) You will get a pop up to enter the credentials of your OMV user you created. Enter your username and passed. Click on OK to sign in. (Pic11)

      11) Then you should see your media share. Click on it to enter it. (Pic12)

      12) Now in the media share folder you are going to right click on blank space and then left click on folder. You are creating subfolders in the media share. You use name likes movies, tv, photos, music, etc.. Create as many media related sub folders as you need. Then you can enter a given sub folder and simply copy/paste from your Windows machine. (Pic13)


      For Emby and PlexMediaServer you just need to select the path for a given media type in the UI of those media servers. For music your path would be /media/uuid/media/music as an example..

      Good Luck...............

      PS- You should be consistent with the user that you use to upload media to your OMV. I would only write with one user if possible. The chown of files uploaded will be the username that uploaded it and users as the group (jack:users in my example here). People have had problems deleting files and wondered why. Well another user in the group cannot delete a file they are not the owner of so if you always use the same user you will not have this problem when you want to delete something. You can always delete with the root user though, say via putty in ssh session.
      Files
      • Pic10.jpg

        (65.35 kB, downloaded 415 times, last: )
      • Pic11.jpg

        (39.24 kB, downloaded 292 times, last: )
      • Pic12.jpg

        (45.56 kB, downloaded 285 times, last: )
      • Pic13.jpg

        (81.54 kB, downloaded 431 times, last: )

      The post was edited 9 times, last by tekkb ().