You can set the mounting options of a filesystem in the file /etc/fstab. For example :
# cat /etc/fstab | grep data /dev/mapper/vg01-lv01 /data ext4 defaults 0 2
Viewing mount options of filesystem
1. To see what options a mounted filesystem is utilizing run the mount command can be ran without any arguments. You can also grep for a particular mount point as sometimes (specially if you are using RHEL/CentOS 7) you might get a huge list of system mount points. For example, data in the below case.
# mount | grep data /dev/mapper/vg01-lv01 on /data type ext4 (rw,relatime,seclabel,data=ordered)
Which will display the currently mounted filesystems, the filesystem type the device is mounted as and the options it is utilizing within parenthesis. Foe example in our case we are using the mount options – rw,relatime,seclabel,data=ordered. Please note that, not all options are mentioned in the /etc/fstab file.
2. The kernel retrieves this information from the /proc/mounts file which can also be inspected to retrieve the same information. The /proc/mounts file will also show default mount options for specific filesystems:
# cat /proc/mounts /dev/mapper/vg_test-lv_root / ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0