Hide your NTFS Boot Camp Partition
Before you start, ensure you read this whole post carefully, including the word of warning near the bottom of the post. I accept no responsibility if this screws up your computer in any way.
These instructions are based on Mac OS X 10.5.
Once you’ve installed Boot Camp on your Mac, assuming you used NTFS as your chosen file system during the install, you’re now stuck with a redundant icon on your Mac desktop. While you can’t write any files to the partition from OS X, you can read the files. But how useful is that to you? If, like me, you don’t need access to that partition, you may want to hide it from view. You can do this very simply, by booting into Windows and renaming your C: drive to something that begins with a full stop (or period) eg: .Windows
This is a bit of a kludgy hack. OS X (like most Unix based operating systems) assumes that all files beginning with a full stop are designed to be hidden. The partition does still get mounted though, and shows up in various other places inside the OS.
If you’re feeling more adventurous, a better way to do it is to stop the partition from being mounted altogether. To do this, you need to dive into the Unix underpinnings of OS X and edit the fstab file.
Open up a terminal and type
diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *232.9 Gi disk0
1: EFI 200.0 Mi disk0s1
2: Apple_HFS 240 GB IDE 151.9 Gi disk0s2
3: Microsoft Basic Data Windows 80.7 Gi disk0s3
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: Apple_partition_scheme *465.8 Gi disk1
1: Apple_partition_map 31.5 Ki disk1s1
2: Apple_Boot Boot OSX 128.0 Mi disk1s2
3: Apple_RAID 465.6 Gi disk1s3
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: Apple_partition_scheme *465.8 Gi disk2
1: Apple_partition_map 31.5 Ki disk2s1
2: Apple_Boot Boot OSX 128.0 Mi disk2s2
3: Apple_RAID 465.6 Gi disk2s3
/dev/disk3
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS 500 GB RAID *465.6 Gi disk3
/dev/disk4
#: TYPE NAME SIZE IDENTIFIER
0: Apple_partition_scheme *298.1 Gi disk4
1: Apple_partition_map 31.5 Ki disk4s1
2: Apple_HFS 320 GB USB 298.0 Gi disk4s3
/dev/disk6
#: TYPE NAME SIZE IDENTIFIER
0: Apple_partition_scheme *230.6 Gi disk6
1: Apple_partition_map 31.5 Ki disk6s1
2: Apple_HFS Personal 230.6 Gi disk6s2
This returns a lot of data, but what you’re actually looking for is labelled Microsoft Basic Data followed by the name of the partition (in this case “Windows”).
One you’ve found the identifier (in this case, “disk0s3″) you need to type another command
diskutil info disk0s3 (replacing disk0s3 with the identifier found in the above step)
Device Identifier: disk0s3
Device Node: /dev/disk0s3
Part Of Whole: disk0
Device / Media Name: Untitled
Volume Name: Windows
Mount Point:
File System: NTFS
Partition Type: Microsoft Basic Data
Bootable: Is bootable
Media Type: Generic
Protocol: SATA
SMART Status: Verified
Volume UUID: E0891F30-2D1A-4FC0-A26E-35CD27CA6756
Total Size: 80.7 Gi (86640836608 B) (169220384 512-byte blocks)
Free Space: 0.0 B (0 B) (0 512-byte blocks)
Read Only: No
Ejectable: No
Whole: No
Internal: Yes
Now, what you’re looking for is the Volume UUID, in this case E0891F30-2D1A-4FC0-A26E-35CD27CA6756.
Now it’s simply a case of adding the following line into into the fstab file.
UUID=E0891F30-2D1A-4FC0-A26E-35CD27CA6756 none ntfs ro,noauto 0 0
You can do this using pico, by typing
sudo pico /etc/fstab
and then pasting the above line into the file, ensuring to use your own UUID.
Once you’re done, press Ctrl-X and save the file, then reboot.
A WORD OF WARNING
Firstly, the fstab file determines which partitions and drives are mounted at startup. If anything goes wrong, you may not be able to boot into OS X.
Secondly, the drive will also be missing from the list of drives in the System Preferences -> Startup Disk preference pane. If you want to boot into Windows, you’ll have to hold down the Alt key when you hear the startup chime after switching your machine on, until you are presented with a list of drives. Note that this option doesn’t always work if you are using third party keyboards, or even an official keyboard not designed for your specific mac like the new ultra thin Apple keyboards.