• 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
How to suppress mounting externally attached disks temporarily
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to suppress mounting externally attached disks temporarily


  • Subject: How to suppress mounting externally attached disks temporarily
  • From: Thomas Tempelmann <email@hidden>
  • Date: Mon, 4 May 2009 19:50:32 +0200

For a data rescue tool I'm writing (iBored) I like to add the feature
to suppress mounting (and modifying, including auto-repair) of
just-attached disks.

I want the disk be read by the system, and have no problem with its
partitions being added to /dev/

But I don't want to allow any writing to it, if my app demands it.

So, either suppressing automount entirely, or forcing read-only
mounts, is what I need.

The UUID and name of the volumes on the disk are not known, so adding
exceptions to the fstab file is not an option, I think.

The old Mac OS made this easy: Simply get into a modal event polling
loop and swallow the "disk insert" event. With OS X, this isn't
possible any more. So, what's the trick to do this now?

--
Thomas Tempelmann, http://www.tempel.org/
 _______________________________________________
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 suppress mounting externally attached disks temporarily
      • From: Karl Kuehn <email@hidden>
  • Prev by Date: Help me understand Apple's reply to my bug report
  • Next by Date: Re: Filesystems open source code.
  • Previous by thread: Help me understand Apple's reply to my bug report
  • Next by thread: Re: How to suppress mounting externally attached disks temporarily
  • Index(es):
    • Date
    • Thread