Re: Mounting Local Volumes
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