Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.5: A fix for hidden Unix files showing in file system root System 10.5
Have you just reinstalled Mac OS X Leopard? Are you one of the unlucky ones that now has visible Unix files in your root file system? I sure did, and after digging around a little, it seems to be a bug in the Mac OS X installer -- but it only happens when you install a clean copy of Leopard (not updating). The question however, is how to get rid of them.. Obviously, deleting the folders is NOT an option.

Here's how you hide them:
  1. Insert your Leopard DVD
  2. Choose Open Apple Install Discs in Pacifist
  3. Choose the Leopard DVD
  4. Find and Extract the following two files to a directory of your choice:
    • Resources » OSInstall.mpkg » OSInstall.pkg » Scripts for hidden_MacOS9
    • Resources » OSInstall.mpkg » OSInstall.pkg » Scripts » Tools » SetHidden
  5. Open Terminal and cd to the folder you extracted the files to.
  6. Run this command sudo ./SetHidden / hidden_MacOS9.
  7. Enter password and reboot your Mac once the command has executed.
After rebooting, the unix folders and links should now be hidden from the root file system again, just like in Tiger.

[robg adds: I did a clean install on one of my machines, and didn't see this bug. However, I have seen it reported elsewhere, so here's one possible fix.]
    •    
  • Currently 2.80 / 5
  You rated: 3 / 5 (5 votes cast)
 
[34,147 views]  

10.5: A fix for hidden Unix files showing in file system root | 9 comments | Create New Account
Click here to return to the '10.5: A fix for hidden Unix files showing in file system root' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: A fix for hidden Unix files showing in file system root
Authored by: ocdinsomniac on Nov 20, '07 08:26:27AM
This problem exists in Tiger as well:
http://docs.info.apple.com/article.html?artnum=301677

-systemsboy

[ Reply to This | # ]
10.5: A fix for hidden Unix files showing in file system root
Authored by: rammjet on Nov 20, '07 09:17:37AM
Leopard (and Tiger) already comes with a Unix command to hide (and unhide) files and folders.

Go to Terminal and type:
sudo chflags hidden <file/folder to be hidden>
use "nohidden" instead of "hidden" to unhide a file or folder

No need to reboot, this takes effect immediately.

[ Reply to This | # ]
10.5: A fix for hidden Unix files showing in file system root
Authored by: ppp on Nov 20, '07 01:12:18PM

I have the folders "~", "dev", "net", and "home" on my Leopard Server installation.

The sudo chflags hidden /~ worked, but I get a Permission denied error, even su root, for the other items.

If I Get Info on any of these items (sym links to their /private/ location), they disappear, only to reappear the next time I click on the boot volume in the Finder.



[ Reply to This | # ]
10.5: A fix for hidden Unix files showing in file system root
Authored by: ratz on Nov 20, '07 10:00:11AM

I did a clean install of Leopard and I don't have this problem?



[ Reply to This | # ]
10.5: A fix for hidden Unix files showing in file system root
Authored by: earthsaver on Nov 20, '07 10:00:29AM

The chflags command works for all but the three symlinks: etc, tmp, and var. What to do about them? Unfortunately, for some reason, my OS Install disc (restored to a hard disk partition) suggests that there is no such directory as Contents inside either OSInstall.mpkg or OSInstall.pkg, and I'll have to wait until I have access to a disc again to make this work.

Other ideas?

---
- Ben Rosenthal
PBG4 1.25 - Leopard



[ Reply to This | # ]
10.5: A fix for hidden Unix files showing in file system root
Authored by: Scaramanga on Nov 21, '07 02:20:09AM
The chflags command works for all but the three symlinks: etc, tmp, and var. What to do about them?

If you have installed Developer Tools, you can use SetFile:

/Developer/Tools/SetFile -P -a V /etc

Bye, Scaramanga.



[ Reply to This | # ]
10.5: A fix for hidden Unix files showing in file system root
Authored by: ppp on Nov 20, '07 06:38:51PM

I have the folders "~", "dev", "net", and "home" on my Leopard Server installation.

The sudo chflags hidden /~ worked, but I get a Permission denied error, even su root, for the other items.

If I Get Info on any of these items (sym links to their /private/ location), they disappear, only to reappear the next time I click on the boot volume in the Finder.

I have tried this hint, and it didn't work. I was able to use Pacifist 2.5.1 to retrieve the script and Tool. The /home and /net directories are not in the script, and I get this error for /dev:

"/dev": FSPathMakeRefWithOptions returned -35




[ Reply to This | # ]
10.5: A fix for hidden Unix files showing in file system root
Authored by: pheed on Nov 20, '07 09:50:34PM

Another thing you can do is create a file called .hidden in the top level of your hard drive.

Open Terminal
cd /
nano .hidden

Now type in the names of every file, symlink and directory you'd like hide. Hit return after each line. Control+o to save the file. Now log out and log back in. The files will be invisible. Enjoy!

---
E-mail me: moc.cam@deehp



[ Reply to This | # ]
10.5: A fix for hidden Unix files showing in file system root
Authored by: plaidpixel on May 02, '08 05:06:10PM

THANK YOU -- This worked great.

I talked to 4 nice folks at Apple before stumbling across this hint.

What is weird is that this bug doesn't present itself every time you install -- even on the same machine from the exact same discs. Interesting...

Thanks again!



[ Reply to This | # ]