Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I get Hard Disks(ATA) and Removable media(USB) attached to my system??



Alternatively, it sounds like most of what you want can be handled through IOKit, with a little bit of Carbon.

You can use IOKit to scan for IOMedia objects, then filter what's returned by check the "Leaf" property on that IOObject. Through IOKit you can also determine bus, capacity, Internal/External, and dev node. Then you can use carbon to map partions to volume names, etc... If you need more clarification let me know.

Probably the biggest advantage over DiskArb would be running on more OS versions- DiskArb has change pretty dramatically over OS revisions and only became a public framework on, I think, 10.4. I believe if you built on 10.4 it would run on 10.3, but on anything older than 10.3 the API is much harder to use, and I don't think your app would run. Dan would know for sure.

At 12:16 -0400 on 9/2/05, Dan Markarian wrote:
You might want to check out Disk Arbitration.

On 2 Sep 2005, at 5:30 AM, darpan kamboj wrote:

 Hi all

I want to get the Hard disks and Removable media attached to my system and capacity of disks. Actually i want to raw read the hard disk. Currently i am picking the hard disks from "/dev/disk*"
here * may be 1,2,3 depending upon the hard disks attached to system.


My problem is :
1) In case OS installed in any other language other than english then i am not able to pick the hard disks.


 2) I am not able to get capacity of hard disks.

3) I am not able to differenciate whether this is removable media or hard disk.

How I can get hard disks attached,capacity,Serial no. of hard disks so that i can raw read the hard disk.


Thanks and Regards

_________________________________________________________________
Job hunting? Get the right one! http://creative.mediaturf.net/creatives/timesjobs/hotmail_TOL.htm Log on to timesjobs TODAY


 _______________________________________________
 Do not post admin requests to the list. They will be ignored.
 Ata-scsi-dev mailing list      (email@hidden)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/ata-scsi-dev/email@hidden

 This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Ata-scsi-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/ata-scsi-dev/email@hidden

This email sent to email@hidden

-- ______________________________________________________ Arguing with an engineer is like wrestling with a pig in mud. After a while, you realize the pig is enjoying it. ______________________________________________________ Kevin Elliott <mailto:email@hidden> AIM/iChatAV: email@hidden (video chat available) ______________________________________________________ _______________________________________________ Do not post admin requests to the list. They will be ignored. Ata-scsi-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/ata-scsi-dev/email@hidden

This email sent to email@hidden
References: 
 >How can I get Hard Disks(ATA) and Removable media(USB) attached to my system?? (From: "darpan kamboj" <email@hidden>)
 >Re: How can I get Hard Disks(ATA) and Removable media(USB) attached to my system?? (From: Dan Markarian <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.