Help Center/ Scalable File Service/ User Guide (Paris Region) / Troubleshooting/ Error Message "wrong fs type, bad option" Is Displayed During File System Mounting
Updated on 2024-03-21 GMT+08:00

Error Message "wrong fs type, bad option" Is Displayed During File System Mounting

Symptom

The message "wrong fs type, bad option" is displayed when you run the mount command to mount a file system to an ECS running Linux.

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

  1. Log in to the ECS and check whether the nfs-utils package is installed. Run the following command. If no command output is displayed, the package is not installed.

    rpm -qa|grep nfs
    Figure 1 Checking whether the software package has been installed

  2. Run the following command to install the nfs-utils software package:

    yum -y install nfs-utils
    Figure 2 Executing the installation command
    Figure 3 Successful installation

  3. Run the mount command again to mount the file system to the ECS.

    mount -t nfs -o vers=3,timeo=600,noresvport,nolock Mount point Local path

  4. Run the following command to view the mounted file system:

    mount -l

    If the command output contains the following information, the file system is mounted successfully.
    example.com:/share-xxx on /local_path type nfs (rw,vers=3,timeo=600,nolock,addr=)