Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'make the mount visible in finder on login' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
make the mount visible in finder on login
Authored by: Caelum on Jul 31, '12 05:26:41PM

One problem with this hint is that your mount doesn't show up in finder until you open the directory with go or cd in terminal.

The way I fixed that is with a crontab.

Type this in Terminal:

crontab -e

that will use vim, if you want to use a simpler editor type this instead:

EDITOR=nano crontab -e

Now add this line to the file:

@reboot cd /path/to/mount

Now when you reboot the mount will be visible in finder immediately!



[ Reply to This | # ]
make the mount visible in finder on login
Authored by: Caelum on Mar 26, '14 02:56:18PM

The crontab method broke for me after the upgrade to Mavericks, but I found a different method that works, I will describe it here.

First, get the 'LaunchD Task Scheduler' app from the app store.

Make a new job, e.g. 'MountSMBShares'.

Write a bash script in your ~/bin that looks like this:

#!/bin/sh

sleep 10
cd ~/share1
cd ~/share2

etc.

make sure to chmod +x the bash script.

In the task scheduler job properties, put the path to the script as the command, e.g.

/Users/myuser/bin/automount_smb_shares

Uncheck all the options except "run at load and login" and "job enabled".

Save the job and reboot.

Your mounts should be available at log in now.



[ Reply to This | # ]