1

我希望能够将基于本地网络 (Synology) 的磁盘挂载到我的 Raspberry Pi,但出现以下错误:

pi@raspberrypi /home $ sudo mount -vvv -t nfs -o username=user,password=pwd 192.168.1.99:/volumes1/Machines_backup ~/backup
mount.nfs: timeout set for Fri Nov 27 09:01:46 2015
mount.nfs: trying text-based options 'username=user,password=pwd,vers=4,addr=192.168.1.99,clientaddr=192.168.1.48'
mount.nfs: mount(2): Invalid argument
mount.nfs: an incorrect mount option was specified

可能是因为未安装“nfs-server”:

pi@raspberrypi /home $ systemctl status nfs-server.service
● nfs-server.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

所以尝试安装但我遇到了以下问题,可能是因为 KURA 和防火墙之间存在一些依赖关系,我停止了 KURA 服务但仍然存在同样的问题:

pi@raspberrypi /home $ sudo apt-get install  nfs-server -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'nfs-kernel-server' instead of 'nfs-server'
nfs-kernel-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nfs-kernel-server (1:1.2.8-9) ...
insserv: warning: script 'K02firewall' missing LSB tags and overrides
insserv: warning: script 'firewall' missing LSB tags and overrides
insserv: warning: script 'firewall.tmp' missing LSB tags and overrides
insserv: There is a loop between service kura and firewall.tmp if stopped
insserv:  loop involving service firewall.tmp at depth 2
insserv:  loop involving service kura at depth 1
insserv: Stopping firewall.tmp depends on kura and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package nfs-kernel-server (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 nfs-kernel-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

怎么做才能挂载我的磁盘?在此先感谢您的帮助!

4

0 回答 0