尝试将 Synology NAS 安装到 ubuntu 20.04 时访问被拒绝

尝试将 Synology NAS 安装到 ubuntu 20.04 时访问被拒绝

我尝试遵循本指南

https://kb.synology.com/en-us/DSM/tutorial/如何访问SynologyNAS上的文件#x_anchor_id7

sudo mount -t nfs -vvvv 192.168.1.197:/Volume1/Plex /mnt/synology/

给了我这些结果

sudo mount -t nfs -vvvv 192.168.1.197:/Volume1/Plex /mnt/synology/
mount.nfs: timeout set for Fri Dec 31 11:40:22 2021
mount.nfs: trying text-based options 'vers=4.2,addr=192.168.1.197,clientaddr=192.168.1.124'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4.1,addr=192.168.1.197,clientaddr=192.168.1.124'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4.0,addr=192.168.1.197,clientaddr=192.168.1.124'
mount.nfs: mount(2): No such file or directory
mount.nfs: trying text-based options 'addr=192.168.1.197'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.197 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.197 prog 100005 vers 3 prot UDP port 892
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 192.168.1.197:/Volume1/Plex

显示挂载 -e 192.168.1.197

Export list for 192.168.1.197:
/volume1/Plex   192.168.1.0/24
/volume1/Drive1 192.168.1.0/24

我不太清楚我做错了什么。我已按照指南中的方法在 Synology 上设置了所有权限

答案1

来自评论...

这:

sudo mount -t nfs -vvvv 192.168.1.197:/Volume1/Plex /mnt/synology/

应该是这样的:

sudo mount -t nfs -vvvv 192.168.1.197:/volume1/Plex /mnt/synology/

答案2

我遇到了一些问题,因为我的密码命令中包含特殊字符。

单引号转义 shell 元字符,分号应将域控制器与凭据分开,并且可以使用 %40 来表示密码中的 @(来自这里):

mount -t smbfs '//mydomain;user1:A%b$c%40d!e#[email protected]/myproject' ~/localmap

相关内容