Re: How to eject a USB Hard drive
Re: How to eject a USB Hard drive
- Subject: Re: How to eject a USB Hard drive
- From: "Elango C" <email@hidden>
- Date: Fri, 18 Jan 2008 12:05:48 +0530
Duane,
I tried with "unmountdisk" but the device is not getting removed from Mac. Can you
give me some code reference for this DiskArbitration to proceed.
--
Elango C
On Jan 18, 2008 11:28 AM, Duane Murphy <
email@hidden> wrote:
--- At Fri, 18 Jan 2008 11:18:24 +0530, Elango C wrote:
>Hello,
>
>I am currently trying to eject the USB Drive by writing a small
>carbon application. Can you guys can give me some idea.
>
>FYI: I tried calling the Diskutil using System call
>
>system ("diskutil eject disk1");
>
>but the volume present in the disk1 gets unmounted but the device
>is not getting ejected. (
i.e. After doing this If I open the Diskutilty
>application I am able see the USB HDD entry) but if I click on the
>eject button from the Diskutilty then the entries are disappeared from
>the diskutility app.
>
>Dear guys please help me on this issue.
Try unmountdisk instead of eject.
You can do all this from the DiskArbitration framework as well.
...Duane
--
"Design is an interplay of science and art - the instinct of using
exactly the right methods and resources that the application requires."
- Bernard Friedland, "Control System Design"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden