Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do you get Photos to work with a NAS Server?

The problem is the way Photos and similar programmes (iMovie, Garageband etc) are configured are for a single user with an integrated database. As such if you try to have more than one user accessing it you are liable to corruption issues. 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. 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. This is why WD MyCloud and other NAS devices can bundle their products with an iTunes server and as such are not liable to corruption issues.


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 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). It is using the same methodology the NAS drive uses to handle Time Machine back ups.


So what do you need to do?


Go to Applications, find the Utilities folder and within that open Disk Utility.

In the Apple menu bar where it says Disk Utility go to File and select Blank Image

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.


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. Hit Save and you should now have a directory set up called Photos.sparseimage.


(Note the first time I did this Disk Utility would not allow me to save directly to WDMyCloud 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. For some reason the next time I opened Disk Utility it allowed me to create a sparse image directly on to my WDMyCloud using my NAS server capacity so I could create the size I wanted.)


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.


Once you have the directory in place you can then copy your Photos Library on to it. Go to your Home directory in Finder, find the folder called Pictures and within that you will find a file called Photos Library.photoslibrary. Simply select this and drag it onto your newly created Photos directory. 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).


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. Next time you open Photos it will remember the last library you opened.


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.


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.


Additionally 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. 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. Next time you log in, the directory will automatically open without your having to select it.


WORD OF CAUTION: I have only been using this solution for 48 hours, but have encountered no issues since adopting it. I found this solution from LaPastenague who posted elsewhere and another user has used this solution for 3 years without reporting issues.


NOTE: This solution simply sets up your Photos so that you can work with the application with the storage on your NAS Drive. Because of the way it has been set up only one user will be able to use the library at a time. Anyone who tries to access it when someone else is using it will receive a message that the directory is locked. This is why it will not result in corruption of the library. If someone else does want to use the library you will have to eject the directory from your computer to give them access. I have put my drive on a public folder so that my wife can load photos independently of me, however if this is not an issue or you want separate libraries for different users then you can set it up under private folders for each user.


Because of the way this has been set up it will not allow other users to share the photos from your NAS drive. Initially I tried to overcome this by uploading the Photos Library onto the Shared Pictures folder on my NAS drive on the basis that users can use the NAS software to view the library. However the WD software is not that smart and the result was horrendous as it created images from all the different ways that Photos organises the library so I had face images, deleted images, thumbnails and a host of others to get around and then no organisation in the photos I wanted to view. As such I have settled on the fact that I need to export the images I want to share into folders, so for example I have created under Shared Pictures a folder called Family Holidays and within this sub folders for each holiday to which I have exported the photos in question. Even this is not ideal as WDCloud sorts according to when the photo was exported as opposed to the date the photo was taken, so you need to think about how you want the photos to appear when being viewed on other devices by the WD software and adopt a naming convention that achieves this. It is laborious but at least then you can allow others to view the photos without risks to the main library or them messing around with the source images. They can always download any of the images if they want to store them locally or edit them.


ADDITIONAL NOTE OF CAUTION: you should now be in a position to delete the Photo Library off your computer freeing up valuable hard space. Note however as soon as you do this that if you use Time Machine your photos will no longer be backed up from your Mac. As such you need to have another disk with which to back up your NAS server. This is the case even if like me you have a NAS with multiple drives in a Raid configuration as whilst that protects you from a disk failure it does not protect you from files being corrupted as they will be mirrored across. I have a WD MyCloud DL2100 with x2 4Tb drives and I think I will buy a third hard drive that I will swap in on a weekly basis against this problem (it also means I will have off site storage capability of my valuable images in case of fire or theft) but also will look to protect the info on a more regular basis using Time Machine to a different device.


I hope this is helpful, this took days of research before I found a solution that worked for me, at one point I had thought that my NAS server was a wasted investment if I was unable to get my digital media files onto it, however I will now be creating separate directories to work with iMovie so that I can start to digitise years of family video tape!


I am not technical so apologies if I have not got the right naming conventions, but hopefully anyone else with a NAS will be saved having to trawl the internet to come to a solution of how to work with Photos, iMovie and similar applications with their NAS server.

Mac mini (Late 2014), macOS Sierra (10.12.6), WD MyCloud DL2100 x2 4TB Drives

Posted on Aug 3, 2017 10:41 AM

Reply
Question marked as Best reply

Posted on Sep 26, 2017 12:41 AM

LN I really don't know what your issue is and as to why you are making this so personal. "Dishonesty"? I am being perfectly transparent in what I am doing and providing a log of issues so that people can make up their own minds. This is a problem that is of no interest to you as apparently you do not use Photos with a NAS server so why are you taking such an aggressive interest?

I have proposed a solution but right from the start I have suggested that people take an independent back up in case they do run into issues. Something that everyone should do in any case with any data that is personal and that they would not want to lose in any circumstance.

Clearly this is not for you, but don't clutter the forum with ill-informed comments when I am providing people an insight as to whether this can provide a long term solution.


I appreciate what you are saying about Apple's official advice but I think that is about trying to network Photos which is not what is being attempted here.

72 replies

Jan 25, 2018 3:24 PM in response to LeighBarton

Leigh,


Thanks for the response. I may give it a try. I already back up daily to my NAS, back the NAS up to external drive and swap external drives weekly (keeping one at the office in the event of fire, theft, etc.) so I feel pretty safe in the event of corruption. Does anyone know of any other software that works like Photos (storage, some limited editing) on a NAS. Ideally, I would like pics and video on the NAS to rid myself of the clutter on my MacBook and give my wife and I access to our pics from either of our machines. Seems like a simple request...

I used to have a WD MyCloud, had tons of problems getting the time machine backups to work, along with backing up the NAS itself. I finally got rid of it and went with Synology. Haven't had any issues with them. Quality product.

Jan 25, 2018 3:40 PM in response to Dcgraham

Ideally, I would like pics and video on the NAS to rid myself of the clutter on my MacBook and give my wife and I access to our pics from either of our machines. Seems like a simple request...


It seems so, but there are a lot of technical issues. What's your budget?


Lightroom will do this, but the catalogue must be on the Mac(s), but you can store the master files on the NAS. That would mean your wife and you could actually have independent libraries.


Other apps that don't use a full catalogue worth checking out: Mylio and OnOne Photo Raw.

Jan 26, 2018 1:23 AM in response to Dcgraham

I think you'll find Terence and I have a very civilised discourse its Larry that you need for the banter! However Lightroom does sound potentially interesting and a better solution to use with a NAS than Photos so I will also take a look. My WD DL2100 works with Time Machine it just drops out every now and then which is an irritant (I have to restart the Mac) but not fatal.

Jan 27, 2018 6:59 PM in response to LeighBarton

Hey LB - awesome for you to do this as that would be what a back up system without iCloud should be used for!

Yes apple does always suggest one way or another, however sometimes it’s a little too restricting...

Same with with the itunes syncing.. ugh..


Anyways, my setup.

I actually haven't been using the remote drive on the NAS as my wifi performance isn't great. Though...

MBP1 > NAS (via BTSync/ Resilio) > MBP2. Photo library is still on MBP1 and gets synced to NAS and MBP2.


Had corruption issues where keeping iphoto libraries open without closing and where i tried to open before BTSync finished. 😉. wasn't the end of the world...

Jan 28, 2018 3:43 AM in response to Yer_Man

TD... yes there is a level of risk that someone needs to take. If anyone reading this is not comfortable with it, then suggest they do not try. I do believe, just scanning through this entire thread people have been a little negative to the thread and I can understand why (- who wants to loose their photos and also deal with this). BUT...

if someone has a stable way - why not try..


Anyways, my system is stable for the last 3 months since using this method.


I don't thank Photos is not built to be used simultaneously so hence there are instances, where you have these kind of issues.. but... hey, I have 2 Macs, it is a PITA to keep photos, iTunes in sync so you learn to work/ deal with it..

good luck to you all.

Jan 28, 2018 5:01 AM in response to jimmy.okere

Jimmy

Thank you for sharing your experience, I think the key is to ensure you only have one instance of Photos open at any time as such you are not using it as a multiple access database which Photos was never designed for. However with the Photos taken off the library and set up in their own folder these can be accessed by anyone from anywhere connected to your network. I am still working through my library when I have time. A good exercise in itself as it is all too easy to dump photos on to your drive and never look at them again!

Jan 28, 2018 5:55 AM in response to jimmy.okere

if someone has a stable way - why not try..


I laughed when I read that, sorry. But you don't have a stable way... after all:


Had corruption issues


But if you really want to keep two libraries in sync without going over the internet, check out Mylio, it is really good at that - syncing across your own home network, and it can share to iPads and iPods as well. Install Mylio and set up your Library on one machine. Install Mylio on the other and then log in and let them sync. I have it working perfectly here - on first go too. And it is two-way syncing - you can add to either library and wait a bit and it shows up on the other machine. It offers iPhoto level editing, but you can use any photo editor you choose if you want more bang than that.


Oh, and I'm not 100% sure but I think Mylio is comfortable storing masters on the NAS too. It certainly works here on externals.


Seriously. Check it out.


Standard disclaimer: I have no beneficial interest in Mylio (or indeed, any other software).

Jan 29, 2018 3:49 PM in response to Yer_Man

I started using Synology's Moments application over the weekend. I believe it only works with their NAS's. Very similar to Google's system. Facial recognition, smart albums, etc. So far, so good. I've only gotten about 50g up so far as it takes some time for the NAS to index the photos. Only drawback is that there is no editing feature, but that is minor. I can always use Photos for that, then move the pics to the NAS.


The program is new. Has anyone tried it out?

Jan 29, 2018 11:02 PM in response to Dcgraham

I'm not familiar with it, but if it works for you then good. Only thing to bear in mind is that it should work with standard metadata. As for the lack of editing best to use a Photo Editor rather than Photos. Using a DAM like Photos only for editing wastes disk space and get you into a convoluted Import/export workflow.

Feb 28, 2018 2:53 AM in response to Dcgraham

Hello,

I want to save my pictures on a safe place and for that reason I want to store them on a NAS server.

So far I have been using "Photos" for mac but I'm afraid to loose all of my pictures.

Furthermore, I've seen that some NAS server allows me to see the pictures on smart TVs.


I guess that in order to move my pictures from "Photos" to NAS server I need to:


1) export all albums created so far in separate folders (I don't have any idea about where "Photos" saves my albums on disk) to store them on NAS server


2) find an alternative software to create quick slideshows as "Photos" does


3) find another software that keeps track of pictures which where already imported from my camera of mobile as "Photos" does


Last but not the least, it could be nice if this software allows me to associate the folders to album so that I will not need to create a local copy of pictures.


Hope you can help me.

Best regards

GP

How do you get Photos to work with a NAS Server?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.