• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 497
  • Last Modified:

Find all folders pointing to certain filesystem

What command should i use to find out what are all the folders pointing or pending on certain filesystem?

I get an alarm when a filesystem on a machine exceeds 90% of its capacity, however i dont know how to find all the folders that are pending on that same filesystem.

is there any command to achieve that?

thank you.
1 Solution
cd to the root directory (the mountpoint) of the filesystem in question and issue

find -x . -type d

The above is FreeBSD specific, on Linux/AIX/Solaris you would have to use

find  .  -xdev -type d

Alternatively, if you don't want to "cd" to the mountpoint, use

find -x /mount/point -type d


find /mount/point  -xdev -type d

The mountpoint of a filesystem can be found in the last column of the output from "df".
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now