hi in terminal i get the geometry of my usb drive using this
fdisk /dev/rdisk1
its give info like this.
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.
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.