I'm working through setting up a media server running Debian 1.2.0 on a VM with ESXi. I've installed Debian and also installed Plex. The media is on a Netgear ReadyNAS102 and needs to be accessed through the NAS.
My Plex folder is currently located at NetgearNAS>Plex
Name of my NAS is ManiaNAS
NAS is located at 192.168.0.101 (static ip)
cifs-utils is version (2:6.11-3.1) - latest
Now, while I can navigate in Debian to my Plex folder and see its contents, I cannot get Plex to see the same folder. After digging deeper into this, I understood that Plex cannot access network folders and the way around this is to mount the network folder within the local file system. I followed the advice here at the link below to the T but hasn't helped:
https://askubuntu.com/questions/345087/how-do-i-add-a-network-drive-to-plex
I opened up fstab and updated it to include a line as follows:
//ManiaNAS/Plex /media/Plex cifs guest 0 0
Now when I go back to the Terminal and try sudo mount -a, I get this error:
Could not resolve address for [name of NAS]: Unknown error
This is where I am stuck. I thought of trying something else when I noticed the path I got while hovering over my Plex folder in Files. The path was [smb://ManiaNAS.local/plex/]. So I entered this instead into fstab and got this error:
Mounting cifs url not implemented yet. Attempt to mount smb://manianas.local/Plex/
I tried mounting with write permission as well but just got an error that said:
Parse error at line 16 (which is where the fstab entry is).
My issues/questions:
1) Can I use //ManiaNAS/Plex in fstab or should I use //192.168.0.101/Plex? I know I should use //192.168.0.101/Plex
2) I can navigate to a web interface of my Netgear ReadyNas when I go to 192.168.0.101 but I cannot navigate to the Plex folder directly by entering in 192.168.0.101/Plex -- not sure what to do here. Not an issue as I can access the Plex folder by typing in //192.168.0.101/Plex
- What should my fstab entry be?
In Terminal, I tried this:
mount 192.168.0.101/Plex /media/Plex
That gave me this error: mount: /media/Plex: must be superuser to use mount.
Trying with sudo sudo mount -t cifs //192.168.0.101/Plex /media/Plex and I was asked for this: Password for root@//192.168.0.101/Plex: and I entered in the admin password for the NAS.
I then got this error: mount error(13): Permission denied. Refer to the mount.cifs(8) manual page (e.g. man mount .cifs) and kernel log messages (dmesg).
I have ReadyNAS OS 6+ and according to Netgear (https://kb.netgear.com/30068/ReadyNAS-OS-6-SSH-access-support-and-configuration-guides) the root password is the same as the admin password. I also checked the ReadyNAS users page and there is only an admin user.
Netgear suggested trying 'password' as the root password but that returned this message from sudo: Sorry, try again. This led me to believe that I am not entering an incorrect password.
I googled the earlier error that I got mount error(13): Permission denied. Refer to the mount.cifs(8) manual page (e.g. man mount .cifs) and kernel log messages (dmesg) and came across this page link and tried it out. The site said to use this (modified for my use case) but it did not work:
sudo mount -t cifs //192.168.0.101/Plex /mount/Plex/ -o vers=3.0,username=<username>,password=<password>,dir_mode=0777,file_mode=0777,serverino,sec=ntlmssp
I then removed items that I didn't think had anything to do with the mount command and ended up at this which seemed to work!
sudo mount -t cifs //192.168.0.101/Plex /mount/Plex/ -o,username=<admin username>,password=<admin password>,dir_mode=0777,file_mode=0777,sec=ntlmssp
I see the mounted folder!
Wondering 2 things:
what does Understood it just means options.-o mean?
Is there a better way to do this without exposing my admin password? Yes and no from what I can tell. Yes you can have the login credentials be referred to on a different file but no in the sense that the different file is still storing plain text passwords. Granted one would need admin access to view and modify that different file. So there is a level of risk involved. I decided to create a separate user on my NAS. That user will only have access to the Plex folder.
This has all been a huge learning exercise for me and I'm very appreciative of the guidance I've been receiving!
I'm gonna keep this link for reference once I figure out mounting: Debian server, auto-mount Samba share