先在 Windows 下面共享需要挂载的目录

1
2
3
4
5
6
7
8
sudo mount -t cifs -o username=<username>,password=<password> //192.168.50.104/path/to/win/share /mnt/path/to/linux/mnt/dir
# windows域控账户不需要加前缀,直接写用户名

# 查看挂载状态
df -h

# 卸载
umount /mnt/path/to/linux/mnt/dir

https://blog.csdn.net/tojohnonly/article/details/71374984