That way, you could omit the password altogether. If you want to go down that route, here's an example of one of my NFS lines in my fstab in case it helps:ġ92.168.43.15:Video /mnt/Video nfs rw,hard,intr 0 0Īnother option for you is to use the chmod command and make sure that read only is set to everyone. Basically NFS is less CPU intensive and works better between *NIX systems anyway. Given you are being prompted for a password, this is likely the sticking point, or at least the first sticking point to begin addressing fault finding - (the second one will be just making sure that the files and directories have appropriate access).īefore I say anything further though, I've personally found NFS to be much more reliable and simpler to set up. All Plex does is look at the folders presented to the local linux machine as the active Plex user, which by default is the user 'plex'. Paths are case sensitive.As you have probably figured out, this has very little to do with Plex. In this example I will be mounting the /volume1/Temp share hosted by the Synology NAS (IP:10.0.0.10) to /nfs/temp-share. Verify the NFS mount details on the next screen and click Finish. Select Mount NFS datastore and click Next.Įnter the NFS mount details (see below) and click OK. Go to Storage and select the Datastores tab. You can test write permissions by touching a new file touch /nfs/temp-share/test You can check permissions with stat stat /nfs/temp-share Here’s a link to another website with a simple comparison of 700 vs 755 and another link to the Ubuntu wiki article on file permissions if you want more information. You may want to use a different value depending on what you’re doing with your share and server. I used chmod 755 for file permissions in this example. If this is an empty share you probably won’t need it. The -R on the chown command is recursive. You can use user:group or user:user if you do not need to give a group access. You’ll probably need to give yourself and/or a group ownership and write access on the mount directory. 10.0.0.10:/volume1/Temp /nfs/temp-share nfs defaults 0 0Ĭlose the text editor ( ctrl+x in nano) and save changes if prompted. Here’s a link to the Ubuntu wiki article on fstab mounting options if you need to use different settings. This is a network share so I’m using 0 for dump which will tell the dump backup utility to ignore this filesystem and 0 for pass which will tell fsck to ignore checking this filesystem. The line below will use nfs for the filesystem with default (rw, suid, dev, exec, auto, nouser, async) mounting options. The next two values set the filesystem and mounting options. You can skip to the code block if you don’t care how it works. sudo nano /etc/fstabĪdd the share’s mount path from the Synology share setup step to the bottom of the file using the line below. Open /etc/fstab with nano or your preferred text editor. Optional: If you already mounted the share using the command above you can unmount it with umount. If you need the mount to stay after a reboot you’ll need to add it to /etc/fstab. Mounting with the command above will not stay after a reboot. sudo mount 10.0.0.10:/volume1/Temp /nfs/temp-share Persistent mount Mount the share’s mount path from the Synology share setup step with sudo mount :/. The -p in the mkdir command below will create intermediate directories. I’m using /nfs/temp-share for this share. Here’s a good video by DorianDotSlash on linux file system/structure while we’re on the topic. sudo apt-get update sudo apt-get install nfs-common -yĬreate the directory where the share will be mounted. Note: Your interface names might be different. Verify that the system’s IP is the same IP used in the NFS rule settings above. Open a terminal window or SSH to the system. You will need this path when mounting the share later. Take a note of the mount path at the bottom of the Edit Shared Folder window. Enter the IP of the system that needs access to the NFS share. Switch to the NFS Permissions tab and click Create. Select Shared Folder and Create or Edit a share. Log into the Synology DSM page ( and open Control Panel. Leave a comment below if you notice any changes or issues. Parts of the UI and commands may have changed. This will also work for ESXi and vcenter NAS datastores. This post was made on with Synology DSM version 6.2.2-24922 Update 4 and Ubuntu 18.04.4 LTS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |