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
산:[이메일 보호됨]: 알 수없는 호스트
설치: 설치[이메일 보호됨]:/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