慢慢放弃这个..。
我试图通过NFS导出根文件系统,但是挂载的/usr/portage子目录是空的,或者是挂载而不是/。
详情如下。
主机:
mount | grep portage
/usr/portage.mount/portage.sfs on /usr/portage.mount/readonly type squashfs (ro,noatime)
unionfs on /usr/portage type fuse.unionfs (rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other)主机:
/etc/exports
/ *(sync,rw,no_root_squash,no_subtree_check,crossmnt)嘉宾:
mount -t nfs -o rw,noatime,nocto,actimeo=60,lookupcache=positive,vers=4,fsc 192.168.1.1:/ /mnt/192.168.1.1
ls -l /mnt/192.168.1.1/usr/portage主机:
/etc/exports
/usr/portage *(sync,rw,no_root_squash,subtree_check,nohide,fsid=0)
/ *(sync,rw,no_root_squash,no_subtree_check,crossmnt,nohide)嘉宾:
mount -t nfs -o rw,noatime,nocto,actimeo=60,lookupcache=positive,vers=4,fsc 192.168.1.1:/ /mnt/192.168.1.1
ls -l /mnt/192.168.1.1结果:主机系统/usr/portage的内容(安装usr/portage的预期根文件系统)
主机:
mount -t bind / /media/root
/etc/exports
/media/root *(sync,rw,no_root_squash,no_subtree_check,crossmnt,nohide)嘉宾:
mount -t nfs -o rw,noatime,nocto,actimeo=60,lookupcache=positive,vers=4,fsc 192.168.1.1:/media/root /mnt/192.168.1.1
ls /mnt/192.168.1.1
ls: cannot access 'media': Too many levels of symbolic links我错过了什么?
谢谢你,巴特
发布于 2020-01-11 11:45:35
将fsid添加到这两种出口中都起到了作用。
主机:
cat /etc/exports
/usr/portage *(sync,rw,no_root_squash,subtree_check,nohide,fsid=1)
/ *(sync,rw,no_root_squash,no_subtree_check,crossmnt,nohide,fsid=0)https://unix.stackexchange.com/questions/561274
复制相似问题