linux mount net fs

linux mount net fs


nfs

ubuntu 安装nfs:
sudo apt install nfs-kernel-server

编辑/etc/exports 文件,添加如下内容:
/home/wyk/nfs *(rw,sync,no_root_squash,no_subtree_check)

重启nfs服务
sudo /etc/init.d/rpcbind restart
sudo /etc/init.d/nfs-kernel-server restart

开发板执行挂载文件系统命令:
mount -t nfs 192.168.98.2:/home/minieye/nfs /mnt

mount -o nolock 192.168.0.2:/home/minieye/nfs /mnt
mount -t nfs -o nolock,vers=3 192.168.98.2:/home/minieye/nfs /mnt

umount:
umount /mnt



cifs(samba)

mount -t cifs -o username=user,password="passwd" //192.168.98.7/home/wyk/nfs /mnt



remount

mount -o rw,remount /mnt



posted @   王阳开  阅读(12)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
点击右上角即可分享
微信分享提示