Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sometimes network volumes get a -1 suffix on their path. As I have scripts that rely on this path they can't work.

For example an afp share at afp://nas/Team is shown Team in Finder, but its real path is /Volumes/Team-1

share|improve this question

1 Answer 1

up vote 3 down vote accepted

I have seen this happen when there is already a volume with the given name and the OS needs to create a new name to mount the volume as you can't have a duplicate name -- thus the suffix.

The first thing to do is, make sure that you don't have any other volumes with the same name. If you do, perhaps you can rename one or only use one at a time.

I've also seen some applications that use a path for an external volume will create a folder under /Volumes/ if the volume has been disconnected and the path doesn't exist. This causes the suffix the next time the volume is reconnected. To fix this you will need to disconnect the volume, remove the extraneous folder, and then reconnect the volume. It should mount without the suffix.

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.