klmorin

Q: Selectively open disk partitions

Is it a way to open a disk (internal or external) without all of its partitions will open automatically?

 

I use multiple disks that contain multiple partitions. I do not need that all these partitions are opened simultaneously and clutter my system. I would prefer to selectively open if necessary.

iMac

Posted on Dec 13, 2014 5:28 PM

Close

Q: Selectively open disk partitions

  • All replies
  • Helpful answers

  • by etresoft,

    etresoft etresoft Dec 13, 2014 6:19 PM in response to klmorin
    Level 7 (29,051 points)
    Dec 13, 2014 6:19 PM in response to klmorin

    I wrote a User Tip for this procedure. See Prevent a volume from mounting at startup

  • by klmorin,Solvedanswer

    klmorin klmorin Dec 13, 2014 8:51 PM in response to etresoft
    Level 1 (10 points)
    Dec 13, 2014 8:51 PM in response to etresoft

    Using vifs is not easy, I would have liked more explanation. But after a bit of trial and error, I did.

    Would it be easier with Textedit or TextWrangler (with a little explanation)?


    Anyway the result is exactly what I wanted and works very well in combination with the application Mountain.

     

    Thank you very much.



    Edit: Excuse my mistake, it is the etresoft response that solved my question.

  • by Mac-Guyver,

    Mac-Guyver Mac-Guyver May 20, 2016 4:16 PM in response to etresoft
    Level 1 (8 points)
    May 20, 2016 4:16 PM in response to etresoft

    Dear etresoft--

     

    Your tip, "Prevent a volume from mounting at startup," which is a near-top hit in Google, needs some updates, and I can't post a reply there-- maybe you can edit the post?  Here are the changes that worked for me in OS X El Capitan, version 10.11.05:

    1. Disk Utility now doesn't allow the UUID to be cut and pasted!  But in the Terminal, this command gets the same information.(substitute your own partition name or id):
      diskutil info /Volumes/MyOtherVolume
      or
      diskutil info disk0s5
    2. From the result in the Terminal mark and copy the Volume UUID (not the Disk/Partition UUID) to paste into vifs.
    3. vifs uses whatever editor you have set in the EDITOR environment variable.  (vi commands like escape and ZZ, produce confusing results in emacs.)
    4. It's worth noting that this procedure doesn't change the list of boot partitions you get when you boot with the option key, or which volumes automatically mount if you do boot from another partition.

    Thanks for your tip!

    --Steve

  • by etresoft,

    etresoft etresoft May 20, 2016 7:56 PM in response to Mac-Guyver
    Level 7 (29,051 points)
    May 20, 2016 7:56 PM in response to Mac-Guyver

    Hello Mac-Guyver,

    Done! Thanks for letting me know.