Re: How do I read sectors of disk in objective c cocoa application?
Re: How do I read sectors of disk in objective c cocoa application?
- Subject: Re: How do I read sectors of disk in objective c cocoa application?
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Mon, 5 Dec 2011 11:39:38 +0000
On 5 Dec 2011, at 10:50, Waqar Ahmad wrote:
> I want to access my hard drive sectors means want to read them using objective c in cocoa application [...]
There's no Cocoa API for this: you typically use BSD-level routines, specifically <x-man-page://2/open> to open the raw disk node (for example, /dev/rdisk0) and <x-man-page://2/read> to read data. There are, however, lots of complications including discovery, permissions, unmounting mounted file systems, and so on. Which brings us back to Toby Thain question, that is, what are you really trying to do?
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
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