• 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: How do I read sectors of disk in objective c cocoa application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How do I read sectors of disk in objective c cocoa application? (From: Waqar Ahmad <email@hidden>)
 >Re: How do I read sectors of disk in objective c cocoa application? (From: Wenguang Wang <email@hidden>)

  • Prev by Date: Re: How do I read sectors of disk in objective c cocoa application?
  • Next by Date: pread function help needed....?
  • Previous by thread: Re: How do I read sectors of disk in objective c cocoa application?
  • Next by thread: pread function help needed....?
  • Index(es):
    • Date
    • Thread