Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am doing, or trying to do, a 'find /' which I would like to recursively list every file the user has permission to access under the volume "Macintosh HD" and nothing else.

I am presently filtering out the output of the find to exclude files under Backups.backupdb. This is a partial solution at best because the system is bogging under attempts to access flaky NSF mounts.

Is there a shell command that I can use that will stay on "Macintosh HD", recursively list file paths, and leave other volumes alone?

share|improve this question

find can do this itself as per Apple's man page. You ned the -x option to

Prevent find from descending into directories that have a device number different than that of the file from which the descent began.

share|improve this answer

If I understand your question, I think you want find "/Volumes/Macintosh HD/". Because OS X mounts volumes in /Volumes, every volume is a subdirectory of /, hence why you're getting results from volumes you don't want.

share|improve this answer
This won't help. /Volumes/Macintosh HD is just a symlink to /, so find "/Volumes/Macintosh HD/" will traverse into /Volumes/Macintosh HD/Volumes/randomothervolumes just like find / would. – Gordon Davisson Oct 2 '12 at 6:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.