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)

  • 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)

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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!