Ghost folders in /Volumes I've had a problem today where when I plug my external HDD in, it creates a ghost folder in /Volumes with the same name, causing my hard drive to change it's path to /Volumes/HDD 1. This is messing with programs that direct to /Volumes/HDD.
Is there someway to fix this? Also, my harddrive has an issue where even a small bump can cause it to give the error of it not being removed properly, so this could potentially be the cause of it. 

Thanks for the help.
Yes - premature ejection can cause these ghosts. 

You would need to script a cleanup that uses df and diskutil list and ls /Volumes to remove the ghost entries. 

I typically do this by hand as it happens very infrequently to me.