Error Message "wrong fs type, bad option" Was Displayed During File System Mounting
Symptom
The message "wrong fs type, bad option" was displayed when you run the mount command to mount a file system to a Linux ECS.
Possible Causes
An NFS client is not installed on the Linux ECS. That is, the nfs-utils software package is not installed before you execute the mount command.
Fault Diagnosis
Install the required nfs-utils software package.
Solution
Refer to the following steps if your clients run CentOS, Red Hat, Oracle Enterprise Linux, SUSE, EulerOS, Fedora, or OpenSUSE. For other OSs, see Mounting an NFS File System to ECSs (Linux).
- Log in to the ECS and run the following command to check whether the nfs-utils package is installed. If no command output is returned, the package is not installed.
rpm -qa|grep nfs
Figure 1 Checking whether the software package has been installed
- Install the nfs-utils software package.
yum -y install nfs-utils
Figure 2 Executing the installation command
Figure 3 Successful installation
- Run the mount command again to mount the file system to the ECS.
mount -t nfs -o vers=3,timeo=600,noresvport,nolock,tcp Shared path Local path
- View the mounted file system.
mount -l
If the command output contains the following information, the file system has been mounted:example.com:/share-xxx on /local_path type nfs (rw,vers=3,timeo=600,nolock,addr=)
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot