您的位置:首页 > 运维架构 > Linux

使用mount挂载一个windows的共享

2013-09-07 14:49 519 查看
使用mount挂载一个windows的共享

1,共享windows的文件夹




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/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux windows 文件夹