Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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've recently installed NTFS-3G through Homebrew in order to access NTFS drives from OSX. There's a slight problem with it: after unmounting the drive, if you take a look at /Volumes/, you can still find the unmounted volume folder there. That's why when I mount the drive back in, it appears under the same name with a number following +1 every time I do this.

I can make a script to delete din folders, but I don't know how to trigger it when the drive is being unmounted or at least how to trigger it when the system restarts/shuts down.

Any ideas on how I could do that?The folders from the external hard drive

share|improve this question
up vote 1 down vote accepted

The solution I found is running the script at shutdown with this:

sudo defaults write LogoutHook /usr/scripts/
share|improve this answer

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.