1,创建共享文件,我把D盘共享
权限设置
linux主机能访问windows 共享文件夹
把整个D盘挂载过来 [email protected]:~# mount -t cifs -o username=chunli,password=‘password‘ //10.11.12.17/D盘 /home/chunli/win10/ [email protected]:~# echo $? 0 只把D盘下面的BaiduYunDownload目录挂载过来 [email protected]:~# mount -t cifs -o username=chunli,password=‘password‘ //10.11.12.17/D盘/BaiduYunDownload /home/chunli/win10/
[email protected]:~# df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/sda1 ext4 196G 1.8G 185G 1% / none tmpfs 4.0K 0 4.0K 0% /sys/fs/cgroup udev devtmpfs 478M 4.0K 478M 1% /dev tmpfs tmpfs 98M 860K 97M 1% /run none tmpfs 5.0M 0 5.0M 0% /run/lock none tmpfs 489M 0 489M 0% /run/shm none tmpfs 100M 0 100M 0% /run/user //10.11.12.17/D盘/BaiduYunDownload cifs 699G 427G 272G 62% /home/chunli/win10
时间: 2024-12-13 16:44:22