Tell me more ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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?

share|improve this question

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

2 Answers

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.

share|improve this answer
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 at 22:32

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

share|improve this answer
He's not talking about Amazon Cloud Drive; your response does not apply to regular filesystem mounts. – John Hart May 2 at 16:34
It does. Screenshot only show the screen where you should do it, not the program. – Bart De Vos May 2 at 18:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.