System Root: All normally hidden folders are visible

On my MacBook Pro, after installing Leopard (erase and install) all of the usually hidden folders in the system root partition are visible. This includes /usr/, /sbin/, /private, /tmp, /etc, /var, /mach_kernel, etc. I was able to hide the majority of them by using SetFile from the Developer Tools, but I can't seem to hide /tmp, /etc, and /var, all of which show up as aliases/symlinks.
If anyone has a fix for this, help! I don't want to have to reinstall Leopard already.

MacBook Pro C2D 2.2, 2GB RAM, 120GB HD, Mac OS X (10.5)

Posted on Oct 26, 2007 11:31 AM

Reply
32 replies

Oct 26, 2007 1:31 PM in response to JGB5

The same thing happened to me. I don't know why, but I used the same method I used before when I had hidden files that were visable:

Create a new plain text file in TextEdit. List the names of each file/folder in your root directory that should be hidden. Save the file to the root of your HD and name it .hidden

TextEdit will probably say something about file beginning with a dot are reserved for the system, just continue.

The .hidden file (which itself is hidden) was used up until Tiger as one of the three ways to hide important system files. Although the use of the .hidden file was discontinued in Tiger, the Finder still respects it therefore the files listed in it will be hidden.

Hope that helps.

Oct 26, 2007 5:17 PM in response to bcr88

Thanks for that hint... I'll try that out if nobody can come up with a FIX for what happened here. I'd rather not do some workaround when something in the system is obviously out of wack... and given that my other macs don't exhibit the problem. seems like there ought to be a way to get the OS back to normal by undoing whatever got messed up here?

Oct 26, 2007 9:46 PM in response to bhagemann

I've got the same issue. The folders/files became visible after installing Leopard and using migration assistant to move my files over.

I searched around and discovered that .hidden is obsolete though OS X will honor it if it's there. I believe that OS X starting with 10.4 uses Launch Services to determine what needs to be hidden. I've tried resetting Launch Services by deleting Library/Caches/com.apple.LaunchServices* and ~/Library/Preferences/com.apple.LaunchServices.plist restarting then emptying the trash, but the files are still visible!

Oct 27, 2007 2:24 PM in response to SWL

SWL wrote:
Has anyone found a valid solution to this?


I think my solution is valid, unless you want to try and reinstall the OS. It's not tricking the system into doing something it shouldn't, It doesn't affect the files in any way, and it took me like 3 minutes, so now I can move on to bigger, better things... or something like that.

Oct 27, 2007 11:35 PM in response to JGB5

I had the same problem on my rev1 PowerMac G5.

I did an Erase and Install and could see all the normally hidden files at the root of the drive, I tried repairing permissions, which didn't seem to work correctly and took over 20 minutes with no progress bar, I restarted, that didn't work either.

What fixed the problem was an Archive Install with Preserve User settings. Everything is fine now.

I was prepared to erase the drive and reinstall, but the Archive worked.

Oct 27, 2007 11:51 PM in response to JGB5

I finally fixed this problem by running:

sudo /Developer/Tools/SetFile -a V /bin
sudo /Developer/Tools/SetFile -a V /cores
sudo /Developer/Tools/SetFile -P -a V /etc
sudo /Developer/Tools/SetFile -a V /mach_kernel
sudo /Developer/Tools/SetFile -a V /private
sudo /Developer/Tools/SetFile -a V /sbin
sudo /Developer/Tools/SetFile -P -a V /tmp
sudo /Developer/Tools/SetFile -a V /usr
sudo /Developer/Tools/SetFile -a V /Volumes
sudo /Developer/Tools/SetFile -P -a V /var

then deleting /Library/Caches/com.apple.LaunchServices* (2 files) and rebooting.

Most of the files/folders became invisible right after running SetFile. The symbolic links (/etc, /tmp and /var) became invisible after the reboot.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

System Root: All normally hidden folders are visible

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