Mounting disk images

  • I've been looking through the disk arbitration framework and disk
    recording hoping to find an answer but it's not readily apparent I've
    also looked on the developer site but it only talks about hdid. I want
    to mount a disk image without it appearing on the desktop similar to
    the way that a filevault image mounts. So my question is, Am I
    pursuing a wild ornithopod without due cause? Or is it possible to do
    this.
    The reason for this is I am trying to create an application with high
    security and for it's tmp files  and other such things, it will use a
    128 bit(on 10.4) 256bit (on 10.5) encrypted disk image but I was
    hoping for it to not look messy with images appearing on the desktop.
    Also with it mounting these things on the desktop it does kind of cut
    the security a lot... the other choice of course it to gpg every file
    as it is created but I kind of wanted to avoid that as it either
    requires me to include gpg as part of the package or require it's
    installation prior to security being made available.
  • On Jan 19, 2008 12:05 PM, Development <development...> wrote:
    > I've been looking through the disk arbitration framework and disk
    > recording hoping to find an answer but it's not readily apparent I've
    > also looked on the developer site but it only talks about hdid. I want
    > to mount a disk image without it appearing on the desktop similar to
    > the way that a filevault image mounts. So my question is, Am I
    > pursuing a wild ornithopod without due cause? Or is it possible to do
    > this.

    The framework that does what you want is private.  You can use the
    --puppetstrings switch to hdiutil (in combination with NSTask) to
    mount images programmatically.

    You might want to file a bug to let Apple know there are those of us
    who would very much appreciate API to do this, rather than having to
    go through the oh-so-joyous experience of dealing with text parsing in
    a Unicode environment... after all, that's why we're writing in Cocoa,
    not shell scripting.

    --Kyle Sluder
  • Sounds like a good idea.
    I spent about an hour and a half this morning trying to figure out a
    way to use hdiutil to accomplish this but none of the options I tried
    mounted an accessible volume without placing it on the desktop so one
    way or another if this is possible, I have missed it.

    On Jan 19, 2008, at 10:22 AM, Kyle Sluder wrote:

    > You might want to file a bug to let Apple know there are those of us
    > who would very much appreciate API to do this, rather than having to
    > go through the oh-so-joyous experience of dealing with text parsing in
    > a Unicode environment... after all, that's why we're writing in Cocoa,
    > not shell scripting.
  • On Jan 19, 2008 12:32 PM, Development <development...> wrote:
    > Sounds like a good idea.
    > I spent about an hour and a half this morning trying to figure out a
    > way to use hdiutil to accomplish this but none of the options I tried
    > mounted an accessible volume without placing it on the desktop so one
    > way or another if this is possible, I have missed it.

    Well, I took my own advice and filed a bug (r. 5696331).  I still say
    file one yourself against hdiutil with the specific feature you're
    lacking.  Hopefully we'll see some public access to this framework
    soon, including the functionality you desire.

    --Kyle Sluder
  • I feel like sucha dork.... The whole time I was trying to do this with
    hdiutil, I was redirecting the mountroot to my home folder.... Well I
    had my home folder open and thus as soon as it mounted it appeared on
    the desktop. I redirected to the Application Support folder and while
    the disk image mounted and was accessible, it was not on the desktop
    until I opened that particular folder and tahdah it appeared on the
    desktop. I did not see this tid bit of info anywhere I looked in the
    docs or man pages so I did not realize I was defeating my own efforts
    simply by having a window open. I even googled: "How to mount a disk
    with hdiutil without it showing on the desktop"...

    However Kyle I agree 100% and will file a report.

    On Jan 19, 2008, at 10:45 AM, Kyle Sluder wrote:

    > On Jan 19, 2008 12:32 PM, Development <development...>
    > wrote:
    >> Sounds like a good idea.
    >> I spent about an hour and a half this morning trying to figure out a
    >> way to use hdiutil to accomplish this but none of the options I tried
    >> mounted an accessible volume without placing it on the desktop so one
    >> way or another if this is possible, I have missed it.
    >
    > Well, I took my own advice and filed a bug (r. 5696331).  I still say
    > file one yourself against hdiutil with the specific feature you're
    > lacking.  Hopefully we'll see some public access to this framework
    > soon, including the functionality you desire.
    >
    > --Kyle Sluder
  • On 20/01/2008, at 4:50 AM, Development wrote:

    > I feel like sucha dork.... The whole time I was trying to do this
    > with hdiutil, I was redirecting the mountroot to my home folder....
    > Well I had my home folder open and thus as soon as it mounted it
    > appeared on the desktop. I redirected to the Application Support
    > folder and while the disk image mounted and was accessible, it was
    > not on the desktop until I opened that particular folder and tahdah
    > it appeared on the desktop. I did not see this tid bit of info
    > anywhere I looked in the docs or man pages so I did not realize I
    > was defeating my own efforts simply by having a window open. I even
    > googled: "How to mount a disk with hdiutil without it showing on the
    > desktop"...
    >
    > However Kyle I agree 100% and will file a report.

    Have you looked at the -nobrowse and -private options to hdiutil?

    - Chris
previous month january 2008 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today