• 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 programmatically mount a disk/volume using only a given file path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to programmatically mount a disk/volume using only a given file path?


  • Subject: How to programmatically mount a disk/volume using only a given file path?
  • From: Tennis Stringer Dude <email@hidden>
  • Date: Wed, 02 Jan 2013 18:03:11 -0700
  • Thread-topic: How to programmatically mount a disk/volume using only a given file path?

Hello,

I have a list of file paths. These paths may lead to files on unmounted
Volumes. How can I programmatically tell the OS to mount the volume before I
try to access the file?

I know this is possible somehow, as iTunes appears to do it. For example, if
I initiate playback of a song located on an unmounted network attached
volume in iTunes, the volume is mounted automatically for me.

Is the OS supposed to mount the volume automatically for me if I attempt to
open the file programmatically at the specified path? In my testing, it
appears the answer is no. Or do I need to mount the drive manually using the
Disk Arbitration framework or something similar?

If I need to use the Disk Arbitration framework, can you cite sample code?

P.S.: I listed this question on stackoverflow at [1] about a month ago with
no response. Decided to try here as well.

[1]
http://stackoverflow.com/questions/13426063/programmatically-mount-a-disk-vo
lume-using-only-a-given-file-path-in-mac-os-x

-Jared


 _______________________________________________
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 programmatically mount a disk/volume using only a given file path?
      • From: Shantonu Sen <email@hidden>
  • Next by Date: Re: How to programmatically mount a disk/volume using only a given file path?
  • Next by thread: Re: How to programmatically mount a disk/volume using only a given file path?
  • Index(es):
    • Date
    • Thread