从本地 NAS 设备挂载共享文件夹

从本地 NAS 设备挂载共享文件夹

我正在尝试从本地 NAS 设备挂载文件夹。型号为 Zyxel NAS 326。

网络存储 NFS 屏幕

在 Ubuntu 18.04 客户端上,我尝试运行以下命令:

# does nothing
sudo mount -v -o vers=3.0 -t nfs 192.168.1.33:/i-data/5519db32/nfs/Hiddenslate1 /media/NAS/volume1/
### outputs
mount.nfs: timeout set for Fri Sep  3 16:31:59 2021
mount.nfs: trying text-based options 'vers=3.0,addr=192.168.1.33'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.33 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.33 prog 100005 vers 3 prot UDP port 38280

# gives permission denied error
sudo mount -v -o vers=3.0 -t nfs 192.168.1.33:/Volume1/i-data/5519db32/nfs/Hiddenslate1 /media/NAS/volume1/

# does nothing
sudo mount -v -o vers=4.0 -t nfs 192.168.1.33:/Hiddenslate1 /media/NAS/volume1/
### outputs
mount.nfs: timeout set for Fri Sep  3 16:32:31 2021
mount.nfs: trying text-based options 'vers=4.0,addr=192.168.1.33,clientaddr=192.168.1.66'

# gives no such file or dir error
sudo mount -v -o vers=4.0 -t nfs 192.168.1.33:/Volume1/Hiddenslate1 /media/NAS/volume1/

我理解第二个和第四个错误,但第一个或第三个错误应该有效。我在 中看不到任何东西/media/NAS/volume1。我该检查什么?

输出rpcinfo 192.168.1.33 | egrep "service|nfs"

   program version netid     address                service    owner
    100003    3    tcp       0.0.0.0.8.1            nfs        superuser
    100003    4    tcp       0.0.0.0.8.1            nfs        superuser
    100003    3    udp       0.0.0.0.8.1            nfs        superuser
    100003    4    udp       0.0.0.0.8.1            nfs        superuser

showmount -e 192.168.1.33:

Export list for 192.168.1.33:
/i-data/5519db32/nfs              *
/i-data/5519db32/nfs/Hiddenslate1 (everyone)
/i-data/76a39839/nfs/Hiddenslate2 (everyone)

答案1

检查纳斯第一的。尤其是这个:

DN/IP   Enter the domain name(s) or IP address(es) that can have access to the NFS share.
Enter "*" to make the share available to all users in the network. You can also enter a wildcard, such as "*.domain.com" to indicate that all users within that network have access to the share.

相关内容