If someone else does want to use the library you will have to eject the directory from your computer to give them access. This is why it will not result in corruption of the library. Anyone who tries to access it when someone else is using it will receive a message that the directory is locked. Because of the way it has been set up only one user will be able to use the library at a time. NOTE: This solution simply sets up your Photos so that you can work with the application with the storage on your NAS Drive. I found this solution from LaPastenague who posted elsewhere and another user has used this solution for 3 years without reporting issues. WORD OF CAUTION: I have only been using this solution for 48 hours, but have encountered no issues since adopting it. Next time you log in, the directory will automatically open without your having to select it. Simply go to System Preferences/Users & Groups, then select your profile and click on LoginItems, then drag the folder in which your Sparse Image is contained on to this and then your sparse image and then close the window. One added refinement if you go to the Photos preferences and select your new library as the System Photo Library then you will also be able to use it with Cloud services if you use these.Īdditionally if you use Photos reasonably frequently and therefore always want access to the directory you can get the directory to open automatically on Log in. One thing you will need to remember is always have the directory open before you open the Photos Application otherwise it won't be able to see the library. Next time you open Photos it will remember the last library you opened. Once the copying is complete open the Photos application holding the Alt/Option key and, if it is showing, select the library in your Photos directory, if not choose Other Library and browse for it that way. Depending on the size of your library it will take time to copy across - it took about 30 mins for me to copy across a 100Gb file, but of course times will be dependant on your set up (I am directly connected via ethernet to my NAS). Simply select this and drag it onto your newly created Photos directory. Go to your Home directory in Finder, find the folder called Pictures and within that you will find a file called Photos Library.photoslibrary. Once you have the directory in place you can then copy your Photos Library on to it. If you now double click on the Sparse Image you created it will create a directory called Photos (or whatever name you gave it) on your desktop. For some reason the next time I opened Disk Utility it allowed me to create a sparse image directly on to my WDM圜loud using my NAS server capacity so I could create the size I wanted.) (Note the first time I did this Disk Utility would not allow me to save directly to WDM圜loud and as I had limited file space on my Macmini (which is why I wanted to move my photo library in the first place) I created a small sparse image, dragged it over to the drive and then deleted it. Hit Save and you should now have a directory set up called Photos.sparseimage.
#HOW TO ACCESS PHOTO LIBRARY ON MAC FILE LOCATION FOR MAC OS#
Now select where you want your image file to be saved on your NAS (I saved it in the Public folder) give it a name (I called it Photos), state the size you want the image file to be (I gave mine 500GB) and make sure it is Formatted for Mac OS Extended Journal. Then where it says Save As make sure the small arrow is pointing up so that you can see the directories of where things are. In the Apple menu bar where it says Disk Utility go to File and select Blank Image Go to Applications, find the Utilities folder and within that open Disk Utility. It is using the same methodology the NAS drive uses to handle Time Machine back ups. This enables the Mac to treat it as a local drive as opposed to a NAS, and will provide reasonable access times (at least it does with my library of some 75k images and 420 videos). The solution is to create a sparse image which is a way of partitioning the disk and formatting it, and then placing your photo library on to this. This is why WD M圜loud and other NAS devices can bundle their products with an iTunes server and as such are not liable to corruption issues. Note this is not a problem for iTunes because it manages its database in a different way in that the content is not bound into the library. By putting the photo library on a NAS server you effectively provide multi access to a single user database, and to compound the issue the way that NAS disks are formatted is different from Apple creating further problems increasing the likelihood of file corruption. As such if you try to have more than one user accessing it you are liable to corruption issues. The problem is the way Photos and similar programmes (iMovie, Garageband etc) are configured are for a single user with an integrated database.