linux 挂载windows共享目录

本文发布时间: 2019-Mar-22
在实际工作中,我们可能可能需要吧linux下生成文件放到window目录下面去,可能使用多种方法来实现,今天我介绍用mount 去挂载windows的共享目录: 第一步:先在windos 下面把需要共享的目录设置共享属性第二步:在linux 下创建挂载目录,然后就可以直接挂载了[root@ALL /]# mkdir /windows[root@ALL /]# ll / | grep windowsdrwxrwxrwx 1 root root 8192 05-14 08:57 windows[root@ALL /]# mount -t cifs -o username=administrator,password=admin //200.120.75.24/share/ /windows/[root@ALL /]# cd /windows/[root@ALL windows]# ll总计 3310028-rwxrwSrwx 1 root root 75838 01-19 16:02 1002_XuanYuan_Sword_Han_Cloud.TORRENT-rwxrwSrwx 1 root root 890953 2011-07-08 1156-anqn.rar-rwxrwSrwx 1 root root 3570798 2011-07-08 3739-anqn.rar-rwxrwSrwx 1 root root 58975174 2011-11-29 AdbeRdr1010_zh_CN.zip-rwxrwSrwx 1 root root 2615951 2011-07-18 BookShopOnline11.rar-rwxrwSrwx 1 root root 17477246 2008-03-13 EasyRecoveryPro6.10.07_HA_Setup.exe-rwxrwSrwx 1 root root 28595201 2011-11-23 filerecover.zip-rwxrwSrwx 1 root root 134173 2011-06-09 kd drivers.zip-rwxrwSrwx 1 root root 1212061912 01-31 13:20 mir2_Setup20110928.exe-rwxrwSrwx 1 root root 161203141 2005-07-12 office2003.exe-rwxrwSrwx 1 root root 38766042 2011-06-29 QQ2011Beta1.exe-rwxrwSrwx 1 root root 1161612562 01-17 09:57 Swd5.exe-rwxrwSrwx 1 root root 351354408 03-09 14:22 WindowsXP-KB936929-SP3-x86-CHS.exe-rwxrwSrwx 1 root root 350876489 03-09 15:53 WINDOWSXP-KB936929-SP3-X86-CHS.zi 如果你需要每次系统启动都挂载这个目录,那就需要在fstab 文件里把需要挂载项添加进去 添加行://200.120.75.24/share /windows cifs default,username=administrator,password=admin 0 2


(以上内容不代表本站观点。)
---------------------------------
本网站以及域名有仲裁协议。
本網站以及域名有仲裁協議。

2024-Mar-04 02:11pm
栏目列表