1 Reply
      Latest reply: Nov 7, 2016 2:44 AM by eskimo RSS
      MrMakeItWork Level 1 Level 1 (0 points)

        Hello,

         

        -Preamble-

        I've done development in python before, but I am by no means a 'L33T' developer. I normlly just make things that I need for work or as a hobby.

        --------------

         

        Essentially, I would like to create something (maybe a system daemon) that would start at boot and ensure that no device (other than the boot volume) is mounted at startup. Any device that is required should be mounted manually. Is this possible and any advice?

         

        Any help would be awesome!

         

        Cheers,

        Harry

        • Re: Stop Auto-Mount at Boot
          eskimo Apple Staff Apple Staff (7,485 points)

          This is a surprisingly complex question.  There’s two directions you can explore:

          • fstab lets you prevent specific volumes being mounted; this is not an API but something that’s expected to be set up by an administrator

          • the DiskArbitration lets you insert your own code into the volume mounting process

          I should caution you that DiskArb is not for the faint of heart.

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"