How to create NAS nfs automounts in Mavericks

So I had 3 automount nfs shares working in Mavericks last week, but for some odd reason all stopped working along with access to TimeMachine on my NAS and the ability to open disk images.
After some digging I removed my automount modifications to auto_master in /etc and all started to work again... my problem now is how do I now get my 3 automounts to work again so Aperture and iTunes can see their content on my NAS...
I had added this line to auto_master /Volumes/  -auto_share
I had created a flie in /etc called auto_share and this contained the following
Vault 
-fstype=nfs,soft,intr,rsize=32768,wsize=32768,noatime,timeo=900,retrans=3,proto= tcp 192.168.128.20:/Vault
Multimedia 
-fstype=nfs,soft,intr,rsize=32768,wsize=32768,noatime,timeo=900,retrans=3,proto= tcp 192.168.128.20:/Multimedia
Aperture 
-fstype=nfs,soft,intr,rsize=32768,wsize=32768,noatime,timeo=900,retrans=3,proto= tcp 192.168.128.20:/Aperture
This worked and then it stopped...
Any help appreciated
Andrew

Hi Andrew, as promised, here is my login script. Substitute anything in and including <> for your info. Copy/Paste into AppleScript Editor, save as an .app and add to login items for a user. Logout script to follow.
tell application "Terminal"
     try -- See if the NAS is awake, if not, wake it and give it time to appear
          do shell script "ping -c 1 <ip address>"
     on error
          tell application "Terminal"
               try
                    do shell script "/Applications/wol -q -p=7 <mac address>" -- if the NAS supports WOL
                    delay 120 -- give more or less after timing NAS startup time
               end try
          end tell
     end try
     try -- Make the mount points, repeat for how many are needed
          do shell script "mkdir /Volumes/<Dir1>"
          do shell script "mkdir /Volumes/<Dir2>"
     end try
     set success to 0
     repeat 5 times -- try the mounts 5 times, then bomb out
          delay 5
          try -- perform the mounts, change protocol formats as required (e.g. for SMB mounts "smbfs://..."
               do shell script "mount -t afp afp://<user>:<password@<ip address>/<Share1> /Volumes/<Dir1>"
               do shell script "mount -t afp afp://<user>:<password@<ip address>/<Share2> /Volumes/<Dir2>"
               close every window -- close Finder windows that automatically open on mount
               beep
               activate
               with timeout of 43200 seconds -- Display success dialog and wait up to 12 hours (doesn't need that long) for user to click "OK", reason: see last line, leave out if not needed
                    display alert "<Share1> and <Share2> are now available."
               end timeout
               set success to 1
               exit repeat
          on error number errNum
               tell application "Terminal"
                    quit
               end tell
          end try
     end repeat
     if success is not 1 then -- the bomb out section
          beep
          activate
          display alert "Please check that NAS is on then Log Out and Log In again. ( " & errNum & " )"
     end if
     quit
end tell
tell application "<application name>" to quit -- auto-close any apps that you don't want running for this session, without OK message delay above, script will time out and this line won't execute

Similar Messages

  • How to create an nfs share using the method "CreateShare" of class "MSFT_NfsServerTasks"

    I need to use the "CreateShare" of the wmi class "MSFT_NfsServerTasks" to create a nfs share.
    I am new to wmi. could somebody please guide me to achieve this. thanks in advance.

    let to me rephrase my question. I need to call the MSFT_NfsServerTasks::createmethod to create the nfs share.
    And the syntax for this method is
    uint32 CreateShare(
    [in] string Name,
    [in] string Path,
    [in] string NetworkName,
    [in] string Authentication[],
    [in] boolean UnmappedUserAccess,
    [in] boolean AnonymousAccess,
    [in] sint32 AnonymousUid,
    [in] sint32 AnonymousGid,
    [in] string LanguageEncoding,
    [in] boolean AllowRootAccess,
    [in] string Permission,
    [in] MSFT_NfsSharePermission ClientPermission[],
    [out] MSFT_NfsShare Share
    And to run this method I will be using "IWbemServices::ExecMethod". This method takes the Input parameter object(IWbemClassObject). I managed to add string the parameters in the input parameterobject as,
    IWbemClassObject* pInInst = NULL;:/*some code*/
    VARIANT var;
    var.vt = VT_BSTR;
    var.bstrVal= SysAllocString(L"C:\\share1");
    BSTR ArgPath = SysAllocString(L"Path");
    hRes = pInInst->Put(ArgName, 0, &var, 0);
    But how could I use it for other parameters e.g. string[], MSFT_NfsSharePermission ClientPermission[]etc.

  • How do I make nfs automounted volumes visible in Finder?

    or, in other words, have opposite option to default nobrowse?
    from mount manpage
                 nobrowse
                         This option indicates that the mount point should not be visible via the GUI
                         (i.e., appear on the Desktop as a separate volume).
    this is edited mount command output from Mac Pro
    mac-pro:~ ivarss$ mount
    /dev/disk0s2 on / (hfs, local, journaled)
    devfs on /dev (devfs, local, nobrowse)
    map -hosts on /net (autofs, nosuid, automounted, nobrowse)
    map auto_home on /home (autofs, automounted, nobrowse)
    map autofs_nfs on /Volumes/lto5 (autofs, automounted, nobrowse)
    /dev/disk1s2 on /Volumes/VFS HDD 0122 (hfs, local, nodev, nosuid, journaled, noowners)
    varaklani:/nfs on /Volumes/nfs/faili (nfs, nodev, nosuid, automounted, nobrowse)
    thanks!
    shpokas

    Well, when you add a component, it's size is 0,0 and it is located at the top left corner (0,0 point of its parent container). When you call pack(), the components are resized, and their placement is set.
    So what you did wrong is that you're trying to repaint the panel1 - therefore panel2 never appears, since its dimension is 0,0.
    THere's a solution though. Call the validate method of the container you add the component to - that is, jPanel1.validate() instead of its repaint method. Then panel1 will resize the components it contains. Then its not necessary to call the repaint, it'll be done automatically, because the container's graphics area is not valid any more after the validation.
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
         // Add your handling code here:
         JPanel2 p = new JPanel2();
         jPanel1.add(p);
         // jPanel1.repaint();
         jPanel1.validate();
    }

  • How to create iMAP email account in Mavericks

    There used to have a choice to create POP or IMAP type of email account in OS X Mail.  No more in OS X Mavericks or did I miss something? 

    Actually, you can still do that by pressing the Alt/Option key when you first set up an email account and at the prompt where you enter your email address, username and password. I can't remember, but I think you press the Option key after you fill out that screen. I think the Create button changes to Next so you can manually select the type of email account (IMAP, POP).

  • I want to install my original SnowLeopard (from the installation disc) to a partition I created in the now upgraded Mavericks OSX, How can I install it on the new partition?

    I want to install my original SnowLeopard (from the installation disc) to a partition I created in the now upgraded Mavericks OSX, How can I install it on the new partition?

    That's easy.
    2 methods:
    1. Change the Startup Disk in System Preferences, then restart:
    2. Hold down the "Option" key while starting or restarting the Mac. Then chosse the partition that you want to startup from.
    The 1st mehtod is the quickest, because you don't have the additional step of choosing the drive. Plus, whatever you have selected in System Preferences becomes the default startup drive.

  • How to Create NFS in Linux

    Hi all,
    I am very much new to Linux Admin, i am basically working as a apps dba, i have two servers, i installed Oracle Linux on that, now i want to create NFS file system, i have created u01 mount pioint in Linux1 and u01 in linux 2 with same space , i am able to ping both servers and i am able to do ftp both servers, could any one explain me how to create NFS in linux servers,
    Thanks

    On the server, edit the file <tt>/etc/exports</tt> to list the directories you
    want NFS to offer, and to which systems they should be offered:
    /u01    *(rw,sync,no_root_squash)
    /u02    *(rw,sync,no_root_squash)
    /u03    *(rw,sync,no_root_squash)The <tt>*</tt> matches any system/network and the <tt>(rw)</tt> says let the
    other systems read and write the tree, the <tt>sync</tt> forces the server NFS
    to finish the I/O before telling the clients the I/O is done, and the optional
    <tt>no_root_squash</tt> lets root on a client system access the files as if
    they were root on the NFS server; this may not be what you want.
    # /sbin/chkconfig nfs on
    # /sbin/service nfs startOn the NFS client, edit the <tt>/etc/fstab</tt> file to have lines that look
    like this:
    myserver:/u01 /u01 nfs rw,rsize=32768,wsize=32768,sync,nointr,hard 0 0
    myserver:/u02 /u02 nfs rw,rsize=32768,wsize=32768,sync,nointr,hard 0 0
    myserver:/u03 /u03 nfs rw,rsize=32768,wsize=32768,sync,nointr,hard 0 0and then from the client make sure you can see the offered files:
    # /usr/sbin/showmount -e myserverand if you can, do this on the client:
    # mkdir /u01 /u02 /u03
    # mount /u01
    # mount /u02
    # mount /u03If the clients ever reboot, the NFS files will be mounted automatically and you
    will not need these last 3 commands.
    The RDBMS has its own requirements for the options in the <tt>/etc/fstab</tt>
    entry, so the <tt>rw,rsize=...</tt> example may need to be adjusted a little.
    Happy NFS'ing.

  • How to create Archiving Rules in Outlook 2011 with Mavericks

    I am trying to create an email archive with Outlook 2011 and Mavericks 10.9.2. When I attempt to select the folder I created for the archive, it cannot be found, even after I enter the folder name in the search. Anyone conquer this issue?

    Hi Louis Le!
    Here is an article that can show you how to create events in Calendar and invite others to it:
    Calendar: Invite others to an event
    http://support.apple.com/kb/PH11518
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • How to create the Presistent store in NFS mountpoint

    HI  Everyone,
    Our requirement is we have to configure the Persistent store in NFS mount point, Please advise regarding this.
    Our Environment:
    Linux64bit, Weblogic 10.3.6, SOA 11.1.1.7, 11.2.0.3 DB
    1 Admin Server
    2 Managed Servers
    Node1: soa_server1,
    Node2: soa_server2
    1 Cluster (soa_cluster) the above managed servers are configured in this cluster)
    NFS Mout Point location: /oracle/app/Middleware/user_projects/domains/soa_domain/soa_cluster (Shared between both nodes)
    Domain home: /oracle/app/Middleware/user_projects/domains/soa_domain/ (Not shared seperate homes in both nodes)
    What we did:
    After SOA Installation and cluster configuration in post steps, we ran the below command in node1 and it created the persistent store in both nodes under the domain home.
    We tried by giving the NFS mount point value instead of domain home, but its not worked and given error. So for time being we went with domain home for storing persistent, used the below command for creation.
    java weblogic.WLST /oracle/app/Middleware/Oracle_SOA11g/bin/soa-createUDD.py --domain_home /oracle/app/Middleware/user_projects/domains/soa_domain/ --soacluster soa_cluster
    Please advise or provide command for creating persistent in NFS mount point.
    Thanks in Advance,
    Athish

    Hi Athish,
    I found this document very helpful and discussing about configuring shared storage and  steps on how to create and mount shared storage locations for SOA hosts
    http://docs.oracle.com/cd/E21764_01/core.1111/e12036/net.htm#SOEDG380
    Please check and let us know if it helps!!
    Thanks,
    Vijaya

  • HOW TO: create NFS Archive log mount that runs parrallel

    I would like to know if there is a way i can create an NFS mount that would run parallel Archiving and not stop if NFS mount is stale. If possible then how to create or configure?
    Any and all help would be appreciated!
    Edited by: 886101 on Sep 19, 2011 8:45 AM

    On the server, edit the file <tt>/etc/exports</tt> to list the directories you
    want NFS to offer, and to which systems they should be offered:
    /u01    *(rw,sync,no_root_squash)
    /u02    *(rw,sync,no_root_squash)
    /u03    *(rw,sync,no_root_squash)The <tt>*</tt> matches any system/network and the <tt>(rw)</tt> says let the
    other systems read and write the tree, the <tt>sync</tt> forces the server NFS
    to finish the I/O before telling the clients the I/O is done, and the optional
    <tt>no_root_squash</tt> lets root on a client system access the files as if
    they were root on the NFS server; this may not be what you want.
    # /sbin/chkconfig nfs on
    # /sbin/service nfs startOn the NFS client, edit the <tt>/etc/fstab</tt> file to have lines that look
    like this:
    myserver:/u01 /u01 nfs rw,rsize=32768,wsize=32768,sync,nointr,hard 0 0
    myserver:/u02 /u02 nfs rw,rsize=32768,wsize=32768,sync,nointr,hard 0 0
    myserver:/u03 /u03 nfs rw,rsize=32768,wsize=32768,sync,nointr,hard 0 0and then from the client make sure you can see the offered files:
    # /usr/sbin/showmount -e myserverand if you can, do this on the client:
    # mkdir /u01 /u02 /u03
    # mount /u01
    # mount /u02
    # mount /u03If the clients ever reboot, the NFS files will be mounted automatically and you
    will not need these last 3 commands.
    The RDBMS has its own requirements for the options in the <tt>/etc/fstab</tt>
    entry, so the <tt>rw,rsize=...</tt> example may need to be adjusted a little.
    Happy NFS'ing.

  • Can't Shake NFS Automount, please HELP!

    Mac connects directly to cable modem.
    Problem? Something keeps grabbing me when I go online... my Mac cannot change it's IP address.
    Folder called automount gets created upon reboot.
    Network icon - get info - shows the following: Kind of file is Alias. It is located at /Network. Server is nfs://automount%20-nsl%20%5B197.
    I've been getting this forever - If I get rid of it, it reappers.
    I have no network here, I'm a home user.
    My Windoze doesn't have this automount and gets a new IP each time... but my Mac is locked.
    Can anyone please help me?
    PS - I've tried DHCP renew, it doesn't work at all, nothing happens. My ISP is clueless about this. I believe it is locking onto a static IP but I'm not the one making it do it!

    You report that you're connecting the Mac directly to a Motorola Surfboard without a router. What model Surfboard? (There should be a sticker on the bottom) How is the Windows PC connected to the internet? I have a Mottorola Surfboard at home driving a Mac and Pc, but through an Airport Basestation / router. I suspect that putting a basic four-port US$30 router between the modem and the Mac would help. Note that the Motorola Surfboard FAQ notes that multiple computer support requires a separate router. If you just switch the Ethernet cable from the modem between the PC and the Mac, or connect the Mac via Ethernet and the PC via USB, the modem doesn't accept the Mac's MAC (heardware-specific Media Access Code) after grabbing the PC's MAC code on power up. Putting a router between modem and computers and resetting the modem along with restarting the computers will force the modem to grab the router's MAC, and the router will then serve private-network IPs to the attached computers. Any router currrently on the market will also give you a NAT firewall as well; this hardware firewall can safely be used along with the OS X and Windows software firewalls and can greatly increase the security of your computers (especially the Windows one).
    Also from the Motorola FAQ:My computer keeps pulling a 169.254.x.x IP address, the modem has been reset and power cycled and the computer is still getting the same IP address, how do I correct this?
    Disconnect the Coax cable from the modem and restart it. Once the "Receive" light begins flashing reboot your computer. If the modem and the computer are communicating, the computer will get a 192.168.100.11 IP address (192.168.0.x with the SBG900) from the cable modem. Shut down your computer. Connect the Coax cable to the cable modem, restart it, and wait for the modem to sync up with the cable company. Once the modem is in sync (Power, Receive, Send, On-line are all illuminated) restart the computer. Once the computer has restarted check the IP address. The computer should have a valid IP address from the cable company. Computers attached to the SBG900 will always get a private (192.168.0.x) address regardless of whether or not the SBG900 is registered on the cable system.

  • How to create my own Apple ID and delete the old Apple ID .

    Hello please can anyone help me I recently brought the imac 27 is x maverick desktop. I had brought this imac from someone who no longer wanted it. My problem is I have managed to log on with my Apple ID . But when I go into my purchases of my apps it's saying its empty and I don't know how I create the imac to my Apple ID . I do have the old information of the person I brought it off the id and password but I don't know how to delete the old and create my own please if anyone can help and advice I would be really grateful thanks for your time and advice.

    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.
    From Here   http://support.apple.com/kb/HE37

  • After Security Update, NFS automount hangs login over LDAP

    We currently have a laptop lab in the process of being set up. We have 45 MacBook Pro systems with Snow Leopard 10.6.4 installed. We had set up LDAP authentication for users to log in to our directory server and it worked great over both wired and wireless (WPA2). After installing security update 2010-005, systems hang upon logging in over wireless. We believe the problem is with an NFS automount we set up, because removing the automount allows users to log in successfully over wireless. The NFS is crucial so that users can save data to the server, however, so this is not a solution. Are there any configuration tweaks to undo whats been blocked by the security update?

    After installing update 2010-005, I am having issues with my system hanging during startup (stays indefinitely on the grey 'apple' screen, with a spinning icon, and no status or message stating what it is trying to do).
    I am able to restart, hold SHIFT, and boot into safe mode, with limited functionality, but have not been able to resolve the issue.
    How did you determine that it was hanging on wireless login? (I have not found a log file that states what the system is doing during startup, or why its hanging)
    I have searched for issues like this, and most posts recommend removing entries from /Library/Caches and other similar items, but I'm concerned that I might be starting out with a small problem, and then cause a much bigger problem by removing system entries without really knowing what's broken in the first place.
    Is there a debug screen during startup, that would tell me what steps its taking? (or a log file?)
    I've looked through all of the entries available to the console log review app (apps/utilities/console.app), and was hoping that 'system.log' would tell me what's going on, but so far I'm not seeing anything useful. (there are errors in there, and it looked like there was a crash around the same time as the update was happening, but I'm not seeing any entry during startup that shows what its trying to do, and reveals that its just stuck on that task)
    I've run some of the tasks in the 'Snow Leopard cache cleaner' and onyx utilities, but that hasn't fixed my login problem.
    Any info you have on further diagnosis, rolling back the update, or anything I should try next, would be greatly appreciated!

  • How to create /home directory in a diferent disk ?

    I installed Solaris 11-11-11 on a x4640 with 4 disks:
    How to create /home directory in a diferent disk ?
    Edited by: user1502 on Apr 25, 2012 1:51 PM

    I'm confused. It looks like you already have /home configured:
    <pre># zpool status
    pool: home
    state: ONLINE
    scan: none requested
    config:
    NAME STATE READ WRITE CKSUM
    home ONLINE 0 0 0
    c4t3d0 ONLINE 0 0 0
    errors: No known data errors
    # zfs list
    NAME USED AVAIL REFER MOUNTPOINT
    home 86K 134G 32K /home
    ...</pre>
    What is the problem? Looks like you already have /home configured. Are you sure automounter is not running?
    Try this:
    <pre>zfs set mountpoint=none home
    rm -rf /home
    zfs set mountpoint=/home home</pre>

  • Create a bootable OS X Mavericks DVD

    Hi,
    I'm running OS X Mountain Lion.
    I'm trying to upgrade to OS X Mavericks.
    I have downloaded the OS X Mavericks, but can not create a bootable OS X Mavericks.
    How do I create a "bootable OS X Mavericks DVD"?
    Thanks in advance.
    Ed

    You cannot use DVD, capacity is not enough.
    Click blue "Reader" button at the end of URL/Address bar of Safari for easy viewing.
    http://arstechnica.com/apple/2013/10/how-to-make-your-own-bootable-os-x-10-9-mav ericks-usb-install-drive/
    Best.

  • How I create my signature for mail?

    How I create my signature for mail?

    This message should have been posted in the OS X Maverick Forums.
    Go to Mail Preferences/Signatures. Choose the Account you want the signature for. Click +. Create your signature.

Maybe you are looking for

  • Iphoto, Creating events and Albums

    I have attempted to create events and albums on the photo app in Ipad with no success. I have also synced the iPad to itunes and transfered pictures from an existing iphoto (macbook pro) event with no success. How can i create events and albums on th

  • PO line  deletion in MASS

    We have a std t-code MEMASSPO to delete the line items.My query is whether, we can undelete the same in mass using the same t-code MEMASSPO ? With regards Biji

  • Bar code scanning problem

    Hi all, I have a problem in scanning barcode. I'm using C128A barcode in the smartstyle in character format. It is getting printed in the form. But i'm unable to scan it using barcode reader. Please help me out in this as it is a critical issue. Plea

  • Problem installing adobe go live 6.0 - who can help?

    Hi... I have been using adobe go live for many years. A few weeks ago I cleaned up a bunch of old files to make more room on my harddrive and ever since then it is not responding any longer. I can't get into the program any more. I tried to reinstall

  • Cannot update to Adobe Reader XI on a Windows 7 PC.

    I got the following error message "Update failed. Error 1310. Error writing to file: C:\Config.Msi\7bf5e.rbf. Verify that you have access to that directory." How do I know if I have access to that directory? I am not an IT professional.