Cancel automatic mounting of fstab

Last updated:2020-06-09 20:00:56

The /etc/fstab file contains information about static file systems and defines how the storage devices and partitions are integrated to the whole system. To execute automatic mounting at startup, define mount points of file systems, the corresponding mounting volumes (or hard disk drives), and additional information in this file.

The following is an example of the file:


/#<file system> <dir> <type> <options> <dump> <pass> tmpfs 

/tmp tmpfs nodev,nosuid 0 0 

/dev/vdb / ext4 defaults,noatime 0 1 

/dev/vdc /home ext4 defaults,noatime 0 2

Cancel automatic mounting of fstab

Typically, cancel automatic mounting of the /etc/fstab file in the following cases:

  • Creating a custom image on the KEC instance.
  • Mappings between mount points and volumes (or hard disk drives) are changed on the file system of the KEC instance.


  1. Open the /etc/fstab file.

    vim /etc/fstab

    If VIM is not installed, use the following command first:

    yum -y install vim
  2. Press i to enter the edit mode, and then delete the corresponding automatic mounting options.

  3. Press Esc to quit editing the file, and then save and close the file.


Did you find the above information helpful?

Mostly Unhelpful
A little helpful
Very helpful

What might be the problems?

Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions


Please give us your feedback.


Thank you for your feedback.