linux掛載共享檔案

2021-07-09 05:17:09 字數 2199 閱讀 6216



[root@www ~]# mount -t cifs -o username=domain\administrator,password=test123 /databackup

mount error(13): permission denied

refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

原因:命令中關於域的格式不對,正確的是:

mount -t cifs -o domain=test.com,username=administrator,password=test123  

/databackup 或

mount -t cifs -o username=domain/administrator,password=test123

/databackup

/var/log/messages內容:

sep 26 09:50:40 www kernel: status code returned 0xc000006d nt_status_logon_failure

sep 26 09:50:40 www kernel: cifs vfs: send error in sesssetup = -13

sep 26 09:50:40 www kernel: cifs vfs: cifs_mount failed w/return code = -13

[root@www ~]# mount -t cifs -o username=name,password=123 /databackup

mount error(127): key has expired

refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

/var/log/messages內容:

sep 26 09:56:05 www kernel: status code returned 0xc0000224 nt_status_password_must_change

sep 26 09:56:05 www kernel: cifs vfs: send error in sesssetup = -127

sep 26 09:56:05 www kernel: cifs vfs: cifs_mount failed w/return code = -127

原因:帳號的密碼過期,將windows帳號的密碼改為永不過期。

[root@www /]# mount -t cifs -o username=testuser,password=123 /databackup

mount error(5): input/output error

refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

sep 26 11:04:18 www kernel: cifs vfs: cifs_mount failed w/return code = -5

原因:/databackup已經掛載了,需要先umonut,再mount 

讓linux 啟動自動掛載在/etc/fstab中增加

/media cifs defaults,username=manifold,password=manifolden 0 2

mount: unknown filesystem type "smbfs"

2008-11-05 19:03

mount: unknown filesystem type "smbfs』

今天在使用fc6時,發現mount不了windows的共享盤

mount -t smbfs -o username=***,password=*** //hostname/dir /mnt/tmp

mount: unknown filesystem type 』smbfs』

系統已經不能識別smbfs檔案系統了

查資料說rhe5的kernel已經不再支援smbfs,而改用common internet file systemcifs(cifs)取代了原有的smbfs,猜想fc6也做了這個改動,所以命令就改為:

# mount -t cifs -o username=***,password=*** //hostname/dir /mnt/tmp

很順利地mount上了

Linux mount掛載共享檔案

10.100.53.77上配置 misc的共享目錄 安裝nfs服務 sudo apt get install nfs kernel server 建立misc目錄 mkdir misc 配置nfs共享目錄 vi etc exports 格式如下 共享目錄 允許訪問的主機ip 許可權 例如 misc ...

Linux檔案共享之AutoFS自動掛載

可使用autofs按需要掛載nfs共享,在空閒時自動解除安裝 yum安裝方法yum install autofs系統管理器指定由 etc auto.master自動掛載器守護程序控制的掛載點 自動掛載監視器訪問這些目錄並按要求掛載檔案系統 檔案系統在失活的指定間隔5分鐘後會自動解除安裝 為所有匯出到...

Linux掛載Windows網路共享資料夾

1 設定windows網路共享資料夾 在windows下設定要共享的網路資料夾。最好是建乙個專門的資料夾,然後所有的共享都走這個檔案。這樣需要設定的東西就很少了。但是如果是專門的資料夾需要共享,就只能再進行新增了。檢視windows下設定的共享檔案 這裡的onvif 2和share是我建立的共享資料...