Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 down vote accepted

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

sudo defaults write com.apple.loginwindow LogoutHook /usr/scripts/myScript.py
share|improve this answer

Your Answer

 
discard

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.