How Do You Check If a Folder Is Mounted in Linux?
Contents How Can I Tell If a Directory Is a Mount Point? Stat –Printf ‘%M’ Shows the Mount Point of a Given File or Directory. Realpath Converts Relative Paths...
Contents
How can I tell if a directory is a mount point?
stat –printf ‘%m’ shows the mount point of a given file or directory. realpath converts relative paths to direct. Comparing the results of the two will tell you if a directory is a mount point.
Must Read
How do I check mounts in Linux?
You need to use any one of the following command to see mounted drives under Linux operating systems. [a] df command – Shoe file system disk space usage. [b] mount command – Show all mounted file systems. [c] /proc/mounts or /proc/self/mounts file – Show all mounted file systems.