I am running OS X Lion. I have the following line in my /etc/fstab:

//darren:q@acid/home /acid smbfs nodev,nosuid,auto

If I run mount -a, the share mounts correctly, but if I just reboot the computer, the drive does not mount.

The drive in question is an Ubuntu SMB share.

Can anyone advise?

migrated from serverfault.com May 19 '12 at 1:57

This question came from our site for system and network administrators.

I ran across this today which is one way to do it.

In summary for Mountain Lion:

  1. Edit the file /etc/auto_master
  2. Within add /- auto_smb
  3. Create /etc/auto_smb
  4. Within add /Volumes/mount_point -fstype=smbfs,soft ://user:pass@smbserver/share

The author goes onto mention a second method using the vifs command, but I've never tried that one and it seems to do something of a pre-mount at bootup. You still have to touch the Volume for it to completely mount.

Lastly, the author states that "soft" should be used in step 4 above because failures to mount will cause the bootup to hang.

  • Thanks for the answer. Would you mind summarizing the instructions provided in the link? It is often good to include a link with your answer, however, links can break over time, so it best that they are not solely the answer. – bassplayer7 Jan 3 '13 at 22:32
  • will mount -a work if for some reason it didnt mounted on startup ? – Ciasto piekarz Mar 6 at 14:26

You need to mount the drive once, then go to Settings Panel and Users & Groups. There you can add it. If you hide it, it will mount but don't open the finder screen upon logging in.

enter image description here

  • He's not talking about Amazon Cloud Drive; your response does not apply to regular filesystem mounts. – John Hart May 2 '13 at 16:34
  • It does. Screenshot only show the screen where you should do it, not the program. – Bart De Vos May 2 '13 at 18:23
  • OK. How then do you automount an SMB drive via Settings > Users & Groups > Login Items I've done it via the accepted answer (/etc/auto_master and /etc/auto_smb), but I don't know what program you would put into Settings > Users & Groups > Login Items to make it work. A bash script of your own devising? If so, what would the script say? – John Hart Jun 13 '13 at 21:31
  • Just use Finder to mount it, then you can add it to the screen above. – Bart De Vos Jun 15 '13 at 20:59
  • oh, now I see what you mean (when you just said "then you can add it" it wasn't clear you meant "drag the mounted volume onto the Login Items list"). I didn't know that volumes could be added to that list ... but, clearly, they can. That's a great tip, thanks! – John Hart Jun 18 '13 at 0:00

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.