How to let Leopard not mount a drive on startup?

Discussion in 'macOS' started by weipim, Oct 16, 2009.

  1. weipim macrumors newbie

    Nov 17, 2008
    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

  2. calderone macrumors 68040


    Aug 28, 2009
    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:
  3. mathcolo macrumors 6502a

    Sep 14, 2008
    You could write an Automator workflow/application to dismount the drive and put it in your Login Items for a simple solution.

Share This Page