Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

weipim

macrumors newbie
Original poster
Nov 17, 2008
22
0
Hi there, I have a windows bootcamp drive on my desktop everytime that i logged into my computer, Is there a way to write something in terminal and let the system not mount all the drives on my system?

Thanks in advance

Wei
 
The only way I am aware of is using setfile, which is included in the developer tools.

setfile -a V /Volumes/volumetohide
killall Finder

This will remove it from ALL Finder windows.
The only thing I don't know is if it will be able to set that on an NTFS volume.

Also, if you didn't mind all the drives being hidden you can change what show on the desktop in Finder preferences.

EDIT: I misread the question. The above will hide a mounted drive.

I would modify fstab to have it not mount altogether:

http://www.tuxfiles.org/linuxhelp/fstab.html
 
You could write an Automator workflow/application to dismount the drive and put it in your Login Items for a simple solution.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.