• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to prevent a volume to be mounted?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to prevent a volume to be mounted?


  • Subject: Re: How to prevent a volume to be mounted?
  • From: Rob McKeever <email@hidden>
  • Date: Tue, 27 Mar 2007 10:32:51 -0700

Hi Florian,

You can use DiskArbitration to do this via disk approval callbacks. I'd grab a copy of the source from <http://www.opensource.apple.com/ darwinsource/> as well if you haven't already. It comes in very handy when trying to figure out how to do stuff like this.

-Rob

--
Rob McKeever, email@hidden
Developer Technical Support, CoreOS/Hardware
Apple Computer

--------------------------------
WWDC 2007 • June 11-15 • Moscone West • San Francisco, CA
http://developer.apple.com/wwdc/




On Mar 27, 2007, at 9:47 AM, MacXperte wrote:

This question has been asked in 2005 on the carbon-dev list:
http://lists.apple.com/archives/carbon-dev/2005/Jun/msg00480.html
I found a partial solution, that doesn't help in my case.

The problem is simply to have a drive, that when plugged in will neither mount as a Volume nor produce an error-message. Adding an entry to fstab with the mount-option noauto will perfectly do the trick (at least as long as fstab is still respected), but only on machines thet were patched that way.

In my case it is a USB-MassStorageDevice with two separate drives (not partitions), where one of those should be silently ignored. So I am looking for a solution that will work on any unaltered Mac OS System. It must be done on the disk itself. (And no, hiding the mount-point is not enough.)

So far I've tried every partitioning trick I could think of: All documented APM-partition-types and several MBR partition-types including EE (EFI). I even tried setting the no-auto-mount bit in the APM-record. Always the same result: if there is anything mountable, it will be mounted; if not, there is an error-message.

What I did'nt try so far is playing with Software-RAID like partitions, GUID partitioning and UFS special-partitions. Any idea in those fields?

In a more global aproach: Please somebody with insight in the diskarbitration framework tell me if there is any chance of crafting a disk that will be ignored, or if there simply is no third branch in the code besides mount or error. If so, maybe there should be an exception inserted, something like: volumes named ".NoAutoMount" won't be mounted.

Thanks in advance, any idea welcome
Florian

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Filesystem-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: How to prevent a volume to be mounted?
      • From: MacXperte <email@hidden>
References: 
 >How to prevent a volume to be mounted? (From: MacXperte <email@hidden>)

  • Prev by Date: How to prevent a volume to be mounted?
  • Next by Date: Re: How to prevent a volume to be mounted?
  • Previous by thread: How to prevent a volume to be mounted?
  • Next by thread: Re: How to prevent a volume to be mounted?
  • Index(es):
    • Date
    • Thread