linux掛載網路儲存mount有問題

綠蘿綠蘿123發表於2017-03-28
1/

今天碰到一個nfs掛載錯誤的問題,錯誤提示如下:

mount: wrong fs type, bad option, bad superblock on 125.64.41.244:/data/img,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
 
根據錯誤提示,檢視/sbin/mount.<type>檔案,果然發現沒有/sbin/mount.nfs的檔案,安裝nfs-utils


yum install nfs-utils

2/# mount 10.50.122.10:/nfs /mnt mount.nfs: rpc.statd is not running but is required for remote locking. mount.nfs: Either use '-o nolock' to keep locks local, or start statd. mount.nfs: an incorrect mount option was specified

如果遇到上面的錯誤,執行:

# /etc/init.d/rpcbind start
或者網上還提供另一種方法 mount -o nolock -t nfs xxxxxxx  沒有測試。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29820633/viewspace-2136205/,如需轉載,請註明出處,否則將追究法律責任。

相關文章