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

mkristain

macrumors regular
Original poster
Aug 18, 2011
115
0
hi in terminal i get the geometry of my usb drive using this

fdisk /dev/rdisk1

its give info like this.

Code:
Disk: /dev/rdisk1	geometry: 968/64/63 [3905407 sectors]
Signature: 0xAA55
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: 06    0   1   1 -  912  31  63 [        63 -    3904929] DOS > 32MB  
 2: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
 3: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
 4: 00    0   0   0 -    0   0   0 [         0 -          0] unused

i want to get these info from any api in my cocoa application.

please help me and guide me to how can i do this.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.