How to prevent a volume to be mounted?
How to prevent a volume to be mounted?
- Subject: How to prevent a volume to be mounted?
- From: MacXperte <email@hidden>
- Date: Tue, 27 Mar 2007 18:47:24 +0200
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:
This email sent to email@hidden