
ASUS RT68Uには、MerlinファームウェアとUSBフラッシュドライブが付属しています。 Raspberry Piは固定LAN IPアドレスで固定されています192.168.1.115
。目的は、Raspberry PiディレクトリをRT68Uにマウントすることです。
rPi NFSステータスクエリ:
[email protected]:~$ service nfs-kernel-server status
* nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor prese
Active: active (exited) since Sat 2019-10-05 21:25:03 EDT; 19h ago
Main PID: 1750 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/nfs-server.service
Oct 05 21:25:02 hostname systemd[1]: Starting NFS server and services...
Oct 05 21:25:03 hostname systemd[1]: Started NFS server and services.
エラーメッセージ
myname@RT-AC68U-3D90:/tmp/home/root# mount [email protected]:/home/user/data/ /tmp/mnt/rpi
山:[Eメール保護]: 不明なホスト
インストール:インストール[Eメール保護]:/tmp/mnt/rpiの/home/user/data/が失敗しました。
ls -l /tmp/mnt/ | grep rpi
drwxrwxrwx 2 user root 40 Oct 6 17:03 rpi
エラーが返されるのはなぜですか?救済策は何ですか?
ルーターから: mount -h
BusyBox v1.25.1 (2018-10-21 13:18:02 EDT) multi-call binary.
Usage: mount [OPTIONS] [-o OPT] DEVICE NODE
Mount a filesystem. Filesystem autodetection requires /proc.
-a Mount all filesystems in fstab
-i Don't run mount helper
-r Read-only mount
-t FSTYPE[,...] Filesystem type(s)
-O OPT Mount only filesystems with option OPT (-a only)
-o OPT:
loop Ignored (loop devices are autodetected)
[a]sync Writes are [a]synchronous
[no]atime Disable/enable updates to inode access times
[no]diratime Disable/enable atime updates to directories
[no]relatime Disable/enable atime updates relative to modification time
[no]dev (Dis)allow use of special device files
[no]exec (Dis)allow use of executable files
[no]suid (Dis)allow set-user-id-root programs
[r]shared Convert [recursively] to a shared subtree
[r]slave Convert [recursively] to a slave subtree
[r]private Convert [recursively] to a private subtree
[un]bindable Make mount point [un]able to be bind mounted
[r]bind Bind a file or directory [recursively] to another location
move Relocate an existing mount point
remount Remount a mounted filesystem, changing flags
ro Same as -r
アップデート1
mount 192.168.1.115:/home/osmc/data/ /tmp/mnt/rpi
戻りエラー:
インストール: 192.168.1.115:/home/osmc/data/ 失敗、サーバーによって提供された理由: 権限が拒否されました。
インストール: /tmp/mnt/rpi に 192.168.1.115:/home/osmc/data/ インストール失敗: 無効なファイル記述子
アップデート2(フレディ)
mount -t nfs -o nolock 192.168.1.115:/home/osmc/data/ /tmp/mnt/rpi
マウント:192.168.1.115:/home/osmc/data/がサーバーから提供された理由で失敗しました:権限が拒否されました。マウント: マウント 192.168.1.115: /home/osmc/data/ が失敗しました: 無効なファイル記述子
アップデート3
showmount -e 192.168.1.115
Export list for 192.168.1.115:
rPi に追加: NFS エクスポート: #rpi:sudo vi /etc/exports
showmount -e 192.168.1.115
Export list for 192.168.1.115:
/home/osmc/data 192.168.1.115
インストールエラーを返します。
mount -t nfs -o nolock [email protected]:/home/osmc/data/ /tmp/mnt/osmc
mount: [email protected]: Unknown host
mount: mounting [email protected]:/home/osmc/data/ on /tmp/mnt/osmc failed
インストールエラーを返します。
mount -t nfs 192.168.1.115:/home/osmc/data/ /tmp/mnt/osmc
mount: 192.168.1.115:/home/osmc/data/ failed, reason given by server: Permission denied
mount: mounting 192.168.1.115:/home/osmc/data/ on /tmp/mnt/osmc failed: Bad file descriptor
変更されたエクスポートのリスト
Export list for 192.168.1.115:
/home/osmc/Movies 192.168.1.1
接続が拒否されました:
mount -t nfs 192.168.1.115:/home/osmc/data/ /tmp/mnt/osmc
mount: mounting 192.168.1.115:/home/osmc/data/ on /tmp/mnt/osmc failed: Connection refused