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