將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