導航:首頁 > 操作系統 > linux掛載cifs

linux掛載cifs

發布時間:2022-12-10 14:35:36

linux如何掛載samba目錄

1、utf-8替換成utf8試試
2、其他方法
i)如果已經安裝samba,可用smbmount
例:smbmount //192.168.1.1/share /mnt
-o username=user,password=pw,iocharset=utf8,codepage=cp936
ii)mount.cifs等效於mount -t cifs,mount.cifs需要內核支持,使用時比較方便。
例:mount.cifs //192.168.1.1/somedir dir -o username=xx,password=xxxx
iii)mount.smbfs需要注意中文目錄,需要加上 參數 codepage=cp936,iocharset=utf8,而且有的系統下掛載速度遲鈍。等效於smbmount或 mount -t smbfs
例:mount.smbfs //192.168.1.1/somedir dir -o username=xx,password=xxxx
iv)smbclient登錄後操作類似於ftp登錄
例:smbclient //192.168.1.1/d -U username%password

㈡ 如何解決linux mount cifs 掛window 網盤問題

在centos mount cifs 掛window 網盤容易出現問題如下:

一、掛載時,用戶/密碼錯誤

mounterror(13):Permissiondenied
Refertothemount.cifs(8)manualpage(e.g.manmount.cifs)

對應/var/log/message記錄

Oct1216:20:01localhostkernel:_STATUS_LOGON_FAILURE
Oct1216:20:01localhostkernel:CIFSVFS:SenderrorinSessSetup=-13
Oct1216:20:01localhostkernel:CIFSVFS:cifs_mountfailedw/returncode=-13

二、沒有分享目錄


mounterror(6):Nosuchdeviceoraddress
Refertothemount.cifs(8)manualpage(e.g.manmount.cifs)

對應/var/log/message記錄

Oct1216:20:06localhostkernel:CIFSVFS:cifs_mountfailedw/returncode=-6
Oct1216:20:17localhostkernel:CIFSVFS:cifs_mountfailedw/returncode=-6
Oct1216:20:17localhostkernel:CIFSVFS:cifs_mountfailedw/returncode=-6

目前遇到的問題就是這些

補充一句,格式一定要寫正確:

mount-tcifs-ousername=administrator,password=****//192.168.1.1/分享目錄/linux/share

㈢ 如何解決linux mount cifs 掛window 網盤問題

在centos mount cifs 掛window 網盤容易出現問題如下:
一、掛載時,用戶/密碼錯誤
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
對應/var/log/message記錄
Oct 12 16:20:01 localhost kernel: Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Oct 12 16:20:01 localhost kernel: CIFS VFS: Send error in SessSetup = -13
Oct 12 16:20:01 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13
二、沒有分享目錄
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
對應/var/log/message記錄
Oct 12 16:20:06 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -6
Oct 12 16:20:17 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -6
Oct 12 16:20:17 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -6
目前遇到的問題就是這些
補充一句,格式一定要寫正確:
mount -t cifs -o username=administrator,password=**** //192.168.1.1/分享目錄 /linux/share

㈣ 關於linux掛載nas網路存儲

NAS 的中文名稱是網路附加存儲,是基於硬碟的專業存儲技術。它可以直接接入計算機網路,為各種操作系統的客戶端提供集中式的數據存取服務。
NAS支持NFS協議,Linux操作系統也是支持NFS協議的,可以直接在Linux裡面掛載NAS共享出來的NFS目錄,把數據直接拷貝到NAS上。
比如NAS伺服器的地址是10.0.0.111,在Linux上:
# mount 10.0.0.111:/sharefolder /mnt
# cp -r /des /mnt

㈤ linux 查看能不能掛載cifs

Linux掛載共享文件就是把遠程機器的文件掛載到本地進行使用,它可以分為windows共享掛載和linux共享掛載;1、windows共享掛載命令舉例 mount -t cifs -o username=name,password=password //ip/remote_share_path /local_path
2、linux共享掛載nfs舉例 mount -t nfs -o rw ip:/remote_path /localpath
上述nfs是共享文件類型,在linux下其包括samba,nfs,ftp三種。

㈥ Linux上掛載windows共享目錄

    筆者最近經常需要在windows和樹莓派之前來回拷貝文件,最開始是使用U盤,然後使用VNC自帶的文件傳輸工具,支持來回傳輸文件。也有一些SSH工具支持傳遞文件,但是頻繁拷貝來說確實繁瑣了些。windows的開發平台和工具用起來更加的和諧友好,比如寫php文件,筆者一般在windows寫好再上傳到伺服器,傳遞也很耗時間。最近閑逛才知道可以linux可以掛載windows共享目錄,孤陋寡聞的認為只能掛載硬碟、U盤等。那我們開始吧。

    1、在linux下要掛載windows的共享文件,需要安裝cifs-utils軟體包。

    dpkg -l|grep cifs-utils可以查看是否安裝了這個軟體包,which mount.cifs可以查看這個軟體包安裝在哪裡。sudo apt-get install cifs-utils可以安裝軟體包。

2、建立一個目錄用來作掛載點。

    筆者准備將共享目錄掛載在mnt目錄下,在mnt目錄下建立share目錄,sudo mkdir share 。

3、window共享share文件夾

    文件夾上右鍵屬性,設置共享屬性。

4、掛載操作

    sudo mount -t cifs -o username=Administrator,password=123456  //192.168.31.33/share /mnt/share。

    192.168.31.33為windows的IP地址,Administrator為windows的用戶名,123456為用戶密碼。在測試時,筆者不會不設置密碼會出現告警,「mount error(13): Permission denied;Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)「,設置windows的用戶名密碼後才能掛載成功。還有注意用戶名Administrator第一個字母有可能是是大寫的,所以一定要對應好用戶名。

5、測試大功告成

    在windows新建修改文件,在linux可以自由查看,修改就需要root許可權了。

6、取消掛載

    sudo umount /mnt/share 。當然,重啟linux後掛載自動會取消。需要重新掛載。

7、腳本控制來掛載共享文件夾

    為了方便起見,在開啟linux後需要重新掛載共享文件夾,這一串命令可要讓人頭疼了,那麼腳本來幫助!執行效果如下。如果掛載路徑不一樣,可要修改腳本用參數定位到新路徑,那筆者就不嘗試了。$? 執行上一個指令的返回值 ,顯示最後命令的退出狀態。0表示沒有錯誤,其他任何值表明有錯誤。

   歡迎取用:

㈦ 系統之家Linux中掛載windows共享文件的詳細步驟怎麼辦

方法/步驟mount -t cifc "windows共享文件夾" "Linux /mnt路徑"
i.e. mount -t cifs //16.187.190.60/test /mnt/
Linux 會要求輸入訪問Windows 共享文件夾上的密碼。
注意:
Linux中提示:
Unable to find suitable address.
說明遠程共享文件夾路徑不存在。請仔細檢查,並更正目錄路徑。
mount -t cifc "windows共享文件夾" "Linux /mnt路徑"
i.e. mount -t cifs //16.187.190.50/test /mnt/
注意:
Linux中提示:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
解決方案:將訪問Windows共享目錄的用戶名和密碼直接加入到命令中。
mount -t cifs -o username=WindowsLogin,password="passwordinWindows"
//16.187.190.50/test /mnt/
注意:該命令中,username為windows上的用戶;password為window用戶對應的密碼
步驟3的命令也可以使用以下方式實現:
mount.cifs -o username="Administrator",password="PasswordForWindows" //16.187.190.50/test /mnt/
通過步驟3和步驟4可以成功將windows共享文件夾掛載在/mnt目錄下。不過由於mount命令只能由root許可權用戶使用。其掛載文件夾的默認owner和group都為root,並且不能通過chmod命令更改許可權。
使用mount命令,給掛載共享文件夾指定owner和group.
mount.cifs -o username="Administrator",password="PasswordForWindows",uid=Mysa,gid=Mysa //16.187.190.50/test /mnt/
檢查/mnt/中文件夾的owner和group。
更改文件夾許可權。給mount共享文件夾所在組的寫許可權。

閱讀全文

與linux掛載cifs相關的資料

熱點內容
dvd光碟存儲漢子演算法 瀏覽:755
蘋果郵件無法連接伺服器地址 瀏覽:960
phpffmpeg轉碼 瀏覽:671
長沙好玩的解壓項目 瀏覽:141
專屬學情分析報告是什麼app 瀏覽:563
php工程部署 瀏覽:831
android全屏透明 瀏覽:731
阿里雲伺服器已開通怎麼辦 瀏覽:802
光遇為什麼登錄時伺服器已滿 瀏覽:301
PDF分析 瀏覽:484
h3c光纖全工半全工設置命令 瀏覽:141
公司法pdf下載 瀏覽:381
linuxmarkdown 瀏覽:350
華為手機怎麼多選文件夾 瀏覽:683
如何取消命令方塊指令 瀏覽:349
風翼app為什麼進不去了 瀏覽:778
im4java壓縮圖片 瀏覽:362
數據查詢網站源碼 瀏覽:150
伊克塞爾文檔怎麼進行加密 瀏覽:890
app轉賬是什麼 瀏覽:163