• 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
Re: Mounting Local Volumes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mounting Local Volumes


  • Subject: Re: Mounting Local Volumes
  • From: "Daniel Ellis" <email@hidden>
  • Date: Fri, 06 Jul 2007 16:34:11 -0700


On Jul 6, 2007, at 3:57 PM, Daniel Ellis wrote:

Part of an application I'm working on needs to mount locally attached volumes based on the volume name. Using FSMountLocalVolumeSync() is pretty straightforward, but it mounts based on the device node (e.g. /dev/disk0s3 etc).

So I'm looking for a way to find the volume name from the device node, much the way diskutil does. That way I can find the disk node that correlates to the desired volume. I was thinking the IOKit might provide some help, but cannot seem to find anything concrete. I've heard that this is difficult, but any help would be much appreciated.

Or, maybe someone knows of a different approach to mount an attached local volume based on the volume name?

Daniel
From: Omar Qazi <email@hidden>
To: Daniel Ellis <email@hidden>
Subject: Re: Mounting Local Volumes
Date: Fri, 6 Jul 2007 16:08:19 -0700

Mount a volume based on the volume name? I'm not exactly sure what you mean, but if you wanted access to a volume based on the volume name, you can access in by using the file system path /Volumes/ (Volume Name)

In this case, I'm talking about an attached disk whose volume is not mounted. e.g. A backup firewire drive connected to the computer but whose volume is not mounted. In this case, since it's attached, the volume will show up as an entry in /dev but, the volume is not mounted, so it won't be shown in /volumes. Hopefully this is a little more clear.


Omar Qazi, CEO
Synergick Software
(310) 294-1593

_________________________________________________________________
Local listings, incredible imagery, and driving directions - all in one place! http://maps.live.com/?wip=69&FORM=MGAC01


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: speechSynthesizer willSpeakWord trouble
  • Next by Date: Re: speechSynthesizer willSpeakWord trouble
  • Previous by thread: Re: Mounting Local Volumes
  • Next by thread: Data from thread to NSView, efficiently
  • Index(es):
    • Date
    • Thread