PDA

View Full Version : Hidden Network Share




gizmotek
Nov 28, 2012, 06:17 PM
Hello all, first time posting.
I'm having an odd issue with my server. I have a Mac with OSX 10.8.2 Server installed, that shares a RAID drive via AFP to a couple other macs. It's worked flawlessly for the last few months, until a couple days ago. I rebooted the server, and the shared drive was no longer on the desktop or in the finder sidebar! I immediately freaked out, and went to the disk utility. Sure enough, it was there and mounted. I checked the server's finder preferences, and nothing changed there either. I looked in the /Volumes folder, and no drive.
But, here comes the interesting part. If I specifically go to /Volumes/MyDrive using 'Go to Folder', it shows up! But it is grayed out, like a hidden file (like the home library folder is).

What's more, the same thing happens when you mount the drive from another computer, it shows up as hidden. Which means no icon on the desktop or in the sidebar for the networked computers either.

Any thoughts on what I might have done to create this problem? I'm at a loss.



motorboating
Nov 28, 2012, 09:40 PM
Using terminal, can you inspect the directory under /Volumes at all?

gizmotek
Nov 29, 2012, 01:28 AM
Just checked, I can get in the volume using Terminal too, with everything visible.
It's just Finder that refuses to see it, all other programs (Disk Utility, Terminal, even recent documents in Word) can see the volume just fine. It's bizarre.

switon
Nov 29, 2012, 08:43 AM
Hi gizmotek,

Have you killed the Finder? I would start by killing all Finders from the Terminal:

killall Finder

This should kill all Finders and restart them. You should notice that all of your desktop disk icons should disappear momentarily and then reappear. Does the "hidden" drive now appear? If not, then I would check the permissions on the problem drive. Do you have read and write access? If you do, then the next thing I would do is to reboot both machines and the RAID drive: first reboot the RAID drive, then the machine that shares the RAID drive, then lastly your computer. It is possible that your server has fouled up its AFP service and thus rebooting may fix this.

Let us know what happens.

Regards,
Switon

gizmotek
Nov 29, 2012, 11:29 AM
I've restarted a few times now to see if I could resolve it, and reinstalled the RAID drivers without any change. I'm beginning to think if it's permission related too. I tested sharing a subfolder on the SAN, and it shows up normally to the client computers. Is there an easy way to reset permissions on a volume via a terminal command?

switon
Nov 29, 2012, 04:27 PM
Hi,

Yes, you can use chmod and chown to reset the owner, group, and permissions. If you use the -R option, then the permissions are recursively propagated down the subdirectory hierarchy. See the man pages for these commands for further information. Be careful that you do the right thing before proceeding. An example of the type of commands you will use is:

chmod -R ug+rw .[A-z]*
chmod -R ug+rw [A-z]*

The first command is required since all files that begin with a dot (.) will not be picked up by a simple star (*) wildcard under the bash shell, thus you must specify them with a separate command.

There are also finer-grained ACL permissions commands too.

Good luck,
Switon

P.S. Just to let you know, you can also get Mac OS X Server to alter the permissions for you from the File Sharing pane of the Server.app. If you use this method, be careful to wait long enough before killing the Server.app for it to finish changing all of the permissions throughout the entire volume's directory hierarchy --- this can take quite a long time.

gizmotek
Dec 3, 2012, 09:09 AM
Well now I'm feeling sheepish. I figured out the problem, and I only had to look up hidden file attributes. Thanks to this thread:
http://forums.macrumors.com/showthread.php?t=843620
I just ran that on /Volumes/MyVolume, and voila! Everything appears to be working great now. Not sure how the hidden flag got put on my volume, but there it is. Thanks for working through this with me!

mwhities
Dec 3, 2012, 09:34 AM
Well now I'm feeling sheepish. I figured out the problem, and I only had to look up hidden file attributes. Thanks to this thread:
http://forums.macrumors.com/showthread.php?t=843620
I just ran that on /Volumes/MyVolume, and voila! Everything appears to be working great now. Not sure how the hidden flag got put on my volume, but there it is. Thanks for working through this with me!

Thanks for posting a fix for it. I like to read these and I save the info in my lil 'notes.