Auto-Mounting Network Shares/Disk Images

Hi,
I'd like to share how I solved my problem with auto-mounting a network disk image/folder share to be used as a custom library/location for Aperture 3.xx. I can now either reference the master photos from the network or have it copy to this disk image volume on the network, although it might be better to have it copy to the disk image volume, so one can move it around as a file later. I researched hard over these forums and internet resources and discovered what I thought was the best way to accomplish this. Initially, I found right away that Aperture doesn't allow you to create a library over your network drive or a home server such as mine, unless it is partitioned/formatted to Mac OS. This wasn't acceptable for me as I also run Windows 7 PCs that need to utilize the network folder shares, as well.
I don't understand why I don't have this problem using iPhoto 2011, and do with Aperture 3.0, which is a far more expensive application. Anyhow, I read a little about NFS, but didn't know how to implement this or if it required the Mac Server and/or a non-built in application, it probably isn't compatible with windows. So, I found that by creating a .DMG disk image file, as a partitioned/formatted Mac OS file in Disk Utility, and saving it to the network folder of my choosing, did the trick.
Steps I used to accomplish this:
-Go to Disk Utility and create "New Image"
-Select format w/ MacOSX Extended(journaled) and choose "single partition/GUID" type (or whatever you want)
-Enter a custom size of your disk image (ex in 1GB or 1TB). Click "Create"
* I created this locally 1st and then I copied it over the network, to the network folder/subfolder on my HP Mediasmart Home Server EX495. I found that creating it over the network took too long and would crash Disk Utility.
-After it's copied to your desired location over the network folder, open Automator.
-choose "Application" workflow, double-click to add "Get Specified servers". Enter location of your server (ex smb://hpserver/)
-Then add "Connect to Servers",
-Then add "Get specified Finder Items". Click Add, and locate your disk image file over the network. (this will automatically add the location path. For ex. smb:/hpserver/photos/aperture_library.dmg)
-Then add "Mount Disk Image".
-Then test workflow by clicking on "Run" button on top right of window. If your
Finder->Preferences->General settings on your Mac is set to show "Connected Servers" on your desktop, your disk image will appear on you desktop.
-Finally, save this Application workflow as an application by clicking File menu->Save As. Save this to your documents folder area.
-To have your Mac auto-mount your disk image automatically when you login:
->go to System Preferences->Accounts->your "Admin account name"->Login Items
->click "+" sign and navigate to the Documents folder, to where the Automator application you saved
->click Add. Once done, it will appear on the Login Items area. You can choose to hide it, if you want by clicking the checkbox.
-Now Restart your Mac, and now your disk image should auto-mount.
Hope this helps, as it helped me solve the issue. Too bad one must have to program this and it is not native on MacOSX.

Too many steps. Do this:
1. Go to Disk Utility and create a disk image with the following properties:
Format: Mac OS Extended (Journaled)
Partitions: Hard Disk
Image Format: Sparse bundle disk image
2. Copy the image you just created to the share on the network where it should reside.
3. Open System Preferences, and click on the Accounts icon
4. Select *your account* and click on the Login Items tab
5. Drag the icon for the disk image from the network share into the Login Items list
If a login item is something on a network share, it will reconnect to the share it's located on automatically first.
If a login item is a disk image, the disk image will be opened and mounted.
It's important that the image is a journaled one because if it isn't, being disconnected from it while writing would be potentially disastrous.
It's important that the image is a sparsebundle for two reasons: sparsebundles only take up as much space as they need (e.g., a 1Tb sparsebundle with 100M of data takes up about 100M of space), and they also break the disk down into smaller files. If the underlying filesystem on your network share is FAT32, then no file can go over 4Gb. If you use a sparsebundle, of course, there's no practical limit to how large the disk image can get. Also, it can speed up certain types of backup procedures.
I suggest using partition type "Hard Disk" instead of "1 partition GUID" because, as a disk image, there's no sense in having a partition table or making it bootable (because you can't boot from the image).

Similar Messages

  • Auto Mounting Network Shares

    How would I go about automatically mounting Windows CIFS shares as well as Linux NFS and Samba (SMB) shares on my desktop at login???
    Thanks,
    -brian

    Once they are mounted on your desktop you can drag them onto your login items window in your account preferences.

  • Time Machine and mounted sparse bundle disk image - file by file backup?

    I think I had this system working in Leopard, but upon upgrade to Snow Leopard it seems to have broken. Does anyone have any idea how I can get Time Machine to back up the contents of a mounted sparse bundle disk image in real time - file by file within the disk image? For example, I have a 2GB sparse bundle disk image that i keep all of my bank statements/files/records in. It auto-mounts on boot and stays mounted. I use the disk image to keep it password-protected, so if I unmount it it is fairly safe. In Leopard, I would exclude the .sparseimage file from backup, but it would still backup the mounted image itself on a file-by-file basis, so I could enter Time Machine and explore the image folder by folder, file by file (say I deleted an old bank statement by mistake, I could go into time machine and recover as if it were a normal file/folder).
    In Snow Leopard, after a clean install, and creating a new sparse bundle disk image and excluding the .sparsebundle file, I can't seem to get this to work even though the image is mounted. Is there any way to trick Time Machine into backing up the mounted image as it would any other folder? I know I can back up the .sparsebundle file incrementally but in order to recover a lost document I'd have to remount the old bundle and that seems rather roundabout.
    Thanks,

    I think you're trying to bypass the finder to mount the disk. Try this (I'll bold the key steps):
    - *Turn off Time Machine* in the System Preferences.
    - Option A: If you directly use a hard disk (not wireless) that has the sparsebundle you want to open, *connect the disk* but don't double click on the sparsebundle.
    - Option B: If you are using wireless, this means use shift-command-k (or shift-apple-k), and if it says "Connect As..." in the upper right instead of disconnect, then use that button to *connect to that wireless drive*.
    - Confirm the sparsebundle shows in that folder before proceeding...
    - *Open Terminal* (Applications>Utilities>Terminal.app)
    - Type: *hdiutil attach -noverify* (<-- notice a *space " "* must be included after typing this here but *DON'T hit return* yet.)
    - *Drag the sparsebundle to the cursor in terminal*, and it should fill in something like /Volumes/HardDrive/COMPUTERNAME.sparsebundle for you. Now you can hit return, and the disk will mount.
    - After you are done browsing sparsebundle's mounted image, *eject the mounted disk* like you would any other disk (not the sparsebundle image itself, just the disk icon that appeared if you successfully mounted it).
    - Turn *Time Machine back on* in the System Preferences.
    Hope this helps.

  • Auto-mount network drive?

    Hi all,
    I have a Mac Pro running Leopard and a 1TB Buffalo Terastation on my home network. I am able to access with the Terastation from the Mac by going though Finder. To do so, I have to click on the name of the TS on the left side of Finder and then click on the "share" folder in the next column. This mounts the network share as /volumes/share.
    This is OK but I currently have my iTunes library on the Buffalo TS. However, if my iPod is already docked before I power up the Mac, iTunes can't find its library because the share isn't mounted. I have to manually make Leopard mount the share by the procedure in the above paragraph.
    Is there a way I can get the Mac to auto-mount the network share like I can under Windows or Linux? Since MacOS X is Linux based, can I use the Linux method for auto-mount the share by editing a fstab file?
    Any info will be appreciated. I've tried searching and have tried a few tips but haven't got it working yet.
    Thanks,
    Steven

    I'm not sure if this solution works or not, to be honest.
    I've added my mounted sharepoint to my login items aswell as editing the file you described:
    MacProBU:/MacProBU x url net, automounted,url==afp://admin:admin@"AFP on Tolton2TB.afpovertcp.tcp.local/MacProBU" 0 0
    MacProBU is the name of the Sharepoint and drive, once it is mounted.
    AFP on Tolton2TB.afpovertcp.tcp.local/MacProBU is the location of my sharepoint when I 'Get Info' on my mounted drive.
    My Network drive now seems to mount and be ready to use at login, however a Finder window now opens every time, showing my the contents of the Share.
    Not too much of a problem, but a bit annoying.
    I've read tons of articles about auto-mounting shares, AFP and SMB etc drives
    All seem a bit mis-matched with no idea what's going on. And a lot are complaining about the removal of NetInfo in leopard.

  • Auto-mount network volumes upon changing locations

    As I am shifting my Macbook between office and home and with working in office I need to access frequently into a few network locations which I ended up mounting them regularly manually.
    Any solution on that so I can pre-set what volumes to mount upon changing locations?
    Or perhaps auto-mount network volumes upon joining a particular SSID?

    I'm sure there's a way to Script it, but that being beyond my capabilities, here's how I'd do it using Dynamic mounts...
    Make two New Folders on the Desktop, (Office and Home might be good names).
    After Mounting the Volumes at work, drag the Globe Icons to the Office Folder, after mounting the Shares at home, drag them to the Home folder, (you can even rename them once in the folders).
    Drag those two Folders to the Dock between Applications and Trash to have two popup menus for nearly instant connecting.

  • In Nautilus, mounted network shares not showing up right away

    I've noticed a strange problem recently (last couple of weeks) where my mounted network shares don't always show up right away in Nautilus (side bar or desktop- like they used to). For example, if I manually mount an NFS share in CL to /media/files it won't pop up in Nautilus right away like it used to. It will only show up after several minutes or if I plug in a thumb drive to trigger it to refresh. Also, when my computer is in suspend and I resume it, all predefined network share mounts in fstab that are indeed mounted won't be present in Nautilus upon resuming from suspend (they did before).
    I'm not sure where the problem lies as Nautilus or dbus haven't been upgraded in the repositories recently. I tried looking at recently updated packages but I can't pin it on one that would be causing the problem. I'd like to get an idea of what packages are affected before submitting a bug report. If anyone has any idea on the package I can downgrade no problem and test this further.

    Figured out the last filesystem upgrade from Decemeber is causing this. Bug posted- FS#27851.

  • Auto Mount Network Drives Broken

    Hello,
    I have an automator script setup which auto mounts my server 2008 network shares on my desktop, now having upgraded to lion it will not let me do this, it also wont alow me to connect manually via the "connect drive" option!
    Can anyone point me in the correct area?
    Also i use a mighty mouse to scroll from one web page tot he next, not with lion this does not seem to be a available any help again?
    Ollie

    Is there any way to add a delay of around 60 seconds before the application tries to mount?
    Have you tried the delay verb from the StandardAdditions suite?

  • How to mount network share on lion permanently

    I want to know how to mount a network share from my NAS on mountian lion.
    I have seen and tried the suggestions about using command+k or the "go connect to server" and mounting that way so the password for the share is put into the keychain, then dragging the now mounted share to the system preferences user login items.
    However this isn't satisfactory. It causes windows to pop up for each share that I have when logging in.
    What I Want is for the share to appear as a mounted hard drive in the left navigation column of the finder window. I'd also like to be able to make a shortcut to the share on my desktop (or put it in my dock bar). If it shows up under devices that is perfection okay too, just so it's there somewhere logical.
    The pop up windows simply clutter up the desktop, and if they are closed, then the share is closed too, and then there is a manual process of having to use the very tedious command+k or go connect to server method to connect again.
    I need them to be able to click and open the share. I don't need them wasting time putting in share paswords and the link over and over.. the share should just be there for them as they work through the day. And if they close the folder/window, then it should be easy to get back to it.
    This is possible on windows and I want these mounts to work the same way.
    note: my NAS uses smb

    That should work. You could try deleting the passwords in Keychain associated with it and try it again.
    Another route: Create Applescript:
    Select the network drive and get info on it. Copy the server address. Open up Applescript Editor in the Utilities folder and create a new script. Type in mount volume, add space, "paste server address within quotations", and save as application to your documents. Run it from within applescript editor to verify it works. When it asks for a passwork, save it in Keychain.
    Under system preferences/accounts/login items, click the + sign to add and select the saved application.

  • Mounting an Apple disk image (Intel Mac) under other Unixes/Linux

    Hello,
    I have started my MacBook in HDD Mode and connected it via Firewire-Cable to my "Main-Server" (Slackware Linux 11.0).
    From there i created a "Disk-Image" from my MacBooks HDD using "dd"
    I can mount the disk image within OS X without any problems, but i can´t mount it on the Linuxbox.
    I have used this cmd under Linux : "mount -o loop -t hpfs image.dmg /mnt/tmp" But i am getting an error saying that it doesn´t seem to be a Apple File System Image.
    I have made sure that support for Apple FS is "compiled-in" in the Linux-Kernel. If i do a file image.dmg i get this:
    x86 boot sector; partition 1: ID=0xee, starthead 254, startsector 1, 117210232 sectors, extended partition table (last)\011
    Does anyone know how i can mount this image under Linux?
    Thanks,
    tyrtux.

    I can't offer any solution yet, but here's a bit of information that might prove useful in understanding the problem.
    "mount" on Linux mounts file systems, not disk images. A disk image is just that -- a bit-for-bit image of the sectors on what would be a physical disk. A file system is a portion of a disk structured in a specific way -- a section set aside for managing free space, a "root" directory, etc.
    A partition is a logical subdivision of a disk. Usually, each file system on a disk completely fills one partition; but partitions may overlap, and one partition may contain any number of file systems.
    A disk -- and therefore a disk image -- contains, within its first physical sector, a partition map. The map includes the start sector, size, and type of each partition. The type usually hints at what the file system -- if any -- of the associated partition is.
    When you connect a physical drive to a Linux system -- be it IDE, SCSI, USB, or CD-ROM -- Linux scans the partition table. You can then use mount to get access to individual file systems on the device. When you use "mount -o loop", you are asking mount to connect a loopback device to a file that represents not a disk -- but a file system. This is why your attempt is failing; the disk image doesn't look like a file system, it looks like a disk -- it has a partition table of its own.
    You might be able to map the file to a drive for VmWare, and access it from the virtual machine. Otherwise, I'd hunt around for software that deals with complete disk images, not just file systems.
    Powerbook G4 1GHz   Mac OS X (10.3.9)  

  • Time Machine (OSX) doesn't back up files in Mount Point or Disk Image File

    Hi all,
    I have two disk images which are scripted to be mounted on login. These two disk images are always mounted to the same location. These two disk images are encrypted TrueCrypt volumes.
    Time Machine (TM) will only back up the disk images the first time they are mounted, but not after that. As I modify documents within the volumes throughout the day, the modified timestamps are adjusted properly. However, TM does not back them up. TM never backs up the mount points which are two folders within my home directory.
    Any ideas as to why neither the mount point or the image files are backed up? Do the image files have to be closed (unmounted) after being modified for TM to back them up?
    Now if TM won't back up the image files because they are locked/open, then why does it back them up the first time even though they are mounted? Also, from what I've read, TM should back up any HFS+ drive which is mounted. Both these drives are HFS+, so it should back up the mount points? I can verify this by doing a 'mount' in the terminal, the following is echo'd back:
    /dev/disk0s2 on / (hfs, local, journaled) (Main System Drive)
    /dev/disk1 on /Users/username/Folder1 (hfs, local, nodev, nosuid, journaled, noowners, mounted by username) (First TrueCrypt volume)
    /dev/disk2 on /Users/username/Folder2 (hfs, local, nodev, nosuid, journaled, noowners, mounted by username)(Second TrueCrypt volume)
    Any ideas will help!
    Thanks,
    Chris
    Message was edited by: sleagle328

    Here is the resolution:
    Apparently time machine checks the parent folder's timestamp before moving into that folder to look for modified files.
    So as I was modifying files, the timestamps on the volumes were changing but not the containing directory. Because of this, TimeMachine saw the parent directory had not changed, so did not look for the changed volumes inside.
    So to resolve this, I wrote a simple touch script which touches the parent directory to match the modified volumes timestamp (if there is a modified volume).
    Thanks,
    Chris
    Message was edited by: sleagle328

  • Mounting network share for backup?

    Hi all
    I have WebHelp Desk running on a mac mini (10.6.8 Server) and I want to have it back up to an AFP share on our file server server (Intel Xserve 10.6.8). I can mount the share on the mini, point WHD at it and it backs-up its DB to that share. My problem comes when I log out. Once that log out is done, WHD doesn't see the share any more so the back-ups fail. Leaving the user logged in is one option but is a security risk. Does anyone have a suggestion?
    Thanks!

    Here is how I use a bash script and periodic (for scheduling) to mount a remote disk and perform a database MySQL database dump.

  • Net Use give error 67 when trying to mount network share in Windows PE

    I am trying to deploy Windows 7 Pro by PXE booting Windows PE5 and applying a WIM file over a network share.  The problem that I am running into is that I get an system error 67.  I can ping the server with the network share with both the IP
    and the FQDN, but whether I use the machine name OR the IP I get a system error 67.  I verified that the account that I am using to connect has permissions, but even excluding the user name and waiting for it to prompt me for a user name gives the same
    error.  Any idea what is going on?

    Check : http://social.technet.microsoft.com/Forums/en-US/9c429bef-edf0-4bad-83a3-644e6ba28ea8/net-use-system-error-67?forum=winservergen
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • .dmg's won't mount or create disk image

    I'm using a 17" powerbook. I've had no issues in the past year of ownership with downloads (from Apple site or other). Recently, when I attempt to download a .dmg, the image won't appear on the desktop, however it did download. The download file show's it did download but failed to mount. The desktop shows the failed download as shaded out.
    I am not using any download accelerator or similar product. This problem appears to have started with my most recent system software update from Apple.
    Help and suggestions are appreciated.
    PS - this only seems to apply to .dmg's

    Do you still have some older dmg files that you can check? Will one that worked in the past still work? When you do GetInfo under the section for "Open with" is the application specified as DiskImageMounter? If not, is that application in the drop down list and can you select it? Finally, do you have the application here:
    "/System/Library/CoreServices/DiskImageMounter.app"
    If the application for mounting dmg files is there and you can choose it to open the dmg files, or it is already listed as the choice, you might try using Disk Utility to repair permissions. If the older dmg files work correctly, but the new one doesn't, then something is wrong with the new downloads.
    Francine
    Francine
    Schwieder

  • Running applications and mounting network shares are system boot...

    I have found plenty of User boot tricks for OSX. I am looking for the correct and best way to do 2 things.
    1. I want to run Aptana (a OSX application) which is the bootstrap for the service. Right now I have to manually start the service after rebooting. Where would one start.
    2. I want my server to mount a smb share on startup, I do NOT need boot time access.
    Any help and/or links would be awesome. Google is failing me.

    An applescript application set as a user login item should be a better choice.
    I'm just about to work this out for an SMB mount of a users Windows home (augmented AFP homes are breaking preventing the 'Mount UNC path' option in the AD plugin).
    Post back if you still want info.
    D

  • AppleScript to mount network share & launch application fails on computers

    Hi All,
    I am trying to write a script that I can place in the dock that will perform two actions. The first action is to mount a sharepoint, the second is to launch an application.
    I have been very successful at doing this on my iMac (Intel). The script works under any user.
    However, I have a lab of 26 Mac Minis (Intel) and the script won't work!!
    Here's my script (it's simple!):
    tell application "Finder"
    mount volume "afp://ok-xserve-01.mpcsd.org/Apps" as user name "[user]" with password "[password]"
    end tell
    launch application "Type To Learn 3"
    Of course, I replace the items in brackets with their appropriate values.
    I save the script as an application. When I try to run it on any of the Mac Minis, I get the following error message:
    '"afp://ok-xserve-01.mpcsd.org/Apps" doesn't understand the <<event aevtmvol>> message'
    I've tried it w/o "as user..." and also in the form of "afp://user:pass@server/share" but all returns the error message above.
    I even logged in as the user on one of the lab computers, created the script, and it ran! As soon as I logged off and logged back in, it stopped working.
    These systems, along with my iMac, are bound to an Open Directory & Active Directory, and authenticate via Active Directory.
    I can log in as the lab user on my iMac, and the script will work every time I launch it. It'll work as any user on my iMac.
    Any ideas? If you need more info let me know!
    Thanks!!

    Try putting in the command "delay 30" before the other lines. It delays the script for 30 secs...OSX needs to load before running the script

Maybe you are looking for