I'm fairly new to Ubuntu and I'm attempting to create a Plex Server, I've done the install but I cannot mount my NAS?!?!.. I've decided to log into a Mint VM and to use the command line to try to identify the problem. Subsequently I was unsucessful and I'm now attempting it on my actual text based installation of Ubuntu Server VM.
Looks like a simple directory/file syntax error as it's saying the directory doesn't exist.
Admittedly I may have done something wrong so I took a screenshot with everything applicable on screen. Hopefully, this will tell you what you need to know? If not I'll be fairly quick at replying as I'm hoping to get this sorted today. (That was yesterday.)
My thanks in advance for your help/replies!
Unable to post images (less than 10 Rep points) therefore here's a Postimg link instead.
08/02/22 EDIT : Here are a number of other 'resources' which may help you understand my problem?
- Similar post on here (ix4-200d - explaining/confusing me)
- My fstab file - See more examples of that below..
- Command line examples
- Connection Timed Out
- NAS Settings
08/02/22 EDIT, EDIT :
You will notice there when attempting a CIFs share the source (NAS) is listed as //192.168.0.46/directory
You will see that when attempting an NFS share the source (NAS) is listed as //192.168.0.46:/directory
- (Colon B4 directory) Seemingly this is normal for NFS shares...
My colon image attached - (Not literally PMSL)
FSTAB examples:
#CIF Shares - NOT WORKING / TRIED TESTED:
//192.168.0.46/nfs/Music /mnt/nas/Music cifs credentials=/home/plex/smbpassword,vers=1.0,iocharset=utf8,_netdev 0 0
ERRORs with 'CIFS VFS: cifs_mount failed w/return code = -2
mount error(2): No such file or directory'
192.168.0.46/nfs/Music /mnt/nas/Music cifs credentials=/home/plex/smbpassword,vers=1.0,iocharset=utf8,_netdev 0 0
ERRORs with 'mount.cifs: bad UNC (192.168.0.46/nfs/Music)'
//192.168.0.46/public/Music /mnt/nas/Music cifs credentials=/home/plex/smbpassword,vers=1.0,iocharset=utf8,_netdev 0 0
ERRORs with 'CIFS VFS: cifs_mount failed w/return code = -2
mount error(2): No such file or directory'
//192.168.0.46/public/Music /mnt/nas/Music cifs credentials=/home/plex/smbpassword,vers=1.0,iocharset=utf8,_netdev 0 0
ERRORs with 'mount.cifs: bad UNC (192.168.0.46/nfs/Music)'
#NFS Shares - NOT WORKING / TRIED TESTED:
//192.168.0.46:/nfs/Movies /mnt/nas/Movies nfs credentials=/home/plex/smbpassword,vers=1.0
ERRORs with 'mount.nfs: Failed to resolve server //192.168.0.46: Name or Service not known'
//192.168.0.46/nfs/Movies /mnt/nas/Movies nfs credentials=/home/plex/smbpassword,vers=1.0
ERRORs with 'mount.nfs: remote share not in 'host:dir' format'
192.168.0.46:/nfs/Movies /mnt/nas/Movies nfs credentials=/home/plex/smbpassword,vers=1.0
ERRORs with 'mount.nfs: mount system call failed'
My apologies, I'm struggling to get to grips with these methods of formatting,
09/02/22 EDIT - Just addressing that now!
What doesn't help is yes I can ping the NAS perfectly fine, however, I don't know the correct directory structure to assign it to..
Using FTP the directory is (as you've seen from my first picture) /pools/A/A0/xxx
Using NFS the directory is /nfs/xxx
Using CIFS there is an unconfirmed possibility the directory is /public/xxx according to that similar question I linked earlier.
It's as simple as for me to be able to mount the NAS then Plex itself will see/read and that will be my problem dealt with.. just a simple thing (LMAO)
09/02/22 EDIT :
Replying to @Muru - https://i.postimg.cc/vH8vxZLP/1050-AM-Help.jpg - Is there any way to extend the TTL of this? I will go an try it using a smaller directory in the mean time.
EDIT :
I've just tried it with the Music directory (literally that only has 2 x Music videos (MPG files, 300MB each) and that times out as well).
EDIT :
I've just ran smbclient -L //192.168.0.80
on myself. It came back with smbclient SMB1 disabled -- no workgroup available
. I've just edited /etc/samba/smb.conf and added the line client min protocol = NT1
below the workgroup name. After restarting the smbd & nmbd services I now get the following..
https://i.postimg.cc/1tQFhymh/samba.jpg
Basically, smbXcli_negprot_smb1_done: No compatible protocol selected by server
protocol negotiation failed: NT-STATUS_INVALID_NETWORK_RESPONSE
Unable to connect with SMB1 -- no work group available.
My question is now, would that explain the network mount timeouts? or am I just going off down another rabbit hole?
EDIT :
Interestingly enough, I just tried the following command:
sudo mount 192.168.0.46:/Music /mnt/nas/Music -t nfs
(Knowingly that the path was wrong as it should be 192.168.0.46:/nfs/Music) and it still timed out.. doesn't even seem to be communicating with the NAS, yet it'll ping the NAS fine..
I've just gained access to my NAS through a secret menu and enabled SSH. Maybe if I knew what I was doing this could help? Screenshot link attached.. well it would of been but apparently You need at least 10 reputation to post more than 8 links so Please see comments for screenshot. Thanks
Guys.. I give you all this wealth of information.. yet you cannot help me.. I'm amazed.. ;-x