我已经成功地使用交叉以太网电缆将两台家用计算机联网。我的目的是安排文件从一个到另一个的快速传输。这是我第一次将两台计算机配对在一起。
服务器计算机上的文件夹也已通过 NFS 成功挂载到客户端计算机上。我的问题是,从客户端,我可以浏览服务器上的文件/文件夹,只是其中一些文件/文件夹几年前在服务器上被删除,并且服务器上存在的一些文件/文件夹根本不显示在客户端上。
我不清楚客户端如何设法找到早在 2017 年就在服务器上删除的文件/文件夹,但我现在想要的是客户端上的挂载与服务器上公开的目录相匹配。
我的服务器/etc/exports
:
/home 192.168.1.2(rw,sync,no_root_squash,no_subtree_check,crossmnt)
执行结果lsblk
:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 243M 0 part /boot
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 931.3G 0 part
└─sda5_crypt (dm-0) 252:0 0 931.3G 0 crypt
├─ubuntu--vg-root (dm-1) 252:1 0 923.3G 0 lvm /
└─ubuntu--vg-swap_1 (dm-2) 252:2 0 7.9G 0 lvm
sr0 11:0 1 1024M 0 rom
loop0 7:0 0 24.5M 1 loop /snap/heroku/3766
loop1 7:1 0 25M 1 loop /snap/heroku/3762
loop2 7:2 0 24.5M 1 loop /snap/heroku/3768
loop3 7:3 0 89.4M 1 loop /snap/core/6818
loop4 7:4 0 88.4M 1 loop /snap/core/6964
loop5 7:5 0 89.3M 1 loop /snap/core/6673
并执行mount
返回:
/dev/mapper/ubuntu--vg-root on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,relatime,cpu)
cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,relatime,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,relatime,hugetlb)
/dev/sda1 on /boot type ext2 (rw)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
/var/lib/snapd/snaps/heroku_3766.snap on /snap/heroku/3766 type squashfs (ro,nodev)
/var/lib/snapd/snaps/heroku_3762.snap on /snap/heroku/3762 type squashfs (ro,nodev)
/var/lib/snapd/snaps/heroku_3768.snap on /snap/heroku/3768 type squashfs (ro,nodev)
/var/lib/snapd/snaps/core_6818.snap on /snap/core/6818 type squashfs (ro,nodev)
/var/lib/snapd/snaps/core_6964.snap on /snap/core/6964 type squashfs (ro,nodev)
/var/lib/snapd/snaps/core_6673.snap on /snap/core/6673 type squashfs (ro,nodev)
/home/zeus/.Private on /home/zeus type ecryptfs (ecryptfs_check_dev_ruid,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs,ecryptfs_sig=f51524d82e452e8a,ecryptfs_fnek_sig=0c150644544e4e15)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=zeus)
nfsd on /proc/fs/nfsd type nfsd (rw)