How to suppress mounting externally attached disks temporarily
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