[Z] 将samba共享文件夹映射到linux的目录下

Linux系统下访问远程共享资源

使用mount加载共享目录:

-把WinXP机器192.168.16.249上的共享目录test001映射到本地目录/wdl/下。

-把Linux机器192.168.16.248上的共享目录inPath映射到本地目录/opt/。

在终端命令行下输入如下命令:

-#mount -o username="user001",password="antiy?100" //192.168.16.249/test001/ /wdl/

-#mount -o username="user002",password="antiy?200" //192.168.16.248/inPath/ /opt/

其中,username为共享账号,password为账号密码。

使用mount查看挂载信息。

[root@bogon /]# mount

/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)

/dev/hda1 on /boot type ext3 (rw)

//192.168.16.249/test001/ on /wdl type cifs (rw,mand)

//192.168.16.248/inPath/ on /opt type cifs (rw,mand)

使用umount /wdl/,可以取消挂载/wdl。 

原文地址:https://www.cnblogs.com/waytofall/p/3893922.html