ubuntu挂载windows共享文件夹
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
软硬件环境
windows 10 64bit
ubuntu 18.04
前言
在某些情况下,我们需要将windows
的某个文件夹共享出去,这样,在同一个网络中,linux
系统就可以通过挂载来访问这个文件夹中的内容。
windows端的操作
选择需要共享出去的文件夹,点击鼠标右键,选择属性,来到共享选项卡,选择共享
选择能够访问共享目录的用户,或者新建新用户
开始创建共享
操作完成,记录下访问地址
在ubuntu中挂载
默认系统中并没有支持cifs
的工具,通过apt
安装
sudo apt install cifs-utils
接下来就可以通过mount
命令来挂载了
sudo mount -t cifs //192.168.0.100/share /mnt -o username=username, password=password
上述命令中,共享的目录需要使用/
,而不是windows
中的\
如果想开机自动挂载的话,就需要编辑/etc/fstab
,内容如下
//192.168.0.100/share /mnt cifs auto,username=username,password=password 0 0
挂载成功后,可以通过df
命令查看是否成功




A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)