How to let Leopard not mount a drive on startup?

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

  1. weipim macrumors newbie

    Joined:
    Nov 17, 2008
    #1
    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
     
  2. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #2
    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
     
  3. mathcolo macrumors 6502a

    Joined:
    Sep 14, 2008
    Location:
    Massachusetts
    #3
    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