1、ubuntu挂载ubuntu网络共享文件夹
假设ubuntu机器A访问ubuntu机器B(192.168.1.1)
1)机器A安装
安装共享服务器
sudo apt-get install nfs-kernel-server;
配置
sudo gedit /etc/exports
增加一行记录
/home/share *(rw,sync,no_subtree_check)
重启服务
sudo /etc/init.d/nfs-kernel-server restart
2)机器B安装
安装共享客户端
sudo apt-get install nfs-common;
挂载机器A目录/home/share 到机器B/mnt
sudo mount -t nfs 192.168.1.1:/home/share /mnt
2、ubuntu挂载windows网络共享文件夹
假设ubuntu机器A访问windows机器B(192.168.1.1)
1)机器A安装
sudo apt-get install smbfs;
使用smbmount挂载
sudo smbmount //192.168.1.1/d$/ /mnt -o iocharset=utf8,uid=root,gid=root,username=pcbusername;
卸载命令
sudo umount /mnt/;
原创文章,转载请注明: 转载自海波无痕
本文链接地址: ubuntu挂载网络共享文件夹
文章的脚注信息由WordPress的wp-posturl插件自动生成
Related posts: