要将Linux挂载到Windows共享盘,需要使用CIFS(Common Internet File System)协议。以下是步骤:

  1. 安装CIFS工具:

在Linux终端中运行以下命令:

sudo apt-get install cifs-utils
  1. 创建一个目录作为挂载点:

在Linux终端中运行以下命令:

sudo mkdir /mnt/share
  1. 使用mount命令将Windows共享盘挂载到Linux系统:

在Linux终端中运行以下命令:

sudo mount -t cifs //windows-pc/share /mnt/share -o username=windows-username,password=windows-password

其中,“//windows-pc/share”是Windows共享盘的网络路径,“/mnt/share”是Linux系统中的挂载点,“windows-username”和“windows-password”是Windows共享盘的用户名和密码。

  1. 确认挂载:

在Linux终端中运行以下命令:

df -h

可以看到已经挂载的共享盘。

  1. 卸载挂载的共享盘:

在Linux终端中运行以下命令:

sudo umount /mnt/share

这样就可以将Windows共享盘挂载到Linux系统了

linux怎么mount到Windows共享盘

原文地址: https://www.cveoy.top/t/topic/gHbF 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录