MacOS – PDF “is damaged and can’t be opened” on mounted drive

macosmount

I have a late 2013 MBP, OSX v10.10. I have a drive mounted via ssh tunnelling. The basic command looks like:

alias mountCS='ssh -f useru@host1 -L port:host2 -N ; sshfs -p port user@localhost:remoteDir /Users/User/mnt/CS'

While ssh'ed in to the same remote host I created a pdf from latex. When I try open to take a peek from mounted dir I get the error "“results.pdf” is damaged and can’t be opened. You should eject the disk.". However, this happens with R pdfs too. If I simply copy it to a local directory it opens fine though. Odd right? When I first set this sshfs mount up, it didn't do this.

Best Answer

When this happens to me, I delete the ._results.pdf file, and then I can open it from the mounted directory.