Get attached hard disks to system??

Discussion in 'Mac Programming' started by naveen, Sep 6, 2005.

  1. naveen macrumors member

    Oct 27, 2004
    Hi all

    I want to get the hard disks attched to system. Currently i am get the hard disks from the /dev/disk*. Is there any system API for getting the hard disks attached to my system.
    How i can use the IOKit for this purpose.

    Thanks and Regards
  2. caveman_uk Guest


    Feb 17, 2003
    Hitchin, Herts, UK
    You can use NSWorkspace to get the mounted volumes though that isn't the same as the mounted physical drives. You can also use NSWorkspaces notifications to tell you when volumes are mounted and unmounted.

    I presume you want the physical drive? In that case I don't know but there maybe useful info in the 'MoreIsBetter' example code - there's a scetion called 'MoreDisks' link

Share This Page