Re: auto mounting a partition with nobrowse
Re: auto mounting a partition with nobrowse
- Subject: Re: auto mounting a partition with nobrowse
- From: websrvr <email@hidden>
- Date: Wed, 12 May 2010 05:10:03 -0400
- Mta-interface: amavisd-new-2.3.3 (2005-08-22) + Maia Mailguard 1.0.1 at daleenterprise.com
On May 10, 2010, at 21:00 PM, Daniel Markarian wrote:
Hey Dale,
I am not convinced Disk Arbitration is necessary.
What do you know about that partition? Can you stamp the volume in
that partition with a well known name? Let us assume a volume type
of "hfs" and volume name of "com.MyCompany.MyProduct" as an
illustration. You can then add the following to /etc/fstab.
LABEL=com.MyCompany.MyProduct none hfs rw,nobrowse
Performed some test based on your proposed solution, behavior is
different between 10.5.x and 10.6.x.
Under 10.6 the volume is not mounted on the desktop but shows in a
finder window as grayed out (non-selectable).
Under 10.5 only the first drive seems to hide completely and all
subsequent drives are fully visible.
I made standard Apple_HFSX partitions (after resizing), named
com.test.dan and these seem to hide under all instances (/dev/diskXs4).
The only drives not completely hidden are the ones that are /dev/
diskXs3s1 which have a custom type of Apple_HFSA (these require the
filter kext to make them mountable so they wont mount on system where
the software is not installed.
Dan
Le 2010-05-10 à 14:36, websrvr a écrit :
On May 10, 2010, at 12:38 PM, Daniel Markarian wrote:
Hey Dale,
DADiskMountApprovalCallback() can head off the mount.
DADiskMountWithArguments() can accept "nobrowse" as an argument.
Do you have any sample code that uses these?
Dan
PS: fstab(5) can accept "nobrowse" as an alternative. You do
not need to head off the mount in this case.
Le 2010-05-10 à 02:27, websrvr a écrit :
I've trying to solve a problem which requires 2 components, the
first which has been solved by the code from the
SampleFilterScheme project which makes my partition mountable.
Currently the partition mounts and is viewable in the finder and
on the Desktop, manually I use diskutil to unmount the partition
(diskutil unmount /dev/disk0s3s1) and use hdiutil to mount it
(hdiutil mount /dev/disk0s3s1 -nobrowse) to hide it and this is
OK for me since I know how to do this but expecting users to
perform this task.
I'm told that I need to use the DA framework to achieve this
task however I am unable to find any sample code that shows me
how to mount a partition with flags.
I realize everyone will ask why I need to do this and to make it
short I want it hidden from view to prevent people from any
accidental wrong-doings.
I've read the list archives and what I have concluded is that
this is a complicated matter that is well beyond my capabilities
so finding sample code I can adopt for this use would make my
life significantly easier and allow me to keep what little hair
I have left.
The partition in question wli always be /dev/diskXs3s1 so
finding them is easy, unmounting and remounting with the
nobrowse flag is my problem and I'm probably looking at it
wrong, maybe the initial mount request can be interrupted and
the option set.
Sample code that shows how to do either would be greatly
appreciated.
-- Dale
-- Dale
-- Dale
_______________________________________________
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