QUOTE (Adrian Fogge @ Nov 30 2006, 08:49 AM)

Is there a way to prevent the Windows HD from mounting at login in OSX?
This is how I did it:
(Snipped from this
tutorial)
To toggle the invisibility bit of a single file, however, you?ll again need help from Apple's Xcode Tools software. This time you need a Unix program called SetFile. You'll find it, together with a collection of other Unix software, in the /Developer/Tools directory.
By default, the software in the Tools directory will not run simply by typing the name of the program (there are many ways to resolve this inconvenience, but that's a subject for another article). Here's the quickest and easiest way to put SetFile in action and use it modify a file's invisibility status:
- Launch Terminal.
- Open the /Developer/Tools folder in the Finder. Locate SetFile and drag its icon to the terminal window. The Directory path for SetFile (/Developer/Tools/SetFile) should appear in the Unix command line prompt.
- Type: -a V . Leave a space after the upper case V.
- Locate the file that you want to make invisible. Drag its icon to the Terminal window. Its path should now be added to the same command line prompt.
Thus, for our aforementioned MyDoc file on the Desktop, when you are done doing all of the above, the command line should look like this:
/Developer/Tools/SetFile -a V /Users/homedirectoryname/Desktop/MyDoc
where
homedirectoryname is the name of your home directory (mine is
landau, for example).
Now, press Return. This immediately
enables the invisibility bit -- although, just as when doing this with XRay, the file will not actually turn invisible until the Finder is relaunched.
To reverse directions with SetFile, you do almost the same thing with two exceptions:
- Use a lower case v instead of an upper case V. This disables the invisible bit.
- Since you can't drag an invisible file's icon to the Terminal window, you'll need to know the file's path. If you haven't moved it from its prior location, the path is the same as the one that you used when you made the file invisible. Just retype it.