Become a MacRumors Supporter for $25/year with no ads, private forums, and more!

ToastMaster

macrumors regular
Original poster
Nov 10, 2005
217
0
Tacoma, WA
So I installed windows XP via Boot Camp on my MBP in FAT32, and can't figure out how to hide my XP icon from my desktop on OSX. I know that the easiest way to do it is rename the HD in Windows to something like ".Windows" (I've done it before on a previous partition), but for some reason it's not letting me do it this time. It just gives me the error message "the label is too long, or contains invalid characters.

I was able to rename it in NTFS, does that have something to do with it?
 

ToastMaster

macrumors regular
Original poster
Nov 10, 2005
217
0
Tacoma, WA
No, you misunderstand.. I'm using FAT32, and I can't seem to rename it to ".Windows" in Windows without getting some error message. I used NTFS before with no problems doing this (which I thought was kind of weird.)
 

hopejr

macrumors 6502
Nov 10, 2005
310
0
New South Wales, Australia
Yes, you cannot have periods in disk labels on FAT32. IIRC from back in my old DOS days, FAT partitions can only have volume labels of 11 characters long that are alphanumeric and allow underscores.
 

Glen Quagmire

macrumors 6502a
Jan 6, 2006
512
0
UK
The easiest way to hide your XP drives is to tell OS X not to mount them.

Start Terminal.
Type:

Code:
sudo -w /etc/fstab

Type your password at the prompt and press RETURN. This will start nano, a Un*x editor.

For each drive you want to hide, type the following:

Code:
LABEL=<<drive name>> none ntfs ro,noauto 0 0

Replace "<<drive name>>" with the name of the volume you want to hide. If your drive is called "Windows", for example:

Code:
LABEL=Windows none ntfs ro,noauto 0 0

Make sure you type this in exactly as shown - spaces are important.

Press CTRL+O to save.
Make sure it says "/etc/fstab" and press RETURN.
Press CTRL+X to exit nano.
Quit Terminal.
Reboot.

If you want to mount the drive at any time, you can do so via Disk Utility.
 

hotboiled

macrumors member
Oct 30, 2006
91
0
sudo -w /etc/fstab

=

sudo: illegal option `-w'
usage: sudo -K | -L | -V | -h | -k | -l | -v
usage: sudo [-HPSb] [-p prompt] [-u username|#uid]
{ -e file [...] | -i | -s | <command> }
 

macwhack

macrumors member
Aug 31, 2006
44
0
isnt there any other way .
I just want to hide my windows xp harddisk icon and not dismount it on startup.
 

balamw

Moderator
Aug 16, 2005
19,366
978
New England
If NTFS, rename it as mentioned earlier in the thread. boot to XP, rename to ".Windows", boot back to OS X. If FAT32, you're out of luck.

B
 

Archmagination

macrumors regular
Dec 15, 2004
159
0
Is there anyway to undue the: sudo nano -w /etc/fstab ?
It didn't work for me and it seems to be slowing my computer down on Startup now.
 

balamw

Moderator
Aug 16, 2005
19,366
978
New England
Is there anyway to undue the: sudo nano -w /etc/fstab ?
It didn't work for me and it seems to be slowing my computer down on Startup now.

Run sudo nano -w /etc/fstab again and undo the changes you made to the file.

Side note. Always a good idea to back up a file before you modify it. Should have been mentioned in the instructions above.

B
 

jhelm85

macrumors newbie
Jul 7, 2008
1
0
Also note that if your windows partition is fat32, you should replace ntfs with msdos

For each drive you want to hide, type the following:

Code:
LABEL=<<drive name>> none [b]ntfs[/b] ro,noauto 0 0

Replace "<<drive name>>" with the name of the volume you want to hide. If your drive is called "Windows", for example:

Code:
LABEL=Windows none [b]ntfs[/b] ro,noauto 0 0

Make sure you type this in exactly as shown - spaces are important.

source: http://www.macosxhints.com/article.php?story=20060930150059172
source: man fstab
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.