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
Question marked as Best reply

Sep 26, 2017 12:41 AM in response to LarryHN

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.

Sep 26, 2017 2:15 AM in response to LeighBarton

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.


It's not about sharing, read exactly what is said:


Storing your library on a network share can lead to poor performance, data corruption, or data loss


Emphasis added. What are you doing when you put the library on a NAS? You're putting a database designed and constructed for a Mac on what is, most likely, a computer that runs a cut-down version of Linux. So, on a different disk structure on a different OS. That it works at all is a fortunate happenstance. Long may it last. Just don't be surprised when it fails.


I think that if you want to continue to explore what you're doing it would be important to continually emphasise the comprehensive multi-layered back up strategy you have. You do mention it but only inter alia. Bring it front and centre when you report back.


That would mitigate the risk to inexperienced users who don't read all the thread...

Aug 3, 2017 2:50 PM in response to LeighBarton

The answer is very simple - it may appear to work in the short term but hundreds of posts here show that it will not work long term


Photos will not work with a NAS - the library MUST be on a local drive formatted Mac OS extended (journaled) connected with a fast wired connection and not used as a TimeMachine backup volume - Where is it safe to store a Photos Library? Requirements for the external drive


LN

Sep 25, 2017 9:07 AM in response to LeighBarton

Presenting the facts is not "naysaying"


Apple has documented that a NAS is NOT an appropriate location for the Photos (or iPhoto) library and many users have experienced problems trying it - you certainly are welcome ot do what ever you choose to do but you are taking a big risk and any future reader needs to know that is is not a safe thing to do

Sharing photo libraries among multiple users - Apple Support


A few excerpts

To share your photo library, you need to move the library to a volume where ownership is ignored.

Connect an external USB, FireWire, or Thunderbolt drive which has enough free space to contain the library.
Be sure to choose a locally mounted drive. Storing your library on a network share can lead to poor performance, data corruption, or data loss.

Select a volume you're not using with Time Machine as the destination of your shared library.


You choose to do it so go ahead, just be warned that it is very likely that you will have problems (and very possible that by the time your problems show up al of your backups will be corrupted too)


No one here cares what you do - we care that you are given the correct information so that the consequences of your decision are totally on you and that other readers have the correct information so they do not make a bad decision due to lack of correct information


LN

Dec 30, 2017 7:04 PM in response to dhunter51

dhunter51 wrote:


My families' four Time Machine backups are written to a networked RAID NAS. So is my Photos Library (each is a separate volume on the NAS) and our single iTunes Library folder- are you saying i should move my Photos Library back to a USB direct-conneced drive, and back it up to the NAS via Time Machine?

Yes - as posted a few times in thread a NAS is not a place to have your Photos library and you are very likely to have issues if you do use a Photos library on a NAS - this article which has been linked to several times in this thread tells where it is safe to have the Photos library - Where is it safe to store a Photos Library? Requirements for the external drive - a NAS is not a safe place


LN

Feb 28, 2018 11:14 AM in response to Giacomo Paggi

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


A NAS server is not significantly safer than anywhere else. If you want your photos protected you need them backed up to multiple locations, ideally at least one off site.


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


Correct. Photos does not save your albums to disk. Like all Digital Asset Managers - Photos, iPhoto, Lightroom et al - albums are virtual. They are entries in a database. There is no corresponding folder on the drive. What you're doing is going from a photo management system - something designed to leverage standard photo metadata - to a basic file system.


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


iMovie is on every Mac sold.


Others, in order of price:


PhotoToMovie $49.95 PulpMotion $129 FotoMagico $99 Final Cut Pro X $299


It's difficult to compare these apps. They have differences in capability - some are driven off templates. some aren't. Some have a wider variety of transitions. Others will have excellent audio controls. It's worth checking them out to see what meets your needs. However, there is no doubt that Final Cut Pro X is the most capable app of them all. You get what you pay for.


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


You won't get that. That requires a database and you're moving to a system that has no database.

Aug 3, 2017 4:20 PM in response to LeighBarton

Using a correctly formatted sparse DMG on a NAS will solve the disk format issues. However, it does not deal with the other issue: drop outs from a network location. If one occurs while the app is writing to the disk, then you'll have a corrupted library.


And yes, there are occasional reports of folks having such set ups for years with no issues. Similarly, people can drive without using a seat belt for years. The unfortunate reality is that you only need one accident to teach you the folly of that...

Aug 21, 2017 3:54 AM in response to LeighBarton

Just to update, 3 weeks in and apart from having to re-boot my NAS Drive because TimeMachine had lost the connection (no back ups affected) I have had no issues so far with the above set up. I'll report again periodically on this issue.


In response to Terence this is not like driving without a seat belt saying it hasn't caused me any problems. I have everything backed up so if you are correct and the library becomes corrupted because of timing out issues over a network, I am in a position to restore to my last back up. Also partitioning the disk in this way is creating a local disk as far as the Mac is concerned. However we will see, I will report any issues I encounter along the way if and when they occur, however to all you naysayers I have to say that having had a Photo application that was totally inoperable with my NAS drive to having one where it is working seamlessly is at the moment a blessed relief.

Sep 25, 2017 10:01 AM in response to LarryHN

LN


It may not interest you but during my research of this issue I came across many users who faced exactly the same problem who were struggling for a solution. I have an offline back up (in addition to time machine) that I manually update once a week, and therefore it is highly unlikely that I will have a corrupted back up should the apocalyptic scenario that you predict happen as I use Photos on a relatively frequent basis.

The reason I am giving these updates is because you and a few others suggest this is not an advisable solution, I am giving honest feedback loop as to whether the solution does create the issues threatened. As stated the user who put me on to this has used it for 3 years without a hitch. Rather than constantly denigrate why not wait to see if you are right. Other readers are capable of making their own judgements. But nothing in what you have posted suggests a reason why it should fail other than stating that putting it on a network share is an issue. What you don't comprehend is that this solution turns part of your NAS into a local drive. As such I am not networking the Photos database for multiple users at the same time which as we have established is a single user database. This solution allows Photos to be used using the storage capacity of a NAS without buying a separate local hard drive.

Unless you have something more to contribute to the debate I suggest you just wait to see if I crash and burn with no doubt much relish and I told you so waiting in the wings. Otherwise get ready for the humble apologies if I am still posting in 3 years without an issue!

Sep 25, 2017 3:39 PM in response to LarryHN

LN

Point me towards some of these users experiences who have used this solution. I am not advising anyone to act recklessly but rather to approach this with caution precisely because of the advice given by others. Hence my use of a manual back up in case detractors of this solution are proven to be right. However I will continue to post my experiences of using this set up to help others make up their own minds - nothing irresponsible about it.

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.