<rant/>
travel, photography, computers and general jive
rss
email
twitter

Automounting samba drives in Mac OS X

5 comments
Posted on Friday, October 13, 2006 by rach

Almost impossible to find out how to do this! Finally with a mash up of a few articles, I found out how to automount samba drives. Yeeeah haa. Means i can mount //calculus/data and //nestor/data with different names (to stop confusing front row :-))

Samba automount

(NetInfo app --> found in ya utilities folder under applications)

The important bit is the path the mount is created under -- '/Network/calculus' will mount it with the name 'calculus' (if I had /Network/joebloggs, the drive would be called 'joeblogs'), ja?. This is doing a 'static' mount, which means it's mounted all the time (dynamic mounts unsuprisingly get turned on/off depending if they are in use). The drive is then in the finder under 'Network' --> drop an alias wherever ya want and bob's your uncle :-)

Not sure what will happen when someone else logs onto this box... do they still get mounted? And using my username/pass? hmm will have to try it out and see.

Edit: Found a post on macosxhints that may be even easier -- using an applescript and automator. Not sure if it will handle 'remounting' when an automount fails (as the netInfo way above only runs at boot - I haven't found a way of 'remounting' the netInfo mounts if it fails at boot). But one bonus is it's user specific, so doesn't set up those mounts for everyone.
http://www.macosxhints.com/article.php?story=20070202190047133

Edit: I've done a followup on another method here: http://rachmobile.blogspot.com/2007/10/more-automounting-samba-drives-in-os-x.html

NOTE: this method only works on 10.4 (Tiger). Leopard has some other funky methods to get it up and running, and the NetInfo manager has ben removed. New methods include autofs which I must try out some day soon!



Category: mac

5 Comments

  1. gravatar davef8 says:
    October 18, 2007 1:17 AM

    will this or the macosxhints options work if my nas is at home and I want to access it each day after I get back from work without re-connecting?

  2. rach says:
    October 18, 2007 2:24 PM

    Not sure what you're after... do you shut your Mac down? If so, it automatically mounts on boot.

    I've actually moved to another way of doing it - where I've written an applescript to mount drives, and I use MarcoPolo to run the script whenever it decides i'm at 'home'. Not 100% perfect, but more flexible :) I'll have to write a post about how to hook all the bits up!

  3. gravatar davef8 says:
    October 19, 2007 6:47 PM

    yeah that's totally what I'm after. I never shutdown my mac so the automount on boot doesn't really work. I wake my mac from sleep when I get home and would like some way for it to detect my share and automatically connect to it. In a perfect world it would work just like auto connecting to my wifi :) looking forward to your post!

  4. rach says:
    October 28, 2007 6:51 PM

    Finally got around to posting the alternative method I'm using now here: http://rachmobile.blogspot.com/2007/10/more-automounting-samba-drives-in-os-x.html

  5. gravatar davef8 says:
    December 13, 2007 1:27 AM

    i ended up springing for an airport extreme. it automatically shows the drive whenever I'm home, not configuration or apple scripting needed :) I even got it to work with pesky vista.

Leave a Reply

Categories

photography travel tech software web work testing webdesign apple uk photoshop kayaking agile

Archives

  • ►  2010 (13)
    • ►  August (1)
      • Another website about to go live...
    • ►  July (1)
      • Lomo-tastic
    • ►  June (2)
      • Naked Vet Calendar
      • Yet Another Theme change
    • ►  May (3)
      • Brew labels
      • New reading
      • Alternative Context Images - new site
    • ►  April (1)
      • Mac OSX Snow Leopard and SMB mounts... more!
    • ►  March (3)
      • Chocolate Chip Sandwich Cookies
      • Disappointment...
      • Mac and WEP
    • ►  February (2)
      • trading away
      • Home, home again!
  • ►  2009 (60)
    • ►  December (9)
      • Xian
      • Beijing
      • Mongolia
      • Trans Mongolian
      • Siberia
      • Trans-Siberian Leg 1: Moscow to Irkusk (Siberia)
      • Russia! St Petersburg and Moscow
      • Poland
      • Prague, Czech Republic
    • ►  October (11)
      • Budapest - Beers, Baths and Slight madness
      • Slovakia
      • Austria
      • München
      • Heidleberg
      • Switzerland after Geneva
      • Geneva, Switzerland - Cheese, Cheese, Fondue and M...
      • France, take two
      • Northern Spain
      • Portugal - Lisbon and OPorto
      • UK Stopover
    • ►  September (11)
      • Flam, and kayaking in the Fjords
      • Norway Part 1 - Oslo and Bergen
      • Malaga, Fuengirola and the Costa del Sol
      • Barcelona and Madrid
      • French retreat
      • South of France
      • Milano
      • Sizzling in Sicily
      • Southern Italy
      • Croatia (pt. The Second)
      • Bosnia
    • ►  August (3)
      • Six weeks down...
      • Croatia (part 1)
      • Slovenia
    • ►  July (7)
      • Heading through the Balkans
      • Two weeks down, 20 to go!
      • Bulgaria :: Sofia and Plovdiv
    • ►  June (2)
    • ►  May (2)
    • ►  April (4)
    • ►  March (3)
    • ►  February (4)
    • ►  January (4)
  • ►  2008 (93)
    • ►  December (3)
    • ►  November (1)
    • ►  October (7)
    • ►  September (10)
    • ►  August (10)
    • ►  July (11)
    • ►  June (9)
    • ►  May (13)
    • ►  April (21)
    • ►  March (5)
    • ►  February (3)
  • ►  2007 (85)
    • ►  December (1)
    • ►  November (3)
    • ►  October (6)
    • ►  September (2)
    • ►  August (3)
    • ►  July (2)
    • ►  June (12)
    • ►  May (17)
    • ►  April (7)
    • ►  March (12)
    • ►  February (7)
    • ►  January (13)
  • ▼  2006 (67)
    • ►  December (4)
    • ►  November (10)
    • ▼  October (20)
      • I heart JIRA
      • Ubuntu 6.06 --> 6.10 upgrade = not good...
      • Good Samaritan
      • How to solve the Pigeon Problem
      • DIY Light Tent
      • Chuckle for the arvo
      • Fit/Fitnesse
      • The Beast has been unleashed...
      • lowest tech possible
      • Random software development
      • Am I mental?
      • Playground as art!
      • Automounting samba drives in Mac OS X
      • Portable User Accounts
      • Win XP on Parallels
      • Lotus notes should be mothballed
      • Joined the ranks of the mac users!
      • Not too promising...
      • An oldie but a goodie - Taming Lists
      • The strangest lasagne...
    • ►  September (6)
    • ►  August (2)
    • ►  July (1)
    • ►  June (3)
    • ►  May (5)
    • ►  April (3)
    • ►  March (13)
  • ►  2005 (32)
    • ►  October (2)
    • ►  August (1)
    • ►  July (11)
    • ►  June (3)
    • ►  April (15)
  • ►  2004 (11)
    • ►  November (5)
    • ►  October (6)

Followers

Alternative Context Images



View My Portfolio

Powered by Blogger | Designed by WebTreats
Copyright 2010 Alternative Context