Help - Search - Members - Calendar
Full Version: Prevent Windows HD from mounting in OSX?
InsanelyMac Forum > Apple World > OS X > Boot Camp
Adrian Fogge
Is there a way to prevent the Windows HD from mounting at login in OSX?

Frankly, I would rather not see any hard disk icons on my desktop, but it is one of those things where "why not" comes into play.

The point is that if I can not rename the drive to something other than "Untitled", then I do not want to see it, because the only reason why I have an XP installation in the first place is to play a little HL2, CS:S and Eve.
NeSuKuN
you CAN rename the drive, just rename it under windows.
Rammjet
To change the name of your Windows partition:
If your Windows partition is formatted as NTFS, you must change its name only in Windows since OSX cannot write to it.

If the partition is FAT32, you can change the name of the partition just like anything else:
click on the icon, press <Enter>, type name, press <Enter>.

You can stop ALL drive icons from appearing on your Desktop:
Finder menu -> Preferences -> General -> UNcheck the "Hard Disk" box

To access your hidden drives/partitions, click on the Finder icon in the Dock and select the disk/partition in the left pane.

If you only want to unmount the Windows partition, then use Terminal (in Utilities folder) to create a system file called rc.local.
Type this in Terminal:

CODE
diskutil list                           <-- get the Name of the Windows partition
                                          - I'll assume it is "Untitled"

sudo nano /etc/rc.local                 <-- 2 slashes in there, don't lose one
   (give password)

diskutil unmount "/Volumes/Untitled"    <-- use correct name there
                                          - use quotes if name has spaces
   (press Control-O to save)
   (press Y and then Enter to accept)
   (press Control-X to exit)

Then reboot.

Since the partition is unmounted, you will not be able to browse Windows files from OSX.
alloutmacstoday
nice, that works very well
sashabe
Doesn't work on Leopard. It hides chosen partitions immediately, but they appear again after reboot.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.