So, you’ve installed Apple’s Boot Camp, partitioned your hard disk, installed Windows XP, but now you have the Windows volume showing up on your Mac desktop. You can hide it (but keep access to it), by doing the following:
Using a command-line tool called “SetFile”, you can mark the volume’s mount point as hidden. SetFile allows you to set attributes of files and directories from
First, install the Developer Tools from your OS X installation disk that came with your computer. This will install oodles of cool noodles in /Developer.
Launch Terminal.app, which is housed in the “Utilities” folder within the “Application” folder.
All mounted volumes show up in /Volumes (flash drives, USB drives, Firewire drives, internal, CDs, DVDs, etc.). Display the directory by issuing the following command within Terminal.app:
ls -al /Volumes
My Windows XP partition is named “Untitled”. A directory listing of my /Volumes directory shows:
drwxrwxrwt 5 root admin 170 Mar 6 18:22 .
drwxrwxr-t 34 root admin 1258 Mar 6 11:29 ..
drwxr-xr-x 28 cbrewer cbrewer 1054 Mar 5 09:57 Data
lrwxr-xr-x 1 root admin 1 Mar 6 11:29 Hard Drive -> /
drwxr-xr-x 1 cbrewer cbrewer 0 Jan 14 2006 Untitled
Hiding the “Untiltled” volume is a snap. Again, from Terminal.app, issue this command:
/Developer/Tools/SetFile -a V /Users
Thanks to readers Epimenide and Kodafox for pointing out that the above code was hiding the /Users directory. Sorry for the confusion! The corrected form is:
/Developer/Tools/SetFile -a V /Volumes/Untitled
Now, you will need to restart Finder to have it re-read the attributes of the “Untitled” mount point. You can do this by either rebooting your Mac, or simply by issuing the following command from the Terminal.app: