Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Nishad

macrumors newbie
Original poster
Aug 2, 2007
11
0
Hi all,

I am working in Cocoa - Objective C. My application need information of the system drive and the USBs(Ipod also) connected to the system, like Drive size, Bytes per sector, drive mounted path, serial number etc. I tried by reading ioregistry properties with a matching dictionary created using IOMediaclass and iokitframework and i am getting the size, mounted path serial number, product name except BYTES PER SECTOR.

Can anybody help me to get the bytes per sector of the drive or how can create matching dictionary which will give bytes per sector of the drive?


With thanks and regards
Nishad.
 

tedsmith3rd

macrumors member
Aug 30, 2006
54
0
US
I think IOMedia's getPreferredBlockSize yields the media's sector size. You might want to download the source code for darwin's IOStorageFamily to make sure.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.