歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> RedHat 5文件掛載命令mount的使用變更

RedHat 5文件掛載命令mount的使用變更

日期:2017/2/28 16:19:54   编辑:Linux教程

將RedHat4換成redhat5之後發現以前的命令無法掛載了

以前的命令:

mount -t smbfs -o username=imgupload,password=imgupload //192.168.119.169/img /img

在redhat5下執行會報如下錯誤:

mount: unknown filesystem type 'smbfs'

經過查詢後得知:

系統已經不能識別smbfs文件系統了

查資料說RHE5的kernel已經不再支持smbfs,而改用Common Internet File Systemcifs(cifs)取代了原有的smbfs,所以命令就改為:

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

所以新的掛載命令改為:

mount -t cifs -o username=imgupload,password=imgupload //192.168.119.169/imgnew /imgnew

Copyright © Linux教程網 All Rights Reserved