• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to find the mounting options of currently mounted filesystem

by admin

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

Filed Under: Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL : How to install and start the Apache httpd service
  2. libreoffice Command Examples in Linux
  3. 14 Useful “cat” Command Examples in Linux
  4. s2i: command not found
  5. How To Delete Disk Partition using Parted Command
  6. btrfs scrub Command Examples in Linux
  7. How to disable “Alt+Ctrl+Del” causing system reboot in CentOS/RHEL 7
  8. “Volume “myvg/vol01″ Is Not Active Locally” – CentOS/RHEL
  9. halt: command not found
  10. Examples of using dmsetup command in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright