pierrot10

Q: mount_smbfs: mount error: /Volumes/backup: File exists

Dear All,

I have a small problem to mount a remote folder which is already mounted on another foler.

I have two folders:
/Volumes/data
/Volumes/backup

With cmd+k , the remote folder is mount on /Volumes/data

Then I have a script which run rsync and it mount the same remote folder on /Volumes/backup

FIEST CASE:
When I DO NOT mount the remote folder with cmd+k, the script run well, and the remote folder is perfectly mounted on /Volumes/backup.

SECOND CASE:
But, when I previuosly mount the remote folder wiht cmd+K on /Volumes/data, and then I lunch ma script, it returns that error message (while backup folder is empty)

mount_smbfs: mount error: /Volumes/backup: File exists

Here is my mount command:
mount_smbfs -d 777 "//$DOMAIN;$USERNAME@files$NO.domain.ch$REMOTE_FOLDER/" "$LOCALMOUNTFOLDER/"

My Question is, how can I mount twice the same remote folder on different local folder, without a such error message?

Many thank for your help

iMac - MacBook Pro - MacPro, Mac OS X (10.6.6)

Posted on Feb 17, 2011 11:20 AM

Close

Q: mount_smbfs: mount error: /Volumes/backup: File exists

  • All replies
  • Helpful answers

  • by Jive_Turkey1971,

    Jive_Turkey1971 Jive_Turkey1971 Mar 24, 2013 3:37 PM in response to pierrot10
    Level 1 (0 points)
    Mar 24, 2013 3:37 PM in response to pierrot10

    I think the mount_smbfs command is depricated or something. I read in a manpage or maybe online that you should use mount instead. This is the syntax I'm using to mount smb shares:

     

    mount -t smbfs //user:password@server/sharename /local/mount/point

    I havent tried it to mount to two different places simultaneously yet, which it sounds like you might be trying to do. I know your question is pretty old, I'm curious to see if/how you've got it sorted.

  • by NostradamusZenIsAlreadyTaken,

    NostradamusZenIsAlreadyTaken NostradamusZenIsAlreadyTaken Sep 8, 2015 6:51 AM in response to Jive_Turkey1971
    Level 1 (4 points)
    iPhone
    Sep 8, 2015 6:51 AM in response to Jive_Turkey1971

    I'm getting the same error still, JT, even using your command. 'file exists' .

     

    Probably there's a thread somewhere that's a bit more verbose on this - anyone?

     

    TIA