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: Thu, 8 Dec 2011 11:56:00 +0000
On 8 Dec 2011, at 07:16, Wenguang Wang wrote:
> However, in order to read/write sectors, you can open the raw device and use bsd calls pread/pwrite to read/write the sectors:
... but be aware of the following issues:
o You won't be able to open a raw device that has a file system mounted on it.
o Raw devices are protected by permissions, just like any other UNIX system object. If you attach the volume as a specific user (for example, you mount a disk image) that won't be a problem. If you're trying to look at a volume that was mounted globally, you'll have to run your code as root.
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