在Linux下掛載Windows系統共用目錄

來源:互聯網
上載者:User

標籤:samba-client   samba   cifs   mount   

在Linux下掛載Windows系統共用目錄


預設情況下,Linux伺服器會裝有samba-client,但是沒有裝samba-server。但是訪問Windows系統共用,安裝有samba-client就可以了。

[[email protected] ~]# rpm -qa | grep sambasamba-3.6.23-14.el6_6.x86_64samba-client-3.6.23-14.el6_6.x86_64samba-common-3.6.23-14.el6_6.x86_64samba-winbind-clients-3.6.23-14.el6_6.x86_64samba-swat-3.6.23-14.el6_6.x86_64samba-winbind-devel-3.6.23-14.el6_6.x86_64samba-winbind-3.6.23-14.el6_6.x86_64samba-winbind-krb5-locator-3.6.23-14.el6_6.x86_64


嘗試掛載

[[email protected] ~]# mount -t cifs -o "username=domain\user" //192.168.1.101/share /mnt/share


常見錯誤:

mount: wrong fs type, bad option, bad superblock on //dbxi2.sl.dxdbbackup/Backup_Mgo13,missing codepage or helper program, or other error(for several filesystems (e.g. nfs, cifs) you mightneed a /sbin/mount.<type> helper program)In some cases useful info is found in syslog - trydmesg | tail or so


需要安裝cifs-utils

[[email protected] ~]# yum install cifs-utils


重新掛載

[[email protected] ~]# mount -t cifs -o "username=domain\user" //192.168.1.101/share /mnt/share


查看掛載的指定主機的Windows系統共用

[[email protected] ~]# smbclient -L 192.168.1.101 -U domain\\user
Enter domain\user‘s password:Domain=[domain] OS=[Windows Server 2008 R2 Standard 7601 Service Pack 1] Server=[Windows Server 2008 R2 Standard 6.1]Sharename Type Comment--------- ---- -------ADMIN$ Disk Remote AdminC$ Disk Default sharecdn DiskD$ Disk Default sharedbbackup DiskE$ Disk Default shareFTP Diskiisbackup DiskIPC$ IPC Remote IPCMSSQL_REPL Diskshare Disktmp Disksession request to 192.168.1.101 failed (Called name not present)Domain=[domain] OS=[Windows Server 2008 R2 Standard 7601 Service Pack 1] Server=[Windows Server 2008 R2 Standard 6.1]Server Comment--------- -------Workgroup Master--------- -------


本文出自 “SQL Server Deep Dives” 部落格,請務必保留此出處http://ultrasql.blog.51cto.com/9591438/1680237

在Linux下掛載Windows系統共用目錄

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.