V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
station
V2EX  ›  Linux

nfs 共享有些疑问请教下 ~

  •  
  •   station · Jul 14, 2020 · 2376 views
    This topic created in 2121 days ago, the information mentioned may be changed or developed.

    上个主题,测试不完整

    本人前段时间攒了台 NAS,现将几块硬盘挂载在 /mnt 下 sda,sdb,sdc 如此排序的子目录

    exports: /mnt 192.168.1.0/24(rw,sync,insecure,no_root_squash,no_subtree_check,fsid=0,nohide)

    现已测试,如上写法只能读取到 /mnt 中的文件,而 sdb,sdb 等中的文件则无法显示

    UUqBNj.png

    多次搜索无果,请问是否一招通吃的方法 ? selinux 已关闭

    6 replies    2020-07-15 05:46:14 +08:00
    xyjincan
        1
    xyjincan  
       Jul 14, 2020
    分别挂载?

    exports: /mnt/sda 192.168.1.0/24(rw,sync,insecure,no_root_squash,no_subtree_check,fsid=0,nohide)
    exports: /mnt/sdb 192.168.1.0/24(rw,sync,insecure,no_root_squash,no_subtree_check,fsid=0,nohide)
    station
        2
    station  
    OP
       Jul 14, 2020
    @xyjincan 嗯,拿到就没有一招鲜的方法 ?
    Jirajine
        3
    Jirajine  
       Jul 14, 2020 via Android
    换 samba,nfs 不能认证而且有编码问题。
    xyjincan
        4
    xyjincan  
       Jul 14, 2020
    @station NFS 下面放几个 windows 建立的快捷链接也差不多能跳
    vk42
        5
    vk42  
       Jul 14, 2020
    加 crossmnt 参数试试?
    station
        6
    station  
    OP
       Jul 15, 2020
    @vk42 完美~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5291 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 70ms · UTC 05:45 · PVG 13:45 · LAX 22:45 · JFK 01:45
    ♥ Do have faith in what you're doing.