RedHat 5文件挂载命令mount的使用变更


将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

相关内容