使用mount挂载一个windows的共享


1,共享windows的文件夹

143954108.jpg


2,linux挂载windows共享

[root@test2 ~]# mkdir /mnt/cifs
[root@test2 ~]# mount -t cifs  -o username=administrator,password=123  //192.168.137.107/LINUX  /mnt/cifs


3,注意

使用cifs(CommonInternetFileSystemcifs),也就是说在这以后的系统直接使用mount加参数cifs就可直接挂载Windows的共享了

挂在的时候一定要设置windows的用户名和密码

要不然的话就会出现如下错误

mounterror5=Input/outputerror
Refertothemount.cifs(8)manualpage(e.g.manmount.cifs)

当然,我们还可以共享我们的windows的分区,但是一定要是英文

[root@test2~]#umount/mnt/cifs/
[root@test2~]#mount-tcifs-ousername=administrator,password=123//192.168.137.107/e/mnt/cifs
[root@test2~]#cd/mnt/cifs/
360Rec/ORACLE/
LINUX/$RECYCLE.BIN/
MySQL系列培训视频/SystemVolumeInformation/