8

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?

0

2 Answers 2

5

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.

2
  • 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. Commented Jan 3, 2013 at 22:32
  • will mount -a work if for some reason it didnt mounted on startup ? Commented Mar 6, 2018 at 14:26
2

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

4
  • He's not talking about Amazon Cloud Drive; your response does not apply to regular filesystem mounts.
    – John Hart
    Commented May 2, 2013 at 16:34
  • It does. Screenshot only show the screen where you should do it, not the program. Commented May 2, 2013 at 18:23
  • Just use Finder to mount it, then you can add it to the screen above. Commented Jun 15, 2013 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
    Commented Jun 18, 2013 at 0:00

You must log in to answer this question.